我可以在html5播放器中播放.ts(传输流)文件 [英] Can I play a .ts (transport stream) file in html5 player
本文介绍了我可以在html5播放器中播放.ts(传输流)文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要使用HTML5播放器流式播放传输流文件(* .ts)。
I need to stream and play a transport stream file (*.ts) using an HTML5 player.
推荐答案
容器的此标准格式更面向数字电视: http://en.wikipedia.org/wiki/MPEG_transport_stream [ ^ ]。
此外,它已扩展到 M2TS 和 TOD 。
所以,首先,我会建议您将所有媒体内容的流和容器转码为适合HTML5的一种更可接受的格式。请参阅:
http://en.wikipedia.org/wiki/HTML5_video [< a href =http://en.wikipedia.org/wiki/HTML5_videotarget =_ blanktitle =New Window> ^ ],
http://en.wikipedia.org/wiki/HTML5_audio [ ^ ],
http://en.wikipedia.org/wiki/HTML5_video#Supported_video_formats [ ^ ],
http://en.wikipedia.org / wiki / HTML5_audio#Supported_audio_codecs [ ^ ] 。
尽管如此,这个实现Web搜索显示MTS仍然可以与HTML一起使用,特别是HTML5,但可能使用一些第三方产品: http://lmgtfy.com/?q=%22.ts%22+file+HTML5 [ ^ ]。
我可能会尝试避免它,但你决定。
-SA
This standard for the container format is more oriented to digital television: http://en.wikipedia.org/wiki/MPEG_transport_stream[^].
Besides, it has been extended to M2TS and TOD.
So, first of all, I would advise you to transcode the streams and container, all you media content, into one of more acceptable formats suitable for HTML5. Please see:
http://en.wikipedia.org/wiki/HTML5_video[^],
http://en.wikipedia.org/wiki/HTML5_audio[^],
http://en.wikipedia.org/wiki/HTML5_video#Supported_video_formats[^],
http://en.wikipedia.org/wiki/HTML5_audio#Supported_audio_codecs[^].
Nevertheless, this simple Web search shows that the MTS still can be used with HTML, and HTML5 in particular, but probably by using some 3rd-party products: http://lmgtfy.com/?q=%22.ts%22+file+HTML5[^].
I would probably tried to avoid it, but you decide.
—SA
这篇关于我可以在html5播放器中播放.ts(传输流)文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文