- Home /
is Handheld.PlayFullScreenMovie a pro feature in unity?
hello, Handheld.PlayFullScreenMovie is this a pro feature in unity. I trying to play video in android. I did as mentioned in the documentry from creating StreamingAssets folder to everything yet its not working.
heres my code.
public class VideoPLay : MonoBehaviour {
public string path = "Awake and Start - Unity Official Tutorials.mp4";
// Use this for initialization
void Start () {
Invoke ("startPlay", 0.1f);
}
void startPlay()
{
Debug.Log ("start");
Handheld.PlayFullScreenMovie (path,Color.blue,FullScreenMovieControlMode.Full);
Debug.Log ("end");
}
}
thanks in advance.
Answer by jiulian · Sep 26, 2015 at 05:54 PM
Of course not.
I put the movie at here:
DirectoryInfo videoFile = new DirectoryInfo( "file://" + Application.persistentDataPath + "/" + fileName +"."+ fileType);
Handheld.PlayFullScreenMovie(videoFile.ToString(), Color.black, FullScreenMovieControlMode.Full, FullScreenMovieScalingMode.AspectFill);
yield return new WaitForEndOfFrame();
Hi Friend,
I just tried that but nothing's happening. I put the code in my own method so I can use Debug.Log() and the method is definitely being called but nothing happens. Please help
Regards, Bhanu
Your answer
![](https://koobas.hobune.stream/wayback/20220612001211im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to check if Handheld.PlayFullScreenMovie has stopped playing 2 Answers
Video playback in Android doesn't change orientation 0 Answers
FullScreenMovieScalingMode.AspectFit not working on iOS and Android 0 Answers
Handheld.PlayFullScreenMovie() works on Android but not iOS? 2 Answers
handheld.playfullscreen 1 Answer