Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could not play the media file with MPEG-4 #15

Closed
zhangnet opened this issue Sep 22, 2016 · 4 comments
Closed

could not play the media file with MPEG-4 #15

zhangnet opened this issue Sep 22, 2016 · 4 comments

Comments

@zhangnet
Copy link

I download a video file with url and store in local path,when I play it with CTVideoPlayerView,the log output:
Error Domain=AVFoundationErrorDomain Code=-11833 "无法解码" UserInfo={NSLocalizedFailureReason=找不到此媒体所需的解码器。, NSUnderlyingError=0x7fcc90e41f40 {Error Domain=NSOSStatusErrorDomain Code=-12945 "(null)"}, AVErrorMediaTypeKey=soun, NSLocalizedDescription=无法解码}

@casatwy
Copy link
Owner

casatwy commented Sep 22, 2016

这个文件可能只是后缀名是MP4,编码方式不是MP4的编码方式吧?因为报的是无法解码的错误。CTVideoPlayerView的解码器用的是iOS系统默认的

@casatwy casatwy closed this as completed Sep 22, 2016
@zhangnet
Copy link
Author

我用QuickTime 影片检查器看到的格式显示是MPEG-4

发自我的 iPhone

在 2016年9月22日,下午12:12,Casa Taloyum <notifications@github.commailto:notifications@github.com> 写道:

这个文件可能只是后缀名是MP4,编码方式不是MP4的编码方式吧?因为报的是无法解码的错误。CTVideoPlayerView的解码器用的是iOS系统默认的


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/15#issuecomment-248806591, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADdFWgUShiTdlFsOBjhb2rg1RLPGBw6Wks5qsgAygaJpZM4KDf05.

@casatwy
Copy link
Owner

casatwy commented Sep 22, 2016

这就很蛋疼了,因为我写CTVideoViewPlayer的时候,并没有涉及解码器的部分,用的都是原生的,也许将来我会添加第三方解码器模块来解决这个问题。

@zhangnet
Copy link
Author

还是感谢你的付出,你的代码让我很有收获

发自我的 iPhone

在 2016年9月22日,下午2:01,Casa Taloyum <notifications@github.commailto:notifications@github.com> 写道:

这就很蛋疼了,因为我写CTVideoViewPlayer的时候,并没有涉及解码器的部分,用的都是原生的,也许将来我会添加第三方解码器模块来解决这个问题。


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/15#issuecomment-248819507, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADdFWkutpnfzD3rk45B7LhmVf0j2N8-Aks5qshnDgaJpZM4KDf05.

@hoowang hoowang mentioned this issue Mar 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants