androidx / androidx/media

How to switch player to another media source factory

Open
#605 1 comment 0 reactions 1 assignee View on GitHub

@marcbaechinger is already working on this.

Since Aug 22, 2023.

question
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

On one page i have m3u8 format tracks and when i create player instance i set .setMediaSourceFactory(HlsMediaSource.Factory(DefaultHttpDataSource.Factory()))

if i want to play mp3 tracks from second page i need to use DefaultMediaSourceFactory(context), is it possible to switch between factories? Or exist another solutions?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.