Coder Social home page Coder Social logo

poholo / mcplayerkit Goto Github PK

View Code? Open in Web Editor NEW
40.0 2.0 7.0 7.71 MB

MCPlayerKit is iOS Player, PlayerCoreType: AVPlayer can use play some video, IJKPlayer type can play video, Live ...

License: MIT License

Objective-C 95.68% Ruby 0.76% Swift 3.55%
cocoapods ijkplayer avplayer playerkit video playerview mcstyle

mcplayerkit's Issues

关于ijk中IJKSDLGLView.m文件的线程问题

我是在ijk的仓库看到你的提交,想请教下关于这个文件的线程问题。ijk里的文件比对差异太多了,可能有看漏的。

1、在IJKSDLGLView.m中的-invalidateRenderBuffer 方法,在调用 [self display:nil]; 之前,还是应该加上

if (_isRenderBufferInvalidated)
     [self display:nil];

判断,不然会概率性的崩在下面这句:

if (!IJK_GLES2_Renderer_renderOverlay(_renderer, overlay))
        ALOGE("[EGL] IJK_GLES2_render failed\n");

2、第一次进入还是会卡,-displayInternal: 这个方法中的

[[self eaglLayer] setContentsScale:_scaleFactor];

[_context renderbufferStorage:GL_RENDERBUFFER fromDrawable:(CAEAGLLayer*)self.layer];

我都用dispatch_async(dispatch_get_main_queue(), ^{ });包起来了。你的修改似乎没动这里,请问是怎么做的?

为什么运行时报错:“PlayerKitDemo.app” couldn’t be opened because you don’t have permission to view it

真机 编译可以通过,但一旦运行 就 报错如下:

The file “PlayerKitDemo.app” couldn’t be opened because you don’t have permission to view it.
Domain: NSCocoaErrorDomain
Code: 257
Failure Reason: You don’t have permission.
Recovery Suggestion: To view or change permissions, select the item in the Finder and choose File > Get Info.
User Info: {
NSFilePath = "/Users/leebeen/Library/Developer/Xcode/DerivedData/PlayerKitDemo-hivdczixikqipffrhxhcwhkfruzb/Build/Products/Debug-iphoneos/PlayerKitDemo.app";
}

The operation couldn’t be completed. Permission denied
Domain: NSPOSIXErrorDomain
Code: 13
Failure Reason: Permission denied

System Information

macOS Version 10.15.7 (Build 19H114)
Xcode 12.4 (17801) (Build 12D4e)
Timestamp: 2021-08-29T11:41:30+08:00

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.