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
- MotionVector Effect: Object “disappears” when paused
- [GreaseMonkey] Unity Forum Fixer
- UnityHub: Make Hub application background Translucent
- Customize SpriteShapeRenderer quality (but has issues)
- Editor tool: Copy selected gameobject’s names into clipboard as rows (for Excel)
- Editor tool: Replace string in selected gameobject’s names
- 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
Recent Comments
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
- Vector3 maths for dummies! on
- UnityHub: Make Hub application background Translucent on
- UnityHub: Make Hub application background Translucent on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- [Asset Store] Point Cloud Viewer & Tools on