Oct
13
2015

Playing FullScreen Video in Mobiles

movietexture_mobile_error_unity

Trying to publish scene to mobiles with MovieTexture?

Error will come up: (movie texture is not supported in mobiles)
“error CS0246: The type or namespace name `MovieTexture’ could not be found. Are you missing a using directive or an assembly reference?”

Solution:
Use this free example package: “Simple Movie Player” https://www.assetstore.unity3d.com/#!/content/34959?aid=1101lGti
It uses Handheld.PlayFullScreenMovie() ->  http://docs.unity3d.com/ScriptReference/Handheld.PlayFullScreenMovie.html

Read the notes from docs:
– You will have to create a folder named StreamingAssets inside your Unity project (inside your Assets folder). Store your movies inside that folder
– Calling this function will pause Unity during movie playback. When playback finishes Unity will resume (its separate videoplayer)


Leave a comment

Connect

Twitter View LinkedIn profile Youtube Github Join Discord Twitch Instagram BlueSky

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.