Open wolenetz opened 8 years ago
Regarding (1), quoting from a note in the EME spec:
Per RFC 6838 [RFC6838], "Both top-level type and subtype names are case-insensitive."
Regarding (2), if an implementation was to support audio/mp2t, they same format guidelines likely apply. On the other hand, if there are no implementations intending to support it, including it in the registry is noise and erroneously suggests that some implementation(s) do support it. If there are no such implementations, perhaps we should remove it now then add it back and update its page if there is ever a need in the future.
I'll prep a PR to remove 'audio/mp2t' from the registry, and let @jyavenard @jdsmith3000 comment there before it gets merged.
FYI https://bugs.chromium.org/p/chromium/issues/detail?id=556837 tracks the related Chrome bug.
@plehegar @paulbrucecotton FYI -- there's a potential change to the MSE bytestream format registry needed -- see above.
This issue is still active, moving milestone to VNext and clearing assignee to enable triage.
Leaving unchanged for now (in backlog while triaging for V2) since it's unclear if "If there are no such implementations" clause in https://github.com/w3c/media-source/issues/157#issuecomment-246046409 is true.
Testing in current browsers suggests none support audio/mp2t. But if we interpret the Registration Entry Requirements strictly, then maybe we shouldn't remove it anyway,
MediaSource.isTypeSupported('video/mp2t') -> true
MediaSource.isTypeSupported('audio/mp2t') -> false
MediaSource.isTypeSupported('video/mp2t') -> false
MediaSource.isTypeSupported('audio/mp2t') -> false
MediaSource.isTypeSupported('video/mp2t') -> false
MediaSource.isTypeSupported('audio/mp2t') -> false
MediaSource.isTypeSupported('video/mp2t') -> true
MediaSource.isTypeSupported('audio/mp2t') -> false
My experience has been that both audio and video streams use video/mp2t
. So video/mp2t; codecs="mp4a.40.2"
, for example, would be an AAC stream in TS.
As for case, MIME types are spec'd to be case insensitive. This applies (sadly) only to the "video/mp2t" part, but not to any codecs or other parameters.
Do you think we can safely remove the audio/mp2t
entry? I'd propose doing that, and changing video/MP2T
to video/mp2t
in the bytestream format spec, as they're usually written lowercase.
In https://w3c.github.io/media-source/mp2t-byte-stream-format.html: "video/MP2T" is the only MIME type/subtype allowed,
but in https://w3c.github.io/media-source/byte-stream-format-registry.html, both of the following refer to that bytestream spec: audio/mp2t video/mp2t
So a couple questions:
Chrome (on subset of platforms for which Chrome contains support for mp2t):
I don't believe this blocks MSE v1, but would be good to get clarified soon. I think we can make this clarification out-of-band (since the registries aren't really tied directly to v1 or VNext), but I'm marking V1NonBlocking to get appropriate attention ASAP.