Search Unity

Video Usage example for VideoPlayer.externalReferenceTime

Discussion in 'Audio & Video' started by jeromemaureyd, Apr 4, 2018.

  1. jeromemaureyd

    jeromemaureyd

    Joined:
    Nov 8, 2017
    Posts:
    2
    Hi,

    I am looking for more info on usage for externalReferenceTime. Specifically when and how should that value should be updated and how it is handled internally.

    I am synching two videos, one local and one remote, using our own functions by speed adjustments or frame skipping based on the amount of drift between the two videos.

    It could be that this variable is intended to help with that, but the docs are light. So any clarifications or help would be appreciated.

    Cheers,

    J
     
    noemis likes this.
  2. jeromemaureyd

    jeromemaureyd

    Joined:
    Nov 8, 2017
    Posts:
    2
  3. noemis

    noemis

    Joined:
    Jan 27, 2014
    Posts:
    76
    hey there, just found this entry. I also try to sync video and (in my case) audio, but I also noticed, that there are very few information about and nearly no docs. My case and how I use it (in Update) I describe here: Link

    To keep it short: with setting the timeReference to ExternalTime and setting externalReferenceTime in the Update, we should sync the video to an external clock (time ref from audio / video / etc.) - but as far as I can see, it's working badly.