w3c / openscreenprotocol

Open Screen Protocol
https://www.w3.org/TR/openscreenprotocol/
Other
93 stars 22 forks source link

Align Streaming Protocol Capabilities with Media Capabilities? #256

Open tidoust opened 3 years ago

tidoust commented 3 years ago

Reviewing #225, I wondered how streaming protocol capabilities exposed in a streaming-capabilities-response mapped to capabilities defined in the AudioConfiguration and VideoConfiguration constructs in the Media Capabilities API.

For Video:

For Audio, Media Capabilities API also has:

Note that there is an ongoing discussion on these audio configuration capabilities in the Media Capabilities repo https://github.com/w3c/media-capabilities/issues/160.

markafoltz commented 3 years ago

For the streaming protocol capabilities, I would have to do some research to find out what the use cases are for max-pixels-per-second and supports-rotation.

In general, if there are properties of the video decoder that are not captured in the "profile" part of the codec string and the sender needs to know them to figure out how to encode the video, then they should be reported as streaming capabilities by the receiver.

For the additional capabilities reported through Media Capabilities, we'd have to consider them on a case by case basis. Audio samplerate probably makes sense, but alphaChannel may not.

If we decide to open up an API to script to allow senders to query the MediaCapabilities of a remote playback device, then that would also impact what capabilities need to be reported through the protocol.