简体   繁体   中英

Video quality change not reflecting immediately in Kaltura player in iOS

I am using Kaltura library to integrate video streaming in my app. I tried changing the video quality of the video by using the following syntax:

// player = PlayerController() from Kaltura
player.settings.network.preferredPeakBitRate = desiredBitRate 

The thing is that the quality is being changed but not immediately. It reflects after some time. Maybe the part of video which has already buffered are showing in the same quality in which they were buffered. And after that, quality is changing. It is confusing for user as it seems the quality is not changing at all when he/she selects the quality.

Please let me if there is a solution!!! Thanks!

The settings are meant to be set before loading the media - that is, before calling player.prepare(...) . Then the player gets them on time and acts accordingly.

If you're doing that but it still doesn't work as expected, please open an issue at https://github.com/kaltura/playkit-ios/issues . Include the video URL, if possible.

As an aside, rather than instantiating PlayerController yourself, you should get a Player instance from PlayKitManager.sharedInstance.loadPlayer(...) .


Full disclosure: I'm the tech lead of the team that develops Kaltura's player.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM