Player Freezes When Changing Tracks in HLS Stream
Closed this issue · 5 comments
Description
When attempting to change video quality (tracks) during HLS playback, the app freezes. This issue occurs on both simulators and physical devices. The problem persists across different versions of the KSPlayer library, including version 1.4.0 and the latest version 2.4.4.
Steps to Reproduce
- Load the HLS stream using KSPlayer: HLS URL.
- Start playback.
- Attempt to change the video track or quality level.
- Observe that the app becomes unresponsive and eventually freezes.
Expected Behavior
The player should seamlessly switch between different video quality levels or tracks without freezing the app.
Actual Behavior
The app freezes and becomes unresponsive when switching tracks during HLS playback. The issue occurs consistently on both simulators and real devices.
Environment
- KSPlayer Version: 1.4.0 - 2.4.4
- Device: IPhone 15 pro, iPad mini, MacBook (Catalyst)
- OS Version: iOS 18
- HLS URL: HLS URL
Additional Information
- Tested with multiple versions of KSPlayer, and the issue persists in all tested versions.
- This HLS URL works correctly in other players, which indicates the issue is specific to KSPlayer.
seek() - also causes a freeze
这个url,我这边无法进行播放. 用vlc或是iina也是无法播放
这个url,我这边无法进行播放. 用vlc或是iina也是无法播放
检查链接是否正确,我已在 VLC 和 iina 播放器中播放,您可以直接在 Safari 中打开
https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s-fmp4/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.m3u8
这个视频很奇怪,seek完之后,视频帧调用avcodec_receive_frame就会报错-35,无法返回0. 我用ffplay试着播放,发现也是有同样的问题,无法进行seek。