Repository navigation
Add support for remoting. - #192
Conversation
markafoltz
left a comment
There was a problem hiding this comment.
Rather than cherry-pick parts of the streaming protocol, I would prefer a design that embeds streaming messages (without the request/response part) into remote playback messages, and assigns a distinct
streaming session id when it happens as part of remote playback.
So something like:
streaming-session-start-params = {
1: uint; streaming-session-id
2: [* media-stream-offer] ; stream-offers
3: microseconds ; stats-interval
}
streaming-session-start-request = {
request;
streaming-session-start-params
}
remote-playback-start-request = {
request;
streaming-session-start-params;
}
The advantages are:
- We don't have to maintain separate sets of messages for streaming and remoting.
- The implementation doesn't have to keep track of two kinds of streaming sessions with different IDs.
WDYT?
Add section about type key backwards compatibility.
|
OK, I rebased on streaming and tried your idea. See if you like it. |
|
OK, I thought about it some more and made a tweak to your idea that seems better (uses an optional parameter rather then embedding all the time). I like how simple it ended up being. |
| integer chosen by the requester. Responses must include the request ID of the | ||
| request they are associated with. | ||
|
|
||
| Type Key Backwards Compatibility |
There was a problem hiding this comment.
I think this is from a different PR. Can you rebase?
There was a problem hiding this comment.
I guess it's my PR now so I'll do it :-)
|
This looks great. I'll rebase and merge it. We'll have to think about the entire lifecycle of the media element: specifically, what if we need to go from flinging to remoting and back again during the same remote playback. Technically this is possible because you can activate MSE just by setting src= to a MediaSource. |
Re-pulling this branch.
Preview | Diff