From f3cb32196c6fea876972ac88eb5deea5eb0da504 Mon Sep 17 00:00:00 2001 From: Sergey Chausov Date: Tue, 23 Nov 2021 16:28:44 +0200 Subject: [PATCH] FEC-11688 deprecated function fixes (#81) --- Sources/ContentManager.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/ContentManager.swift b/Sources/ContentManager.swift index 695ae6d..d7657b7 100644 --- a/Sources/ContentManager.swift +++ b/Sources/ContentManager.swift @@ -236,8 +236,8 @@ public class ContentManager: NSObject, DTGContentManager { // Set video bitrate, assuming the given value refers to AVC1 if let pvb = preferredVideoBitrate { - options.setMinVideoBitrate(.avc1, pvb) - options.setMinVideoBitrate(.hevc, Int(Double(pvb) * 0.70)) // Careful conversion ratio - 70/30% + options.setMinVideoBitrate(pvb, forCodec: .avc1) + options.setMinVideoBitrate(Int(Double(pvb) * 0.70), forCodec:.hevc) // Careful conversion ratio - 70/30% } try loadItemMetadata(id: id, options: options)