You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MediaSession as global instance... various platforms will certainly have their conventions. The management of mediaSession between a single apps iframes and between multiple tabs in a browser environment seem like essentially the same problem. If there is a security concern then consider [SecureContext], but otherwise, I wonder if adding author-management for this complexity is worth the effort. I have a hunch UA's will do the right thing, and even if they don't, the OS will need to do the right thing when brokering access between Apps and sites (even in different browsers) all competing for the mediasession instance. I'm not sure to what extent it makes sense to try to solve this problem in the spec...
The text was updated successfully, but these errors were encountered:
This is what we called "audio focus", which is for deciding which media should play and which should not, and which is the currently media most meaningful to the user. This was part of the API in the very beginning, but it was took away and moved to the Audio Focus PI which is still work in progress. The reason for this move is that there are still many unclear topics and platform integration issues that slows down the Media Session API progress.
For the case of mobile devices, it is common to allow at maximum of one tab plays sound (as implemented on Chrome and Safari), so the UA should have audio focus managing audio focus already. For desktop, hopefully this could be solved either by the UAs themselves or by the Audio Focus API, but it is still unclear.
[Filed in response to the request for TAG feedback]
@xxyzzzq @mounirlamouri
MediaSession as global instance... various platforms will certainly have their conventions. The management of mediaSession between a single apps iframes and between multiple tabs in a browser environment seem like essentially the same problem. If there is a security concern then consider [SecureContext], but otherwise, I wonder if adding author-management for this complexity is worth the effort. I have a hunch UA's will do the right thing, and even if they don't, the OS will need to do the right thing when brokering access between Apps and sites (even in different browsers) all competing for the mediasession instance. I'm not sure to what extent it makes sense to try to solve this problem in the spec...
The text was updated successfully, but these errors were encountered: