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

feat: add index seeking option for android progressive audio source #651

Open
wants to merge 1 commit into
base: minor
Choose a base branch
from

Conversation

addie9000
Copy link
Contributor

ref #650

This PR adds index seeking option to progressive audio source.

Add an option named androidIndexSeeking to ProgressiveAudioSource.
To use it after auto detection (like AudioSource.uri), it is revealed an instance variable.

usage

# if we know it's ProgressiveAudioSource
final progressiveAudioSource = ProgressiveAudioSource(audioUri, androidIndexSeeking: true);

# if we do not know it's ProgressiveAudioSource
final source = AudioSource.uri(audioUri);
if (source is ProgressiveAudioSource) {
  source.androidIndexSeeking = true;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant