I'm trying to write an editor-only script that will take a link to a streaming OGG video, download it, get the height/width and video name, then use that to build a screen and RenderTexture of the same size as the video.
I've gotten every part of it seemingly working, it spends about 10-15 seconds downloading a movie, but if I check the returned movie, it's name is null and it's size is 16 by 16. I've checked the video streams I've been using for this, and they work fine, so it must be something with the code.
Here is the actual download IEnumerator (C#), it takes the actual address from a function elsewhere in the class (the URL comes through fine).
The long Debug Log will return: "Adding downloaded movie by name of "", with a file size of = 2864977, and a Height:Width of = 16:16" So it's getting an actual file with a size, and it takes about 10-15 seconds to download the movie usually, but the name shouldn't be "" nor should the height be 16:16, trying with another stream gets the same results (though a different file size).
I use a sort of manual Coroutine in the update to work the downloading with a GUI button setting run = true;
Are there any obvious problems that stick out here or any ideas on what might be causing the null values to come through? I'm really stumped by this.