Audio Poster issue fix (#1779)

This commit is contained in:
Learnyst 2019-11-27 01:10:03 +05:30 committed by Benoit Dion
parent 2c5006ac50
commit 0df667692b
3 changed files with 8 additions and 5 deletions

View File

@ -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);
}

View File

@ -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'

View File

@ -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"