Skip to content

Commit

Permalink
FEC-11688 deprecated function fixes (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
chausov authored Nov 23, 2021
1 parent 7d1e70b commit f3cb321
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/ContentManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f3cb321

Please sign in to comment.