Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Video PlayFullScreenMovie streaming video from URL

Discussion in 'Audio & Video' started by Gio17, Dec 20, 2018.

  1. Gio17

    Gio17

    Joined:
    Oct 1, 2018
    Posts:
    1
    Hello everybody,

    I need to let the user play a video from a network location and realized that the PlayFullScreenMovie function could fit perfectly for this need.
    I chose Minimal for the control mode in order to give the user the possibility to control the playback:

    Code (CSharp):
    1. Handheld.PlayFullScreenMovie(fileVideo, Color.black, FullScreenMovieControlMode.Minimal, FullScreenMovieScalingMode.AspectFill);
    However, in cases of bigger files combined with a slow-speed connection (e.g. mobile), the stream starts instantly but if the progress bar is brought forward too soon the videoplayback is terminated and Unity fades out to the previous scene. Presumably, the method realizes that it has reached the end of file even though actually it’s still downloading.

    Is there a way to avoid this behaviour? Something like a buffering message while the download reaches the desired frame?

    Your help is much appreciated!

    PS: I am using Unity 2018.2.11f1 and my target is Android.

    Thanks,
    g