Comments (2)
非常感谢详细的 issue,会尽快处理。
from plplayerkit.
直播使用标准的RTMP协议的话,可以接收到结束通知,所以最后一点关于直播的问题请忽略。
另外再补充个非常严重的问题,就是PLVideoPlayerController使用
+ (instancetype)videoPlayerControllerWithContentURL:(NSURL *)url parameters:(NSDictionary *)parameters;
创建后不能释放。可参见本项目的Example,反复打开关闭视频播放器,内存只增不减。本人开始以为这是播放器做了缓存优化,导致内存释放不及时,但后来反复调试发现并非如此。
测试用例
- 创建继承于PLVideoPlayerController的类TESTPLVideoPlayerController
- 重写dealloc函数
- (void)dealloc { NSLog(@"TESTPLVideoPlayerController dealloc"); }
- 在任意位置执行如下代码
__weak PLVideoPlayerController *playerController_0 = [TESTPLVideoPlayerController new]; NSLog(@"playerController_0:%@", playerController_0);
__weak PLVideoPlayerController *playerController_1 = [TESTPLVideoPlayerController videoPlayerControllerWithContentURL:[NSURL URLWithString:@""] parameters:nil]; NSLog(@"playerController_1:%@", playerController_1);
- 打印结果如下
上述测试可见使用+ (instancetype)videoPlayerControllerWithContentURL:(NSURL *)url parameters:(NSDictionary *)parameters;
创建的实例并不会执行`dealloc`,本人推测类内部存在环状相互引用,导致类实例无法正常释放。
from plplayerkit.
Related Issues (20)
- 你好,播放视频遇到了崩溃 HOT 4
- PLPlayerKit (3.4.5) Unable to load contents of file list: '/Target Support Files/PLPlayerKit/PLPlayerKit-copy-dsyms-input-files.xcfilelist' HOT 1
- pod支持模拟器版本 pod install都过不去 HOT 3
- 画中画
- v3.4.5版本播放不稳定的直播流时容易崩溃,主播网络较差就会 HOT 3
- player 设置 preStartPosTime 好像不管用?是什么问题?
- 直播断流后反复播放断流前几秒的画面 HOT 3
- 直播流暂停之后,再次打开 还是接着上次播放时间播放,而不是从当前时间播放。
- 能否支持rtsp协议的流
- 有没有 Swift 版本
- 3.4.3版本出现批量crash
- iPhone 13 pro iOS 15.1.1 播放mp4视频 失败,不显示画面,地址为:https://dsp-fs-drds.oss-cn-hangzhou.aliyuncs.com/jiangsu_fms_media/20211207/131064266311375/02_65_6501_00_1638889190000-driver-2044&1-8ecc.mp4 HOT 2
- 请问支持m3u8的预缓存吗
- 点播m3u8切换闪退 HOT 1
- 能加上网络质量的回调吗?
- 无法播放错误逻辑
- 能实现这种效果吗 HOT 1
- log打印无法关闭问题 HOT 1
- V3.4.9 “真机+模拟器” 的版本,无法在模拟器中运行 HOT 2
- 播放flv视频没有声音 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plplayerkit.