Merge pull request #778 from ChatLurking/fix(Android)-issue-543
Reset isCompleted flag on source change
This commit is contained in:
commit
ed49ce77bc
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user