Open allengotstuff opened 5 years ago
Currently, we hardcore the MediaModel to only accept .m3u8 format, that puts the limitation of Tubiplayer only accept hls video format.
MediaModel
.m3u8
Tubiplayer
hls
By removing the hardcode getMediaExtension is MediaModel, the Tubiplayer will automatically create different MediaSource base on url extension.
getMediaExtension
MediaSource
See below logic for handle automatically MediaSource creation: https://github.com/Tubitv/TubiPlayer/blob/master/lib/src/main/java/com/tubitv/media/activities/TubiPlayerActivity.java#L202
Open issue: https://github.com/Tubitv/TubiPlayer/issues/98
Problem:
Currently, we hardcore the
MediaModel
to only accept.m3u8
format, that puts the limitation ofTubiplayer
only accepthls
video format.solution
By removing the hardcode
getMediaExtension
isMediaModel
, the Tubiplayer will automatically create differentMediaSource
base on url extension.See below logic for handle automatically
MediaSource
creation: https://github.com/Tubitv/TubiPlayer/blob/master/lib/src/main/java/com/tubitv/media/activities/TubiPlayerActivity.java#L202