HamidrezaAmz / MagicalExoPlayer

The Easiest Way To Play/Stream Video And Audio Using Google ExoPlayer In Your Android Application
MIT License
345 stars 77 forks source link

Create key-value map for the HTTP headers #4

Closed hieulbp closed 5 years ago

hieulbp commented 5 years ago

Can you update the header when playing hls video? like this: Map <String, String> header = new HashMap <> (); header.put ("cookie", "abcd1234"); andExoPlayerView.addHeader(header);

tks you very much <3

hieulbp commented 5 years ago

No error message when link error and more dialog loading while waiting for video play will be great!

HamidrezaAmz commented 5 years ago

Yep! I will add these futures as soon as possible ;)

hieulbp commented 5 years ago

Yep! I will add these futures as soon as possible ;)

that's great!

HamidrezaAmz commented 5 years ago

Hi New version is available, Retry button for link error, progress for waiting for video play added. For custom headers now you can pass them with your source like this:

  HashMap<String , String> extraHeaders = new HashMap<>();
  extraHeaders.put("foo","bar");
  andExoPlayerView.setSource("STREAM_URL", extraHeaders);

have fun ;)

hieulbp commented 5 years ago

Hi New version is available, Retry button for link error, progress for waiting for video play added. For custom headers now you can pass them with your source like this:

  HashMap<String , String> extraHeaders = new HashMap<>();
  extraHeaders.put("foo","bar");
  andExoPlayerView.setSource("STREAM_URL", extraHeaders);

have fun ;)

tks u ^^

hieulbp commented 5 years ago

Hi New version is available, Retry button for link error, progress for waiting for video play added. For custom headers now you can pass them with your source like this:

  HashMap<String , String> extraHeaders = new HashMap<>();
  extraHeaders.put("foo","bar");
  andExoPlayerView.setSource("STREAM_URL", extraHeaders);

have fun ;)

How to onPlayerError in MainActivity?

HamidrezaAmz commented 5 years ago

For new futures please create a new issue, this will help other users find their need faster and easier.