google / google/ExoPlayer

Cast Extension: Detecting track changes while casting

Open
#4,049 2 comments 0 reactions 1 assignee Claimed by @AquilesCanta View on GitHub
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

How to detect that track has finished or has changed for CastPlayer? For normal player I use onTracksChanged which detect that I skip to another track and onPositionDiscontinuity with reason == 0 to detect that track is finished.
For CastPlayer onTracksChanged is never called and onPositionDiscontinuity with reason == 0 is called very often when I connect to Chromecast and when I skip to another track.
Version: 2.7.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.