Fixed to send events only for player playing the actual content.
This commit is contained in:
parent
fee3654af5
commit
08952f8525
@ -800,7 +800,7 @@ class ReactExoplayerView extends FrameLayout implements
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void videoLoaded() {
|
private void videoLoaded() {
|
||||||
if (loadVideoStarted) {
|
if (!player.isPlayingAd() && loadVideoStarted) {
|
||||||
loadVideoStarted = false;
|
loadVideoStarted = false;
|
||||||
setSelectedAudioTrack(audioTrackType, audioTrackValue);
|
setSelectedAudioTrack(audioTrackType, audioTrackValue);
|
||||||
setSelectedVideoTrack(videoTrackType, videoTrackValue);
|
setSelectedVideoTrack(videoTrackType, videoTrackValue);
|
||||||
|
Loading…
Reference in New Issue
Block a user