Previously, I was using MovieTexture to load OGV files at runtime to play videos. Now that MovieTexture is deprecated, I’m moving to VideoPlayer instead. I see that we can now play mp4 files at runtime by doing things like this:
GetComponent<VideoPlayer>().url = "file:///C:/Videos/foo.mp4"
This works fine and plays the mp4 movie. However, this doesn’t work when I give it the path to an OGV file. I get an error:
Can’t play movie [file:///C:/Videos/foo.ogv]
Is this no longer possible with the new VideoPlayer?