Giter Club home page Giter Club logo

Comments (2)

Phunk87 avatar Phunk87 commented on August 17, 2024

非常感谢详细的 issue,会尽快处理。

from plplayerkit.

shingwasix avatar shingwasix commented on August 17, 2024

直播使用标准的RTMP协议的话,可以接收到结束通知,所以最后一点关于直播的问题请忽略。
另外再补充个非常严重的问题,就是PLVideoPlayerController使用
+ (instancetype)videoPlayerControllerWithContentURL:(NSURL *)url parameters:(NSDictionary *)parameters;创建后不能释放。可参见本项目的Example,反复打开关闭视频播放器,内存只增不减。本人开始以为这是播放器做了缓存优化,导致内存释放不及时,但后来反复调试发现并非如此。

测试用例

  1. 创建继承于PLVideoPlayerController的类TESTPLVideoPlayerController
  2. 重写dealloc函数
    - (void)dealloc { NSLog(@"TESTPLVideoPlayerController dealloc"); }
  3. 在任意位置执行如下代码
    __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);
  4. 打印结果如下
    image

上述测试可见使用+ (instancetype)videoPlayerControllerWithContentURL:(NSURL *)url parameters:(NSDictionary *)parameters;创建的实例并不会执行`dealloc`,本人推测类内部存在环状相互引用,导致类实例无法正常释放。

from plplayerkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.