Log in or register to post comments

Video Playback but no sound

March 6, 2018 - 8:34am #1

I'm just starting my first project wanting to display a video attached to a target.  I've got the video working but not getting any sound playing with the video on my Android device.  I've tried a couple different videos with the same results.  I've been searching the forum for anything that might help, but haven't found anything yet.

My project consist of:

ARCamera
Video Player
Image Target
    Quad

 

The Video Player has the Video Clip set to the video asset that was imported in. (I've also tried turning on the "Override for Android, and the Transcode checkboxes on the video asset).  The "Import Audio" is checked on also on the video asset.

I've set the Render Mode to "Material Override" and set the Quad item as the Renderer.

Audio Output Mode is left as the default "Direct" (don't know how to do the Audio Source yet.)

When I run the app on my Android device, it finds the target and will display the video playing on it, but I can't get any sound to play with it.

Am I missing anything in trying to get this to work?

I would appreciate any help.

John,

Video Playback but no sound

April 28, 2018 - 1:21pm #5

I had the same issue because iOS supported the Direct audio flag but Android didn't (on my test BQ at least). For android I made it work by doing this:

  • Go to the videoclip's parent
  • Add an audio source to it
  • Set the Spatial Blend to 1
  • Go to the videoclip
  • Set the Audio Output Mode to Audio Source
  • Select the audio source you just created

References:

http://www.appzinside.com/2017/05/26/getting-sound-of-the-new-video-player-in-unity-working-for-hololens-developers/

I hope it helps...

Now, what I experience though is that the audio comes a little bit later than the video and I'm a little stuck with that, so any help is welcome.

Thanks,

Andoni.

Video Playback but no sound

March 8, 2018 - 6:52pm #4

Hello, 

 

It turns out that I have the same problem and I did not mnage to figure it out. Could you explain how did you got the "direct sound" option working ? 

 

Thank you!

 

G.

Video Playback but no sound

March 8, 2018 - 6:59am #3

Well, I finally got it working by basically trying to recreate the full target sample for the fission scene.  Thanks.

Video Playback but no sound

March 6, 2018 - 9:01am #2

Hello John,

I'd recommend looking over our Core Samples. The Image Target scene has an example of using the Video Player component.

Thanks,

Vuforia Support

Log in or register to post comments