frontyard / cordova-plugin-exoplayer

Media player plugin for Cordova that uses Google's ExoPlayer
MIT License
54 stars 69 forks source link

2.5.4 showbuffering false not working #64

Closed acollazomayer closed 1 year ago

acollazomayer commented 6 years ago

in the version 2.5.4 showbuffering false is not working

neo725 commented 6 years ago

i'm also have this problem too, so i just doing a quick try to fix this problem and create a pull-request https://github.com/frontyard/cordova-plugin-exoplayer/pull/66

my way is:

in Player.java line:238 the code should be this :

LayoutProvider.setupController(exoView, activity, config.getController());

insert this code below:

if (!config.getShowBuffering()) {
    LayoutProvider.setBufferingVisibility(exoView, activity, false);
}

if you accept my fix, then you can wait till owner merge my pr. or you can fix by yourself.

vineshhpatel commented 6 years ago

I had the same issue and was able to hack it by setting alpha to '00' for bufferingColor you can set bufferingColor: '#00dddddd' to hide buffering.

frontyard commented 1 year ago

If you have a fix please submit a pull request.