How to track video bitrate?

#1

Hi I’m using IOS SDK in our application, We want to enable to Video bitrate options. So we did it in Android using the fallowing method.
But didn’t find any way to implement in IOS, could anyone please help me out in this ?

mPlayer.getTrackManager().switchTrack(TrackType.VIDEO, 3); This method we used in android

#2

Hey @test_voot,

On AVPlayer it’s not possible (Known Limitation), since our SDK is based on AVPlayer (The only iOS core player) you can’t set a bitrate with our SDK.
Apple attached some API from iOS8 for preferredPeakBitRate:
https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVPlayerItem_Class/index.html#//apple_ref/occ/instp/AVPlayerItem/preferredPeakBitRate
This will be supported in future version on our SDK.

Thanks!

cc @oren_melamed, @itay_kinnrot

1 Like
#3

Thanks for the replay. And I will implement as you said.