Narrow down startAt.fromLivePosition option to only apply on live stream#1683
Narrow down startAt.fromLivePosition option to only apply on live stream#1683KunXi-Fox wants to merge 3 commits intocanalplus:devfrom
Conversation
|
It's difficult to know which behavior would an application expect when setting So here, it is basically ignored, whereas previously, we interpreted it as "from the end of the content". @Florent-Bouisset what do you think? I'm not sure. |
00fc806 to
b7216b4
Compare
I'd expect One could argue that the documentation acknowledges that
and therefore this means the change in this PR should be considered breaking, requiring a major version bump. However, when I look at the actual code, this seems like a side effect of the implementation of Based on all the above, I support this change being merged and releasing it in the next patch release. Although it's technically breaking, I don't think any sane code would have been relying on the side effect of However, this PR should also include relevant changes to Loading_a_Content.md. |
Though I do agree that some theoretical breaking changes are actually OK in very blurry areas like this one where an application would kind of be relying on implementation details in an edge scenario, I imagine that it's theoretically possible that an application may want to play a content with a delta from its end without e.g. knowing in advance if that live content just ended or not (and if it did, play the last seconds of that just-ended live stream). Though there is also the more explicit Yet the reverse is also true, an application may want to always set that one (live and VOD) and based on the name only, they assume that it will only apply for live. Which I assume is the case you were in? I also understand this case. Even if an API documentation is technically more of a reference on behavior, I think that in this case, user expectations regarding it have as much weight. This is why I'm legitimately hesitating on this one. Else the "last position for non-live contents" has the merit of being a little more powerful, at least as I see it. |
6d4fed2 to
9b856a5
Compare
6cfd206 to
1e55170
Compare
a42734c to
29372ac
Compare
d4be192 to
9ad6758
Compare
923944e to
374c14e
Compare
0142e34 to
1fd9df3
Compare
startAt.fromLivePositionmakes users think of the options only suitable for live stream, but from reading the code, it's actually not, this PR is to make this option only works on live stream.