Skip to content

Add support for remoting. - #192

Merged
markafoltz merged 14 commits into
streaming2from
remoting
Sep 8, 2019
Merged

markafoltz merged 14 commits into
streaming2from
remoting

Conversation

@markafoltz

@markafoltz markafoltz commented Aug 21, 2019 •

Copy link
Copy Markdown
Contributor

Re-pulling this branch.


Preview | Diff

@markafoltz markafoltz left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Comment thread index.bs Resolved
Comment thread messages_appendix.cddl Resolved
Comment thread index.bs Resolved
Comment thread index.bs Resolved
Comment thread index.bs Resolved
@pthatcherg
pthatcherg changed the base branch from gh-pages to streaming2 September 6, 2019 03:55
@pthatcherg

Copy link
Copy Markdown
Contributor

OK, I rebased on streaming and tried your idea. See if you like it.

@pthatcherg

Copy link
Copy Markdown
Contributor

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.

Comment thread index.bs
integer chosen by the requester. Responses must include the request ID of the
request they are associated with.

Type Key Backwards Compatibility

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is from a different PR. Can you rebase?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it's my PR now so I'll do it :-)

@markafoltz

Copy link
Copy Markdown
Contributor Author

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.

@markafoltz
markafoltz merged commit c74434e into streaming2 Sep 8, 2019
@markafoltz
markafoltz deleted the remoting branch September 8, 2019 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants