Hello,
I am quite new to Unity and programming in general, so this might be a simple or dumb question.
Is there any watch to play “.m3u8” files from an URL with the VieoPlayer component?
Thanks,
Dragos
Hello,
I am quite new to Unity and programming in general, so this might be a simple or dumb question.
Is there any watch to play “.m3u8” files from an URL with the VieoPlayer component?
Thanks,
Dragos
I’ve never heard of this file format before, but according to this, .m3u8 files are just plain-text files that contain reference URLs to actual media files. They don’t contain any media themselves and thus cannot be “played”.
You’ll need to open your .m3u8 file and read the URLs out of it, then figure out how you want to play media from a URL.
Thanks for your answer, Kishotta! I already knew that “.m3u8” is just a plain text file that gives you the name of the “.ts” files, for example, which you have to play and in what order. I managed to successfully extract the names of the individual video files, however, it would be very difficult to reliably create a script that manages to play those small video files one after the other, without skipping any frames. If you happen to know (or create) a script that feeds to the VideoPlayer component the links extracted from the “.m3u8” in a consistent way and without any lag between them, not even one frame, I would be deeply grateful. Thanks!