-
Notifications
You must be signed in to change notification settings - Fork 39
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
Presentation of objects #439
Comments
I agree this sounds like a good API ergonomics improvement to explore. I think it would be helpful to provide couple of concrete use cases along with JS code snippets to demonstrate the ergonomics advantage this would have. |
To help organize the agenda, I'm marking a priority for this. It's worth exploring, but not a high priority use case for us. |
It has been a very long time since I filed this issue, so I don't have any recollection of the original motivation or use cases. However let's assume that a Web application has access some local media it wants to play on a secondary display, and it's not hosted on a server (so it can't just send a URL or have the receiver page fetch it from elsewhere.) If it's pre-recorded, encoded media (the MediaSource, Blob, or File cases), there are a few approaches to explore:
If it's captured media (the MediaStream case), the application could use WebCodecs to transform it into encoded media, then one of the two scenarios above used to take it from there. It would be useful to prototype these scenarios with the current implementations of the APIs and see if there are any fundamental gaps in the platform, before pursuing any new API features. This would a good student project, or for anyone wanting to learn more about media processing on the Web platform. There are also potential ways that WebRTC could be mixed into scenario #1. The PresentationConnection can serve as a signaling channel to set up the media plane between the controller and receiver. Then WebRTC becomes available for encoding/transmitting the media, with success depending on the capabilities of the receiver device. [*] Chrome supports media remoting, but it is somewhat tricky to activate in its current form. Please reach out to me if you would like to investigate this further. |
This is related to Issue #347. It would be ergonomic to allow objects accessible to the developer to be presentable on other devices via object URLs or source objects. This would simplify integration with Media Capture from Element.
Possible objects include:
The first two could be handled through the Remote Playback API (via
HTMLMediaElement.srcObject
).It's just complicated plumbing to indirect a media stream through another element before sending it out of the browser.
The latter two can be sent across a PresentationConnection, but again, it would be simpler for the developer and the implementer to just send the raw object instead of constructing a document/connection for that purpose.
The text was updated successfully, but these errors were encountered: