Skip to content

Commit

Permalink
Audio Poster issue fix (#1779)
Browse files Browse the repository at this point in the history
  • Loading branch information
Learnyst authored and benoitdion committed Nov 26, 2019
1 parent 2c5006a commit 0df6676
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion Video.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions android-exoplayer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

Expand All @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions react-native-video.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0df6676

Please sign in to comment.