Reseting isCompleted flag on source change

This commit is contained in:
Anne Glines 2017-09-11 22:30:17 -07:00
parent f73b7a0484
commit 1bdd8720fb

View File

@ -297,6 +297,7 @@ public class ReactVideoView extends ScalableVideoView implements MediaPlayer.OnP
WritableMap event = Arguments.createMap();
event.putMap(ReactVideoViewManager.PROP_SRC, src);
mEventEmitter.receiveEvent(getId(), Events.EVENT_LOAD_START.toString(), event);
isCompleted = false;
try {
prepareAsync(this);