Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to stream and play a transport stream file (*.ts) using an HTML5 player.
Posted

1 solution

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
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900