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

Is it possible to play GvrVideoPlayerTexture audio through GvrAudioSource?

Discussion in 'Daydream' started by citizenlab, Aug 24, 2017.

  1. citizenlab

    citizenlab

    Joined:
    Jul 19, 2017
    Posts:
    3
    I'd like to use spatial audio for a video I'm playing in a virtual tv via the GvrVideoPlayerTexture, but do not see any obvious way to play the audio through an in game gvr audio source. Does anyone know if this is possible, or is it a limitation of the gvr video player?
     
  2. HeyBishop

    HeyBishop

    Joined:
    Jun 22, 2017
    Posts:
    238
    I wonder the same thing.
    Best I can tell - audio is completely neglected by GvrVideoPlayerTexture.
     
  3. rrrus

    rrrus

    Official Google Employee

    Joined:
    Jul 13, 2015
    Posts:
    14
    Sadly, this is not possible at the moment, as GvrVideoPlayerTexture uses ExoPlayer which handles audio playback entirely internally. Is your desire to spatialize a stereo audio track or to spatialize an ambisonic audio track?
     
  4. HeyBishop

    HeyBishop

    Joined:
    Jun 22, 2017
    Posts:
    238
  5. rrrus

    rrrus

    Official Google Employee

    Joined:
    Jul 13, 2015
    Posts:
    14
    You can set position by setting GvrVideoPlayerTexture.CurrentPosition to the desired time in milliseconds.
     
    HeyBishop likes this.
  6. HeyBishop

    HeyBishop

    Joined:
    Jun 22, 2017
    Posts:
    238
    OH MY GOSH.

    Somehow I never noticed this response.

    Thank you.
    I'm putting this new found knowledge to use!