xcode 如何在 iOS 视频播放器中播放 webm 文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/27269075/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 06:17:44  来源:igfitidea点击:

How to play webm file in iOS video player

iosiphonexcodewebmvideo-player

提问by Hamza aziz

I want to give support of webm file in iOS , but iOS doesn't support this format to play a video. i Even tried to play it through HTML5 video tag but safari doesn't support webm format in HTML5 video tag that means i also cant make it work through UIWebView. But i have seen an app that is supporting this format in their media player , that means there should be some way.

我想在 iOS 中支持 webm 文件,但 iOS 不支持这种格式来播放视频。我什至试图通过 HTML5 视频标签播放它,但 safari 不支持 HTML5 视频标签中的 webm 格式,这意味着我也无法通过 UIWebView 使其工作。但是我在他们的媒体播放器中看到了一个支持这种格式的应用程序,这意味着应该有一些方法。

Thanks in advance for help!

预先感谢您的帮助!

回答by sKhan

Have you tried integrating MediaVLCKitby VLC?

您是否尝试过MediaVLCKit通过 VLC 进行集成?

As per VLC for an iOS device: The app claims to be able to play a veritable cornucopia of different video formats, including .mkv, .vob, .wmv, and WebM.

根据适用于 iOS 设备的 VLC:该应用程序声称能够播放不同视频格式的名副其实的聚宝盆,包括 . mkv, . VOB,。wmvWebM

PFA link for VLC for iOS 2.5.1which includes MediaVLCKit library as well.

适用于 iOS 2.5.1 的 VLC 的PFA 链接,其中还包括 MediaVLCKit 库。

Hope this works :)

希望这有效:)