My video player components do not show up in my build for some reason unknown to me They are all mp4 files at less than 15 mb and yet they either are not showing up at all, or flash intermittently with a red solid colour. Does anybody have any ideas? I’m so flustered, they play in my editor mode.
Hopefully I may be able to help.
Although they are MP4s how do you have them transcoded?
I did have them transcoded! But I have done material override and not render texture…could that have been it?
I don’t think but I’m not sure.
Usually when something works in the Editor but not in a build is because it’s not compatible with your OS.
I.E. If you have a video transcoded to a non-Windows format, then in the Editor it will work cause the Editor has built in functionality to play it. But your Windows OS does not know how to play that certain format so it just can’t.
I know you transcoded it correctly, but my point is that maybe it is another settings?
Other things I would check for is if it is a UI element, to make sure it is constrained properly using the anchors. In the Editor your UI element may fit on the screen, but with your build potentially being of a different resolution, it might move it out of view. Anchors stop it from doing that no matter the resolution.
Another thing to try would be to tick “Development Build” that should display a console if an error occured in your build and should hopefully lead you in the right direction.
I’m working on Mac and with Unity 2013.3! And its not a UI element, but an object upon which I’ve applied the video player as a texture.
These are my current settings.
I am also getting errors related to : UnityEngine.GUIText' is obsolete:
This component is part of the legacy UI system and will be removed in a future release.’ within my console They are more warnings though actually, so I wonder if its something within this standard asset folder that might be providing issue? I dont refer to these scripts but I wonder if by some roundabout way they are getting referred to? (They are Forced Reset and SimpleActivatorMenu scripts)
BUMP
Hmm I am not sure, as for the UnityEngine.GUIText, anything that that preceeds with GUI in their name is usually regarding deprecated (old, possibly not compatible) code. That should be unrelated though, as with the other ones unless they are tied to your VideoPlayer. If so, in what way are they tied to it?
Just to make sure, what is your video transcoded to?
You can try to play it with Material override (using Unlit/Texture shader) using a plane facing the Camera. (just to test it)
Also take into account that the internal code Unity use to play the video in the inspector is NOT the code used to play it in StandAlone/IOS/Android.
One clip can be played in the inspector but NOT play at all in the selected platform due to format incompatibilities (video codecs included in each platform are NOT the same). Try to use h264 codec if posible (h264, Baseline 3, .mp4 container works great because is an standard that everybody uses in any platform)