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
MediaController’s play_media should not set current_time to 0 by default #439
Comments
This seems reasonable enough, can you please explain what difference it makes though? |
No, I want to be able to play the live stream at the live stream position, not at two or three hours in the past (which is what 0 corresponds to). |
When I’m playing live TV streams, |
OK. To make this a non-breaking change, I think the following change is enough, i.e. no change of default values: "media": media,
MESSAGE_TYPE: TYPE_LOAD,
}
- msg["currentTime"] = current_time
+ if current_time is not None:
+ msg["currentTime"] = current_time
msg["autoplay"] = autoplay
msg["customData"] = {} |
I disagree: it makes more sense to make the default value the same as what the protocol specifies. It is not going to break anything since live TV streams didn't work anyway, anyone who wanted to watch the recording were likely passing an explicit zero already and the rest just used the cases where it didn't matter.
|
For a non live stream, does not setting |
I believe so; non-live contents starts playing from the beginning. |
Can you give some examples of live streams where you see the problem (for testing)? |
To be clear: Since what you propose is a breaking change, I'd really like to have some examples of live streams where setting |
I’m afraid I’m not able to share the link since it’s not a public stream, and I’ve not tried watching other TV streams to be honest. I don’t understand why you consider this a breaking change: watching live TV streams with a "backlog" didn’t work before but will work with this change, nothing else is affected by it. |
Okay, found you a public stream where this behaviour can be observed: http://mfe.cliptv.az/dash/BBC_World_News_SD.ism/playlist.mpd Here, the live stream is playing on the laptop, and the |
It’s not two or three hours difference, as with my other non-public stream, but a difference nevertheless. |
Thanks! Can you please explain again why what I proposed here is not good enough: #439 (comment) |
It is acceptable, but I don’t understand why keep incorrect default behaviour (which goes against the spec) which I doubt anything depends on? What worked before, will still work since non-live videos default to 0 anyway. |
If you want even better compatibility, feel free to make it depend on the resource type being a live stream. |
Thanks for the patience, implemented in #446 |
The documentation for the
Load
command sayscurrentTime
is optional:This is vital to the ability to cast live streams and is not currently possible without deriving a separate controller overriding
play_media
. Please consider defaulting toNone
e.g. in this manner:The text was updated successfully, but these errors were encountered: