Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to play mp4, mkv files ? #98

Open
HazimSharif opened this issue Jul 11, 2019 · 1 comment
Open

Is there a way to play mp4, mkv files ? #98

HazimSharif opened this issue Jul 11, 2019 · 1 comment

Comments

@HazimSharif
Copy link

Hello,

The player works fine with m3u files, Is there a way to play Mp4 and MKV files ?

Thank you

@allengotstuff
Copy link
Member

Hi HazimSharif

#99 This PR will fix the issue, and you can just pass the mp4 or mkv url into MediaModel when start the Activity, and Tubiplayer can play them automatically.

String subs = "http://put_your_own_subtitle.srt";
String artwork = "http://www.put_your_own_art_work.png";
String name = "Example Video";
String video_url = "http://put_your_own_video_url.mp4";
Intent intent = new Intent(SelectionActivity.this,
                            DoubleViewTubiPlayerActivity.class);
intent.putExtra(TubiPlayerActivity.TUBI_MEDIA_KEY,
                    MediaModel.video(name, video_url, artwork, null));
startActivity(intent);

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

No branches or pull requests

2 participants