1

Currently, I have been making streaming video player app. so for that reason I want to use dash streaming. I have a normal URI of video from my firebase storage. but for dash streaming, I think I need a file that ends with .mpd.

ExoPlayer player = new ExoPlayer.Builder(context).build();
player.setMediaItem(MediaItem.fromUri(**dashUri**));
player.prepare();

what I have to do to convert normal to URI which ends with .mpd.

So, how can I do that?

Sweta Jain
  • 3,248
  • 6
  • 30
  • 50

1 Answers1

1

You actually have to covert the video file to a fragmented format and typically will want to make it available in multiple bit rates, which means transcoding it also.

The reason for this is that DASH is an ABR protocol - it breaks multiple renditions of a video into equal size, time wise, chunks and the player can then request chunk by chunk, choosing the best bit rate version of each chunk depending on the current network conditions and the device type.

See here for more info: https://stackoverflow.com/a/42365034/334402

Open source tools exist to create DASH files from mp4 - see some examples here (links correct at time of writing):

Mick
  • 24,231
  • 1
  • 54
  • 120