Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Media Session API #25

Open
thijstriemstra opened this issue Feb 3, 2017 · 1 comment
Open

Support for Media Session API #25

thijstriemstra opened this issue Feb 3, 2017 · 1 comment

Comments

@thijstriemstra
Copy link
Member

With the Media Session API, you can now customize media notifications by providing metadata for the media your web app is playing. It also allows you to handle media related events such as seeking or track changing which may come from notifications or media keys.

I basically want to be able to control a videojs-wavesurfer instance from the notification area of my android phone.

See https://developers.google.com/web/updates/2017/02/media-session

Screenshot

@thijstriemstra
Copy link
Member Author

thijstriemstra commented Feb 16, 2017

wavesurfer.js has a media session plugin since 1.3.4 but unfortunately it only works with the MediaElement backend which is incompatible with this plugin. It should work with the regular webaudio backend as soon as browsers add support for media session + webaudio.

From docs:

As the Web Audio API doesn't request Android Audio Focus for historical reasons, the only way to make it work with the Media Session API is to hook up an element as the input source to the Web Audio API. Hopefully, the proposed Web AudioFocus API will improve the situation in the near future.

Also see https://wicg.github.io/audio-focus/explainer.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant