Audio restarts when paused in WebGL

This only happens in a WebGL build.

I’ll have timeline with multiple voiceovers. If I pause mid-way through a clip and then play it again, the timeline progresses as normal but the audio clip starts from the beginning.

Please file a bug, we’ll pass it on to the WebGL team. It appears seeking isn’t occurring on the WebGL audio backend.

Done: https://fogbugz.unity3d.com/default.asp?1204018_dj1akvmejr3bgv43

1 Like

Temp workaround:
For anybody experiencing this in the future (before an official fix), if you’re handling long clips like subtitle/voiceover, create a custom timeline-track (or edit the default playables subtitle track) to trigger audio files and play directly from a source. On pause just take note of the audio source time and reset it on resume.

Another workaround:
As there is a problem with seeking, the issue also occures when you have one audio track with multiple clips cut together from the same audio file.
Workaround for this seems to be to put every clip on its own timeline track instead of having them in the same track after one another.