Hello everyone,
I know it’s not possible to have MovieTexture on iPhone. But as it is possible to read any file via WWW class, maybe we could read pixels of some remote video file thanks to it? Anyone has an idea? Even if it required heavy coding.
Thanks.
thats not possible.
WWW can’t load movies on iOS, playing movies from web requires that you use the corresponding function for native movie playback
Probably you’re right and it’s just something I’m not aware of that still keeps me think about it. So here’s my last try.
Imagine you have a remote video file with it’s extension changed, let’s say to .bin. WWW will read the file, but it won’t see it’s actually a movie. But it will allow you to access it’s ‘bytes’ field. Then, if we managed to write our own video codec in C# in Unity, we could get pixel values from the read bytes. I guess the performance would be poor, but theoretically, it is possible, isn’t it?
Thanks again.
It is theoretically possible to write your own codec but it requires a lot of specialist knowledge (and maybe licence payments, etc) for most of the standard video formats. Depending on what you’re doing, you may find that a simpler format (line MNG) is more straightforward, albeit at the expense of poor compression.