bilibili / bilibili/ijkplayer

IJKFFMoviePlayerController 未初始化完毕,shutdown之后出现播放声音

Open
#2,001 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
33.2k
Forks
8.2k
PR merge metrics
No merged PRs in 30d

Description

如题,在一些网络环境比较差的情况下,进入播放页面,发现一直loading,用户可能会马上离开播放页,而这时不争气的网络又把视音频数据吐回来。 这时,IJK失控了,背景一直播放着刚才销毁的播放视频。

我想到解决方法有俩:
1. 做一个单例对IJK监控,离开播放页时,多几次retry的destory
2.ijk已经有类似于AVPlayer [AVPlayerItem.asset cancelLoading]的方法, 目前看到一个API,不确定是不是, IJKFFMoviePlayerController - didShutDown; 这个方法时取消加载吗 ?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing IJKFFMoviePlayerController shutdown behavior around didShutDown and compare it with AVPlayerItem.asset cancelLoading, as mentioned in the report. Reproduce the delayed-network case where playback data arrives after leaving the player; done means shutdown prevents any subsequent audio or video playback.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios
Domain
audio-video-rtc, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.