fix(android): onSeek called instantly (#3530)
This commit is contained in:
parent
f0a237e9c2
commit
af6aea8934
@ -1889,8 +1889,8 @@ public class ReactExoplayerView extends FrameLayout implements
|
|||||||
|
|
||||||
public void seekTo(long positionMs) {
|
public void seekTo(long positionMs) {
|
||||||
if (player != null) {
|
if (player != null) {
|
||||||
|
seekTime = positionMs;
|
||||||
player.seekTo(positionMs);
|
player.seekTo(positionMs);
|
||||||
eventEmitter.seek(player.getCurrentPosition(), positionMs);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user