-
Notifications
You must be signed in to change notification settings - Fork 20
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
Reconnecting media elements to the playback #5
Comments
I think we should stop the media on the remote device if the page is navigated. Otherwise, we are going to recreate a Presentation API. @jernoble, WDYT? It seems that Safari iOS stops the session if the page is reloaded but kind of keep it alive if the page is navigated. |
@mounirlamouri I think that would be best (if we stopped the session if the page was navigated). |
FWIW, both Chrome and Firefox don't stop the playback in these cases so may be we could be more flexible and say that the UA can continue playing the video remotely and provide user with some browser controls? For Chrome, we're going to gather some data on the usage and see if it's useful but continuous playback no matter what as long as there's a way to stop it is preferred by the Chromecast guidelines and seems better for the user (although not for the developer). WDYT? |
@jernoble would you be okay with the proposal above? |
@avayvod Because it may not be a choice that the UA makes (the remote end may choose to end or continue playback when the UA disconnects without input from the UA) I'd be happy if there was some explicit flexibility in the spec w.r.t. the behavior when the page closes or is navigated. |
As I understand it, the resolution is to allow some flexibility in the spec so that the remote playback session doesn't have to be stopped when the media element goes out of scope, however, having a way to reconnect to the running session is not desired at this point (we could revisit it later if there's developer's demand for this API vs Presentation API allowing reconnecting, for example). |
Added a note to the Stopping remote playback section of the spec. |
We revisited this issue at F2F, so I'll reopen so we remember to update the spec with the latest considerations from the Open Screen Protocol. Related F2F discussion: https://www.w3.org/2019/05/24-webscreens-minutes.html#x08 @mfoltzgoogle |
@mfoltzgoogle @anssiko is there anything else to do here? I'm not sure why this was re-opened. |
Based on F2F minutes https://www.w3.org/2019/05/24-webscreens-minutes.html#x08 it seems this is a v2 issue and would not block v1 API advancement on the Rec Track? I defer to @mfoltzgoogle to confirm. |
We've made a change to the OSP to make it compatible with this scenario, but it would be a new feature as far as the Remote Playback API is concerned. I agree with Anssi that this makes sense to defer to v2. |
Sorry didn't intend to close, just defer. |
See additional discussion of how remote playbacks could be reconnected in the two openscreen issues above. |
Tracking issue for the following problem:
Following the Presentation API experience, the page would get an id from the
start()
call /onconnected
event and then pass it to another call likejoin(playbackId)
to attach the media element to the remote playback session without prompting the user again.The text was updated successfully, but these errors were encountered: