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 Video Player not working

Discussion in 'Audio & Video' started by OctoSharko, Aug 5, 2017.

  1. OctoSharko

    OctoSharko

    Joined:
    Dec 9, 2016
    Posts:
    34
    Hi,

    I am failing at playing a simple video under unity free 2017.1.0f3 personal

    I am working on a game and I'd like to play an introduction video at the start of the app. Then move onto the login screen whenever the player clicks it.

    I have created a video player object, draggged and dropped the video clip (mp4) into the video clip field of the object.

    I then attached the object to the camera. In the script attached to the camera I created a public VideoPlayer that i have populated with the video player object.

    I then execute :

    void Awake ()
    {
    VideoPlayer.Play();
    }

    But nothing happens.

    perhaps it should be executed within a separate thread (coroutine) ? I tried but did not work either.

    Any help please ?

    Thanks
     
  2. Divit

    Divit

    Joined:
    Jul 14, 2017
    Posts:
    4
    set camera to near plane or far plane in video player's render mode.
     
    gotiobg likes this.