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
Split up media into video, audio and track #437
Conversation
The fact that media-src affects all of them.. is, fine? |
@igrigorik CSP varies on type per https://w3c.github.io/webappsec-csp/#media-src-pre-request so it shouldn't affect that, but good that we checked. |
This PR seems to have the same problem as the other one. You updated the table, but not the normative places surrounding the values. Also needs tests (or updated tests if we have some). |
a849afc
to
4d5b1ff
Compare
Corresponding test change at web-platform-tests/wpt#5033 |
Why do we want different |
@zcorpan: I updated the original discussion link. Browsers don't currently do that AFAIK, but splitting destinations would enable them to do that in the future. |
Why do we want to enable them to do that in the future? It could make sense to use It makes perfect sense to use What effect would it have on caches if |
The intent is not to enable serving video and audio off the same URL, but serving different video formats and different audio formats to supporting browsers. e.g. I'm not sure how codecs would work with the accept header here, and not sure the use-case is valid unless browsers can also advertise supported codecs. |
|
Well... I guess it's hard to argue against 2. But at least I think |
Chromium CL: https://codereview.chromium.org/2732853003/ |
Landing this is blocked on speced/bikeshed#941 and maybe we should also have a clearer commit message to indicate what is being changed. For one thing, currently |
4d5b1ff
to
c8cd1f5
Compare
Added a commit message |
This splits up the `media` destination into three distinct destinations: `video`, `audio` and `track`. The reason for that is that track is quite different from video and audio, and at least in Chromium, treating it internally as a media resource type is problematic. This change would allow type specific checks for track.
c8cd1f5
to
59d955b
Compare
@zcorpan - Thanks! I'll fix up the Blink CL and land both at the same time (as the Blink CL will land the tests as well) |
Align implementation with spec change whatwg/fetch#437 PSA at https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/BN6tqGLBmuI BUG=698521 Review-Url: https://codereview.chromium.org/2732853003 Cr-Commit-Position: refs/heads/master@{#455723}
Align implementation with spec change whatwg/fetch#437 PSA at https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/BN6tqGLBmuI BUG=698521 Review-Url: https://codereview.chromium.org/2732853003 Cr-Commit-Position: refs/heads/master@{#455723}
As discussed on IRC:
video
,audio
andtrack
types are currently a single destination:media
track
intomedia
is probably also possible."track
is quite different fromaudio
/video
and is represented internally inside Blink using a different resource type and performs differenttype
checkstrack
frommedia
, we'd split them all to 3 different destinations, which will enable audio/video specificAccept
headers./cc @igrigorik @foolip
Preview | Diff