videoh.264vlcaacmpeg

How to play MPEG-TS in chrome


I have a video in which I want to show the user ( 'the' user because he can access Chrome PC or Chrome android).

If it's possible it would have nice to use html5 tags, but since it TS it can't...

So, I need a better suggest on how could I play them rather then open vlc and copy&past the file path. But that's terrible idea...

I saw this library which add VLC protocol ( vlc:// links ), but I prefer to use server side solutions.

I uploaded an example file in which you could see here.

I don't want to convert all the files into another format.

Edit: If someone comes here in future, after take @szatmary advice, there are some projects on GitHub who do it, however I can't use any of them without partially convert ( in a manner ), and since i'm working with extremely big files (10G+) and extremely weak computer ( Single 1.8 Cpu core ) I manage to display the audio only, not a real solution, but covers my needs.


Solution

  • Convert the file to mp4. If the ts file is h.264+aac, you can convert to fmp4 in javascript and play via media source extensions, but that is A LOT of code to get working.