- Home /
Playing a video as part of the scene on mobile
Hi all, I have a Video file, that is the intro to my game, and I want to play it but also have a SKIP button visible that the player can click to skip the whole video. The game is for Android and iOS.
I have tried the Handheld.playfullscreenmovie, but this plays the video in an external player and I can't add the skip button.
Movie texture isn't supported on mobile platforms, and I haven't found a plugin that works.
Some are broken and aren't updated, while others I found simply user a MJPG format which is essentially a series of stills, inflating the movie size (past the acceptable levels that I can add to the project).
I was thinking if its possible to add a webbrowser-like object to the scene and have it play a webpage that will stream the video, but haven't found a way to do it (with or without plugins).
Any suggestions would be welcomed, plugins/workarounds. I have Unity PRO licence for both iOS and Android so any solution is acceptable.
Answer by Paulius-Liekis · Mar 03, 2015 at 07:16 PM
Your observations are correct ;)
Handheld.playfullscreenmovie gives you what kind of controls to show on screen. You can not display your custom skip button as far as I know.
We used MobileMovieTexture to play videos is 3D space. It doesn't play audio, so we played audio using regular AudioSource. Of course sometimes that lead to missynchronization, because video lags on slow devices (iPhone3GS in our case), so we had to do some synchronization. It wasn't perfect, but it worked.
From what I've seen is that $$anonymous$$obile$$anonymous$$ovieTexture no longer works, so thats out of the questions.
Answer by cadpeople · Oct 08, 2015 at 10:53 AM
This sample works falwlessly on Android, as well as iOS. I find it very complicating, so I'm not having much luck duplicating it in my own project, but it works very well! Now if someone were to duplicate the results using this as a base, and turn it into a plugin... https://developer.vuforia.com/downloads/samples
Your answer
![](https://koobas.hobune.stream/wayback/20220613184844im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Will movie textures work on iOS and Android phones? Please help...please advice 1 Answer
Did anyone built the Alembic Importer for Android and iOS? 0 Answers
Help me step by step to make video play on mobile! 2 Answers
Android an iOS version of Plugin 1 Answer
Access web-hosted game from iOS mobile? 0 Answers