Hi everybody,
The project you can download through the link below is meant to grant you immediate access to the new Video Player.
This affords you the possibility to see this feature in action, without having to implement things yourself. This is supposed to be an elevated starting point for your exploratory adventures in Unity’s Beta.
In the ‘Cinema’ Scene you take place inside a virtual cinema to watch videos of your choice.
After opening the project in Unity and loading the ‘Cinema’ Scene, you have to import a video file and assign it to the VideoPlayer component attached to the ‘Screen’ GameObject.
Then simply play the scene and press the space bar to start the replay. If you want to enjoy a seamless cinema experience, I recommend building the project once you’ve set up the video.
If you don’t have any cinematic video material you want to examine, you can download the first part of the Adam demo here (34 MB): (Link removed)
It doesn’t work with android? (( I do some optimization for mobile (remove all seats and lights), and set “auto play” for video, but video don’t play on Android device. Test it on Sony Z3. In Editor it works flawless.
Has anyone succeeded in playing 4K 360 video? I’ve tried quite a couple of encodings but Unity keeps throwing errors “Error while reading movie” and “Movie encoding error”. I’ve tried H.264 (Main 5.1) and H.265. Any special settings I’m missing?
Hi, yeah. CORS seems to be a problem. I also had problem with Microsoft IIS. I have changed my URL and put it on Apache Server. The video is working fine in WebGL now.
I found kind of an obscure Error, using Perforce and was able to resolve it, eventually. Process to re-produce error:
Have a project working with video in a folder, and video on an object, Branch the Project, open the source, allow to re-compile, and then play / execute, it will come up with a “Can’t find movie [ ]” error. I did some looking into where that error lived, so I could see what it was trying to do, it must sin in the source, as it’s not in my code, or code I can see. So I tried everything, assigning nothing to the Video Clip, changing the render to texture, renaming things nothing worked, until I remove the movie from the project and brought it back in, re-creating the meta file I assume, and then when I dragged it in it started working, nothing materially changed, other than me removing and having to re-import the movie.
I had the same error as you (AndroidVideoMedia::StartAudioDecoders: Cannot get media track 1 language). To make the example above work on Android, I had to uncheck the “import audio” checkbox in the import settings for the video. I was able to play three videos simultaneously on three different screens.
Note that this does not work on iOS. Although there is no crash or error messages, no video plays. I tried on iOS 10.2.1 and 8.1.1. Has anybody been able to play videos on iOS using the new VideoPlayer ?