|
|
@ -18,8 +18,7 @@ object ExoPlayerHelper { |
|
|
|
|
|
|
|
|
|
|
|
fun createMediaSource( |
|
|
|
fun createMediaSource( |
|
|
|
uri: Uri, |
|
|
|
uri: Uri, |
|
|
|
defaultRequestProperties: Map<String, String>, |
|
|
|
defaultRequestProperties: Map<String, String> |
|
|
|
overrideExtension: String? = null |
|
|
|
|
|
|
|
): MediaSource { |
|
|
|
): MediaSource { |
|
|
|
val mediaItem = MediaItem.fromUri(uri) |
|
|
|
val mediaItem = MediaItem.fromUri(uri) |
|
|
|
val mediaSourceFactory = ProgressiveMediaSource.Factory( |
|
|
|
val mediaSourceFactory = ProgressiveMediaSource.Factory( |
|
|
|