简体   繁体   中英

Streaming video in HTML5/JS

I currently have an IPTV subscription and as a fun little side project I decided to create a multiplatform IPTV app. However, I'm running into some trouble when trying to stream video.

The .m3u playlist I am currently using has streaming links, however they do not end in .m3u8 as I am usually accustom to.

When I do a get request to the link in insomnia, it begins to download content with a MIME type of video/mp2t.

I have tried using hls.js along with a few other html video players however I cannot seem to get it to work.

The playlist does work with VLC!

I feel like I am missing something, just not sure what.

Thanks!!

If your IPTV service has content that the service provider wants to restrict then they may encrypt the content, use DRM and/or obfuscate the access to the manifest files and segments streams.

The reason they do this is to ensure that only their apps can be used to playback the content - this does not always have to be just for paid services as the content owner may require the content to be encrypted even for free IPTV services.

You can still do your experiment and build your multiscreen project using test streams which are available online - there are both DASH and HLS online streams available in a number of places. see here for a useful list:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM