Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Video Unity Video Player - Audio not synced with video using URL Source

Discussion in 'Audio & Video' started by drorriov, Feb 25, 2019.

  1. drorriov

    drorriov

    Joined:
    Jun 7, 2014
    Posts:
    43
    I am using a Unity Video Player to stream a video using URL type Source.

    Render mode is Render Texture and Aspect Ratio is set to Stretch (if that matters)

    What I do to play a video:
    1. Prepare the video from URL
    2. Wait until it gets prepared.
    3. Set the .time Unity Video Player property to 15 seconds (I want to start the video from the 15th second)
    4. Play Video
    5. The Bug/Issue: After playing the video there is a slight delay between video and audio. like 0.5-0.3 seconds offset.

    Reproduced on Editor and Android.

    Note: If I do not set .time value or set it to 0 the audio seems to sync fine.

    I am using Unity 2018.3.4

    Anyone experienced this issue and is there a workaround?
     
    Last edited: Feb 25, 2019
  2. Iccontemporary

    Iccontemporary

    Joined:
    Aug 6, 2020
    Posts:
    19
    Any luck with this? I'm having the same issue and thought I got it but I still can't figure it out
     
  3. drorriov

    drorriov

    Joined:
    Jun 7, 2014
    Posts:
    43
    It seems Unity Video Player is not optimized for streaming. Look elsewhere, unless it gets fixed with a newer version.
     
  4. harini

    harini

    Unity Technologies

    Joined:
    May 28, 2015
    Posts:
    45
    Is the audio being played direct or is it through an audio source?