debugly / ijkplayer

【持续更新】macOS/iOS video player based on ijkplayer, using FFmpeg 5.1, support Metal、hw accel、HDR、ass subtitle effect...
GNU General Public License v2.0
69 stars 14 forks source link

上传到Connect时出错 #11

Closed zdw19840929 closed 1 month ago

zdw19840929 commented 3 months ago

大佬 app上传的时候出错,麻烦您看下 截屏2024-03-05 21 53 04

zdw19840929 commented 3 months ago

我把texImageIOSSurface方法改了个名字就可以了

debugly commented 3 months ago

改成什么了?

zdw19840929 commented 3 months ago

改成什么了?

就把texImageIOSSurface后面加了个s -> texImageIOSSurfaces

debugly commented 3 months ago

这样不行啊

- (BOOL)texImageIOSurface:(IOSurfaceRef)arg1 target:(unsigned long long)arg2 internalFormat:(unsigned long long)arg3 width:(unsigned)arg4 height:(unsigned)arg5 format:(unsigned long long)arg6 type:(unsigned long long)arg7 plane:(unsigned)arg8 invert:(BOOL)arg9;

这是个私有方法,你改个名字的话,调用时找不到这个方法不崩溃吗? 抓紧找个低于 iOS 11 的系统测下。

zdw19840929 commented 3 months ago

这样不行啊

- (BOOL)texImageIOSurface:(IOSurfaceRef)arg1 target:(unsigned long long)arg2 internalFormat:(unsigned long long)arg3 width:(unsigned)arg4 height:(unsigned)arg5 format:(unsigned long long)arg6 type:(unsigned long long)arg7 plane:(unsigned)arg8 invert:(BOOL)arg9;

这是个私有方法,你改个名字的话,调用时找不到这个方法不崩溃吗? 抓紧找个低于 iOS 11 的系统测下。

大佬我也发现这个iOS11系统一下会崩溃,但我最低支持iOS15,而且实在找不到iOS11以下系统的手机了。。。

debugly commented 3 months ago

最低支持 iOS15 没事的,压根逻辑不会走到这里来,想要在高系统版本测试的话也简单:

if (@available(macOS 10.13, ios 11.0, *)) {
    glView = [[IJKMetalView alloc] initWithFrame:rect];
} else {
    glView = [[IJKSDLGLView alloc] initWithFrame:rect];
}

ios 11.0 改大些就行了,比如:ios 21.0

zdw19840929 commented 3 months ago

最低支持 iOS15 没事的,压根逻辑不会走到这里来,想要在高系统版本测试的话也简单:

if (@available(macOS 10.13, ios 11.0, *)) {
    glView = [[IJKMetalView alloc] initWithFrame:rect];
} else {
    glView = [[IJKSDLGLView alloc] initWithFrame:rect];
}

ios 11.0 改大些就行了,比如:ios 21.0

谢谢大佬耐心指点,我晚上回去试试