From 0df667692baf52fabe35e541379beb90217ea711 Mon Sep 17 00:00:00 2001 From: Learnyst Date: Wed, 27 Nov 2019 01:10:03 +0530 Subject: [PATCH] Audio Poster issue fix (#1779) --- Video.js | 5 ++++- android-exoplayer/build.gradle | 4 ++-- react-native-video.podspec | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Video.js b/Video.js index e5d56729e9..3cb28bb2bb 100644 --- a/Video.js +++ b/Video.js @@ -169,7 +169,10 @@ export default class Video extends Component { }; _onReadyForDisplay = (event) => { - this._hidePoster(); + if (!this.props.audioOnly) { + this._hidePoster(); + } + if (this.props.onReadyForDisplay) { this.props.onReadyForDisplay(event.nativeEvent); } diff --git a/android-exoplayer/build.gradle b/android-exoplayer/build.gradle index ce5c82fb08..502fa59947 100644 --- a/android-exoplayer/build.gradle +++ b/android-exoplayer/build.gradle @@ -23,7 +23,7 @@ android { dependencies { implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}" - implementation('com.google.android.exoplayer:exoplayer:2.10.4') { + implementation('com.google.android.exoplayer:exoplayer:2.10.5') { exclude group: 'com.android.support' } @@ -32,7 +32,7 @@ dependencies { implementation "androidx.core:core:1.1.0" implementation "androidx.media:media:1.1.0" - implementation('com.google.android.exoplayer:extension-okhttp:2.10.4') { + implementation('com.google.android.exoplayer:extension-okhttp:2.10.5') { exclude group: 'com.squareup.okhttp3', module: 'okhttp' } implementation 'com.squareup.okhttp3:okhttp:3.14.3' diff --git a/react-native-video.podspec b/react-native-video.podspec index c5e09c1137..98ba5537e8 100644 --- a/react-native-video.podspec +++ b/react-native-video.podspec @@ -9,8 +9,8 @@ Pod::Spec.new do |s| s.description = package['description'] s.license = package['license'] s.author = package['author'] - s.homepage = 'https://github.com/brentvatne/react-native-video' - s.source = { :git => "https://github.com/brentvatne/react-native-video.git", :tag => "#{s.version}" } + s.homepage = 'https://github.com/react-native-community/react-native-video' + s.source = { :git => "https://github.com/react-native-community/react-native-video.git", :tag => "#{s.version}" } s.ios.deployment_target = "8.0" s.tvos.deployment_target = "9.0"