Intent to ship: MediaStreamTrack Content Hint

55 views
Skip to first unread message

Harald Alvestrand

unread,
Aug 8, 2018, 2:19:56 AM8/8/18
to blink-dev


Contact emails

h...@chromium.org


Explainer

None - see spec and demo.

Spec

https://w3c.github.io/mst-content-hint/


No tag review performed - minor feature.


Summary

This specification gives MediaStreamTracks (audio or video) an attribute that can be set by the application to give a hint about what aspects of the content are considered most important. This will be used by the platform to evaluate tradeoffs when quality of content has to be reduced - for instance when deciding frame rate or resolution when encoding video tracks for transmission or recording.


Example use cases include the ability to set “preserve detail” mode for screen capture content injected via a HDMI cable (which appears like a camera to the OS), and to set “preserve movement” mode for screencast inputs that are showing video.



Link to “Intent to Implement” blink-dev discussion

https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/gWp3xcyEDJM/JKOu68Y2BQAJ



Link to Origin Trial feedback summary

No origin trial performed.


Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes.


Demo link

https://webrtc.github.io/samples/src/content/capture/video-contenthint/


Debuggability

No special considerations.


Risks

Interoperability and Compatibility

This feature spec has been accepted by the WEBRTC W3C WG. Reception has not been enthusiastic, but mildly positive. Microsoft has indicated that they think something like this is definitely needed; Mozilla has debated the shape of the API, but did not put forward an alternate proposal.


Edge: No signals (that are quotable)

Firefox: No signals (https://github.com/mozilla/standards-positions/issues/101 filed)

Safari: No signals

Web developers: No signals



Ergonomics

No special considerations.

Activation

No special considerations. The feature is simple to take advantage of, easy to feature detect, and its introduction will have no negative impact on those who don’t use it.


Is this feature fully tested by web-platform-tests? Link to test suite results from wpt.fyi.


https://cs.chromium.org/chromium/src/third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-contentHint.html?type=cs&q=contentHint+file:html&sq=package:chromium&g=0&l=29 will be migrated to web-platform-tests before the ship date.


This test exercises the interface, but doesn’t test the quality impact on the resulting transmission, since that is a far more complex test to write.


Entry on the feature dashboard

https://www.chromestatus.com/feature/5689466211532800




Chris Harrelson

unread,
Aug 10, 2018, 12:14:21 PM8/10/18
to Harald Alvestrand, blink-dev
LGTM1

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOqqYVG%2B%3D0dzSHiQc_u1Emfwn%3DLE%3Do-9pVX1QswvfaZaBuCqTA%40mail.gmail.com.

Philip Jägenstedt

unread,
Aug 14, 2018, 11:27:10 AM8/14/18
to Chris Harrelson, Harald Alvestrand, blink-dev
LGTM2

I've sent https://github.com/tidoust/reffy/pull/121 which via some
roundabout processes and partially manual processes will cause an IDL
test for this to show up in wpt as well. Although that will add very
little on top of the MediaStreamTrack-contentHint.html which will be
upstreamed.
> To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw_ghBmBh7%3DWuqV1WzGxgvjkE2FpwpUf_mvCYDf9cKZFkw%40mail.gmail.com.

Alex Russell

unread,
Aug 14, 2018, 12:27:23 PM8/14/18
to Philip Jägenstedt, Chris Harrelson, Harald Alvestrand, blink-dev
LGTM3.

In future, would very much like to see features without any signals from other browsers get run through the TAG to make sure we're getting enough eyes on it.

Thanks

Reply all
Reply to author
Forward
0 new messages