pulimet / exoplayer-wrapper Goto Github PK
View Code? Open in Web Editor NEW:tv: Android library, ExoPlayer wrapper (2017)
License: Apache License 2.0
:tv: Android library, ExoPlayer wrapper (2017)
License: Apache License 2.0
please support your libraries or don't use them in projects you don't own
Hi Mr Alexey, tks for ur nice library.
But how can i add subtitle to video by vtt url?
With exoplayer, i can do this with these code
Format textFormat = Format.createTextSampleFormat(null, MimeTypes.TEXT_VTT, Format.NO_VALUE, "en", null);
String urlSubtitle = "https://s3-ap-southeast-1.amazonaws.com/58aa3a0eb555420a945a27b47ce9ef2f-data/static/type_caption__entityId_81__language_en.vtt";
MediaSource textMediaSource = new SingleSampleMediaSource(Uri.parse(urlSubtitle)
, mediaDataSourceFactory
, textFormat
, C.TIME_UNSET);
MediaSource mediaSourceWithText = new MergingMediaSource(mediaSource, textMediaSource);
player.prepare(mediaSourceWithText, !haveResumePosition, false);
i want insert referer using stream but lib not support set MediaSource in ExoPlayerHelper.Builder please support . thank u
Hi.
I'm using this library. Thanks for that.
When I play m3u8 streams, video controllers not showing on video. I think, keeps in background and I can see only play pause buttons. Small button not showing which on bottom.
if I write getBinding()?.feedViewPager?.offscreenPageLimit = 12
this if list contains video then video will be transparent
I am not able to identify how to resolve this issue.
contact me on mail : for more details : [email protected]
How I can solve it?
hi @Pulimet, I was looking around GitHub and I found your project and I thought that you may need a new logo, a new face for him. I'm a designer happy to contribute open source projects.
so, I want to say this is totally free and you can stop the process anytime you want.
if you agree I can start with some sketches and ideas that I will show you until we found the logo that fits perfectly with this project💪.
Kind Regards.
Hi Alexey Korolev,
it's really interested library because I search a lot and really this is the best one that I found
but I have a question about the srt subtitle actually I tried to add subtitle to exoplayer using this code:
MediaSource mediaSource = new ExtractorMediaSource(Uri.parse("http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"),
mediaDataSourceFactory, extractorsFactory, null, null);
Format textFormat = Format.createTextSampleFormat(null, MimeTypes.APPLICATION_SUBRIP,
null, Format.NO_VALUE, Format.NO_VALUE, "en", null);
Uri uri = Uri.parse("http://www.storiesinflight.com/js_videosub/jellies.srt");
MediaSource subtitleSource = new SingleSampleMediaSource(uri, mediaDataSourceFactory, textFormat, C.TIME_UNSET);
MergingMediaSource mergedSource = new MergingMediaSource(mediaSource, subtitleSource);
player.prepare(mergedSource);
but how can use it in your library if you can help please
thanks
I found your library really cool, working nicely.
Also I could see that I can add multiple subtitles, but how can I select one of them while video is playing??
I cannot find view files, but how can I make some dialog for this...?
java.lang.NoSuchFieldError: No field btnMute of type I in class Lnet/alexandroid/utils/exoplayerhelper/R$id; or its superclasses (declaration of 'net.alexandroid.utils.exoplayerhelper.R$id'
Hi.
I enabled UI Controller but fullscreen button not working. When clicking, happens nothing..
How can i implement full screen
Hi Dear
recently I have tried your player with live stream link which end with m3u8 extension
and the player work fine at the first but the problem is with the time counter start from 20 seconds for example then decreasing and increasing some seconds and if the internet and live stream is okay then everything still okay but if the internet being weak so sometimes the video need to keep reloading and playing video no matter at any minutes it is
also if I pause the video for 20 seconds then play it, it still keep playing video from the moment that I paused it which lead to crashing app
so how make it keep reloading video and play it with moment that the video actually reached while it's live streaming without crashing
this is the crash that I get in logcat:
--------- beginning of crash
10-31 09:48:55.293 19545-19545/com.app.appa3c1907454ba E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.app.appa3c1907454ba, PID: 19545
java.lang.NullPointerException: println needs a message
at android.util.Log.println_native(Native Method)
at android.util.Log.e(Log.java:338)
at net.alexandroid.utils.exoplayerhelper.ExoPlayerHelper.onPlayerError(ExoPlayerHelper.java:937)
at com.google.android.exoplayer2.ExoPlayerImpl.handleEvent(ExoPlayerImpl.java:677)
at com.google.android.exoplayer2.ExoPlayerImpl$1.handleMessage(ExoPlayerImpl.java:129)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6682)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
you can try with this link:
https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8
and if you need a video for what happening exactly I will record one
thanks
Hi.
I enabled UI Controller but fullscreen button not working. When clicking, happens nothing.
Hi.
I'm using this library. Thanks for that.
When I play .mp4 videos always is good but when I play m3u8 streams, video controllers not showing on video. I think, keeps in background and I can see only play pause buttons. Small button not showing which on bottom.
How I can solve it?
The screenshot: https://i.ibb.co/4Kzpqc6/Screenshot-1563305274.png
Thanks you for great library, i have 2 questions that is same as above. Can you help?
I just tried to run the updated code it crashes with a strange reason,
Caused by: android.view.InflateException: Binary XML file line #0: Error inflating class com.google.android.exoplayer2.ui.SimpleExoPlayerView
at android.view.LayoutInflater.createView(LayoutInflater.java:633)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
at net.alexandroid.utils.exoplayerlibrary.MainActivity.onCreate(MainActivity.java:46)
at android.app.Activity.performCreate(Activity.java:6033)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.