- Home /
Is there any watch to play ".m3u8" files from an URL with the VieoPlayer component?
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
Answer by Kishotta · Jan 20, 2018 at 04:01 PM
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.
Answer by dragos_m · Jan 20, 2018 at 04:10 PM
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!
Your answer
Follow this Question
Related Questions
VideoPlayer streaming and buffering 0 Answers
Handheld.PlayFullScreenMovie in iOS is faulty? 0 Answers
play back 360 video STEREO on GearVR 1 Answer
Is it possible to access a file from the android Internal storage on to a Unity app during run time? 0 Answers
Integrating Intel-Media SDK with Unity 0 Answers