JPVideoPlayer
JPVideoPlayer copied to clipboard
Not support MIMEType: application/octet-stream
稍微短一点的视频无法播放报这个错怎么办?
Is there any solution on it? I am having same issue
yeah I solution on
发自我的iPhone
------------------ Original ------------------ From: yo113 [email protected] Date: Sat,Aug 3,2019 1:57 PM To: newyjp/JPVideoPlayer [email protected] Cc: LiakemrQ [email protected], Author [email protected] Subject: Re: [newyjp/JPVideoPlayer] Not support MIMEType: application/octet-stream (#255)
Is there any solution on it? I am having same issue
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
添加 JPVideoPlayerDownloader.registerSupportedMIMETypes(["application/oct-stream"])
修改JPVideoPlayer.m
第239
行
AVURLAsset *videoURLAsset = [AVURLAsset URLAssetWithURL:[self composeFakeVideoURL] options:nil];
→ AVURLAsset *videoURLAsset = [AVURLAsset URLAssetWithURL:url options:nil];
这样application/octet-stream
Type的url就能正常播放了。
添加
JPVideoPlayerDownloader.registerSupportedMIMETypes(["application/oct-stream"])
修改JPVideoPlayer.m
第239
行AVURLAsset *videoURLAsset = [AVURLAsset URLAssetWithURL:[self composeFakeVideoURL] options:nil];
→AVURLAsset *videoURLAsset = [AVURLAsset URLAssetWithURL:url options:nil];
这样application/octet-stream
Type的url就能正常播放了。
请问JPVideoPlayerDownloader.registerSupportedMIMETypes(["application/oct-stream"])` 在哪里添加