13
2015
Playing FullScreen Video in Mobiles
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)
Related Posts
Leave a comment
Recent posts
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
- Check if point is inside polygon 2D (using line intersection)
- UnityHub: Enable Create Project Button (without having to select Cloud Organization)
- UI: Make Tooltip background fit Text content length
- Pong-Wars in Unity
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub)