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
Given the naming of mediaSession and audioSession, I think it would be useful for their explainers to mention each other and explain the differences.
For people familiar with older web standards, but approaching these two for the first time, the naming can be quite confusing.
For example, HTMLAudioElement and HTMLVideoElement both inherit from HTMLMediaElement. So newcomers may assume that audioSession inherits from mediaSession in a similar fashion. But it appears that quite reasonable assumption is incorrect.
If these newer APIs are going to deviate from long-standing convention, then it would be useful for explainers to draw attention to that fact explicitly.
The text was updated successfully, but these errors were encountered:
Given the naming of
mediaSession
andaudioSession
, I think it would be useful for their explainers to mention each other and explain the differences.For people familiar with older web standards, but approaching these two for the first time, the naming can be quite confusing.
For example,
HTMLAudioElement
andHTMLVideoElement
both inherit fromHTMLMediaElement
. So newcomers may assume thataudioSession
inherits frommediaSession
in a similar fashion. But it appears that quite reasonable assumption is incorrect.If these newer APIs are going to deviate from long-standing convention, then it would be useful for explainers to draw attention to that fact explicitly.
The text was updated successfully, but these errors were encountered: