Merge pull request #778 from ChatLurking/fix(Android)-issue-543

Reset isCompleted flag on source change
This commit is contained in:
Hampton Maxwell 2018-05-28 19:41:14 -07:00 committed by GitHub
commit ed49ce77bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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