简体   繁体   English

视频质量变化不会立即反映在 iOS 的 Kaltura 播放器中

[英]Video quality change not reflecting immediately in Kaltura player in iOS

I am using Kaltura library to integrate video streaming in my app.我正在使用 Kaltura 库在我的应用程序中集成视频流。 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(...) .这些设置旨在在加载媒体之前进行设置 - 即在调用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 .如果你这样做了,但它仍然没有按预期工作,请在https://github.com/kaltura/playkit-ios/issues打开一个问题。 Include the video URL, if possible.如果可能,请包含视频 URL。

As an aside, rather than instantiating PlayerController yourself, you should get a Player instance from PlayKitManager.sharedInstance.loadPlayer(...) . PlayKitManager.sharedInstance.loadPlayer(...) ,您应该从PlayKitManager.sharedInstance.loadPlayer(...)获取一个Player实例,而不是自己实例化PlayerController


Full disclosure: I'm the tech lead of the team that develops Kaltura's player.完全披露:我是开发 Kaltura 播放器的团队的技术负责人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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