New issue
Advanced search Search tips

Issue 721707 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug

Blocked on:
issue 715049



Sign in to add a comment

User Gesture AudioContext plus Sound

Reported by p...@sketchfab.com, May 12 2017

Issue description

Steps to reproduce the problem:
1. on android get user gesture to create audio context, create webaudio buffer
2. let seom time pass
3. play a mediaElement connected to that audiocontext
4. get "Error gesture"

What is the expected behavior?
sound from mediaelement connected to audiocontext should play

What went wrong?
need gesture for audiocontext and gesture for mediaelement

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 58.0.3029.089  Channel: stable
OS Version: 3.01
Flash Version: Shockwave Flash 25.0 r0
 
Owner: qin...@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 2 by qin...@chromium.org, May 12 2017

Owner: dalecur...@chromium.org
Cc: rtoy@chromium.org mlamouri@chromium.org
Owner: ----
Status: Untriaged (was: Assigned)
Components: -Blink>WebAudio Blink>Media
Owner: mlamouri@chromium.org
Status: Available (was: Untriaged)
Sounds fair enough. We have a new autoplay policy in the making that should fix this. Though, in the meantime, would it work to "bless" the video element when you get a user gesture?

Comment 5 by p...@sketchfab.com, May 16 2017

In order to overcome the current limitation, for now, we do on "user gesture" we do 'audiocontext creation' + 'audio medialElement' play() but with gain node with value of 0, and then set medial currenttime and volume when the real "play" is needed. that "all-one-work" gesture works afaict (not ideal though)

( Would love official doc link the on (new) autoplay policy in the making !)
Blockedon: 715049
see  bug 715049 

Comment 7 by p...@sketchfab.com, Jul 13 2017

Just FYI, Posting there, we released the sound feature where we use Webaudio + 3D positionning
https://sketchfab.com/models?&features=sound&sort_by=-viewCount

Webaudio api is very good, and very well implemented, hardly had to code anything about audio and 3D. 

In fact, most of the code is audiocontext (release/allocate) handling to overcome the 6 limit, and handling of "user gesture" auth. As Both are entwined (As I release audiocontext on "tab hidden" and ask user again on "tab visible"). Also Our 3d viewer is to be embedded as iframe on web page, and webpage can have more than 6 embeds, which leads to "complex technical error message" for users like some ("please "exit" other embeds so that sound can play here")

Thanks for all the bug fixes, and please ask/email if you want pro account to test multiples sound, as free user are limited to 1 sound. :)


Comment 8 by p...@sketchfab.com, Oct 12 2017

Any news on that ?
And the question in https://bugs.chromium.org/p/chromium/issues/detail?id=715049#c32 

I'd really like a simple synchronous API to get authorization and or reading authorization status 

Rationale is that milliseconds at a web page start are costly (need that info as fast as possible which is js parse time), and current code makes for async + exception throwing not ideal at all for optimisations...
This is something we are looking at.
Components: -Blink>Media Blink>Media>Autoplay
Status: Fixed (was: Available)
This should be fixed with the new autoplay policy in M66.

Sign in to add a comment