Skip to content

Remove hard code video format limitation#99

Open
allengotstuff wants to merge 1 commit intomasterfrom
support-mutiple-media-format-rather-than-hls
Open

Remove hard code video format limitation#99
allengotstuff wants to merge 1 commit intomasterfrom
support-mutiple-media-format-rather-than-hls

Conversation

@allengotstuff
Copy link
Copy Markdown
Member

@allengotstuff allengotstuff commented Jul 16, 2019

Open issue: #98

Problem:

Currently, we hardcore the MediaModel to only accept .m3u8 format, that puts the limitation of Tubiplayer only accept hls video format.

solution

By removing the hardcode getMediaExtension is MediaModel, the Tubiplayer will automatically create different MediaSource 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

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.

2 participants