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

Should we add a default MediaSession type? #128

Closed
mounirlamouri opened this issue May 18, 2016 · 2 comments
Closed

Should we add a default MediaSession type? #128

mounirlamouri opened this issue May 18, 2016 · 2 comments

Comments

@mounirlamouri
Copy link
Member

The API is designed in a way that we must get the kind right in order to implement other parts of the API. The reason is that kind is a parameter of MediaSession constructor and defaults to content so at least content type needs to be implemented in order to be forward compatible.

I wonder if we could introduce a default kind which would associate the created session with the default UA session. That way, a UA could not expose kind if it is not fully and properly implemented and expose other parts of the API. This behaviour would be feature detectable and forward compatible.

Practically, the rationale here is that MediaMetadata sounds like a great feature to ship on mobile but it is blocked by kind. The downside is that we are exposing an undefined behaviour in the spec and we will no longer make sessions defaulting to content which means developers will have to make a conscious decision if they want another type than default. Arguably, it can be a good thing.

@foolip, WDYT?

@avayvod avayvod closed this as completed May 19, 2016
@avayvod avayvod reopened this May 19, 2016
@xxyzzzq
Copy link
Contributor

xxyzzzq commented Sep 12, 2016

Closing this issue since we are moving audio focus out to a separate API.

@xxyzzzq
Copy link
Contributor

xxyzzzq commented Oct 3, 2016

This issue was moved to WICG/audio-focus#10

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

3 participants