That's interesting, thanks for the examples.
I need to think about how this can be done. I'm not sure about loading external video-player plugin into the "popup" (which currently displays normal browser-supported videos like mp4 /
demo). However, we can probably load the video either in a popup or some modal overlay. One thing to mention, is that if you have the
*.ts files located in the same folder as the
*.m3u8 file, they will also display in the Files gallery unless you hide the extension.
It seems several Javascript video players can support the m3u8/streaming format:
videojs.com /
hls.js /
mediaelementjs.com /
jwplayer.com
Temporary solution
I don't know if you are interested, but you can get this to work already with a workaround.
- In config set 'click_window' => 'm3u8', which will open m3u8 files in new browser window.
- On your NGINX server, redirect *.m3u8$ requests to dplayer/?videourl={%PATH%}
When user clicks m3u8 file in Files app, it will open popup window with the player, similar to your example:
*/player/dplayer/?videourl=,*/player/demo/a/index.m3u8
I'm not 100% sure how to setup the redirect with nginx, but the above is definitely possible.