Skip to content
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

Add tag and Factory to SilenceMediaSource #7245

Merged
merged 1 commit into from Apr 17, 2020
Merged

Add tag and Factory to SilenceMediaSource #7245

merged 1 commit into from Apr 17, 2020

Conversation

Clement-Jean
Copy link
Contributor

What

Added a Factory to SilenceMediaSource to be able to create it like the other MediaSource. Also added a tag in the class so that users can get more information on this object.

Why

The idea comes from the following issue. In the use case, the user would like to create a transition between two medias in a playlist. To do that we could use a SilenceMediaSource with a tag in order to know more about the media in the onPositionDiscontinuity() method. The user would only have to call player.getCurrentTag().

@marcbaechinger marcbaechinger merged commit abadc76 into google:dev-v2 Apr 17, 2020
ojw28 pushed a commit that referenced this pull request May 28, 2020
@google google locked and limited conversation to collaborators Jun 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants