- Home /
Video Texture and Audio start to desync on Pause and Play.
I'm trying to create a Video player in my code where the User can Play and Stop a Video Texture with the Audio.
When I play from the start the Video Texture and Audio are sync up correctly.
However when I rapidly play and pause the video the two begins to desync up with the Video Texture being ahead by half a second from the Audio file.
Is there anyway to resync those two up without starting from the beginning?
Thank you.
Answer by DTo · Aug 22, 2014 at 04:18 PM
Alright I think I solved it. apparently you should not drag the audio clip that is in the MovieTexture into the audio source. you have to set it up by code.
that is a way to sync it up.
However when I repeatedly Play and pause. there are delay to both the audio and the movie texture.
Example. One video file have a tone at 4 Seconds.
When I play it from start to finish. the Tone plays at exactly 4 seconds with the Audio.Time being 4.0f.
However when I repeatedly play and pause the tone is played when Audio.Time is at 2.0f.
Anyone know how I can fix this so that Audio.Time reads 4.0f like it suppose too?
Your answer
Follow this Question
Related Questions
How to make two audio tracks play in sync? 2 Answers
How to synchronize in Unity? 1 Answer
How to Sync Spine Skins on UNet 0 Answers
Why gfx emulation causes audio sync problems (ios) 1 Answer
Delay with Microphone.Start 1 Answer