-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Provide more detailed discontinuity reasons #6163
Comments
Actually, Besides that, it's indeed worthwhile thinking about more detailed discontinuity reasons. As you pointed out, it's easy to distinguish between standard transition to a new window and repeating the same window. Similarly, listeners often need to distinguish between seek within item and seeking to another item. And finally, it's slightly awkward to remember that |
Oh cool, I did not know I agree with including more explicit Thanks for the continued fast response to these requests/questions! |
This has been partly addressed in the latest version (2.12.0) by adding a Remaining work:
|
This commit that landed in dev-v2 deprecates the old I think this solves some of the problems described in this issue.
|
[REQUIRED] Use case description
Related to another issue #4898 specifically #4898 (comment)
I've consolidated the source cited in the comment:
There are many cases where we do not have immediate access to the
Player
when we're implementing anAnalyticsListener
for event tracking and it feels odd to have to hold a reference to thePlayer
within it's own listener in order to track, what seems like, events that should be provided out-of-the-box (like when a video loops or when seeking to another item in a playlist).Proposed solution
I could be incorrect, but I believe since these events are being fired from
ExoPlayerImpl
, we should be able to return events specific to whenpreviousWindowIndex == getCurrentWindowIndex()
as the methodgetCurrentWindowIndex()
implementation can be found inside of theExoPlayerImpl
class. Therefore we can include additionalDiscontinuityReason
s so the check withinonPositionDiscontinuity
can be setup as so:This removes the need to house a reference to the
Player
within its ownAnalyticsListener
implementation.Alternatives considered
n/a
The text was updated successfully, but these errors were encountered: