#StackBounty: #android #react-native #react-native-video react native video stops right away

Bounty: 100

When I try playing a live stream de player stops right away.
From logs I see that onEnd si called as soon as the video starts.

The weird thing is that it only happens on an actual phone, it works fine on emulators. Tried with Android Studio Emulator and Genymotion, both work fine.
Both debug and release fail playing live stream on actual phones.

<TouchableOpacity style={VideoPlayerStyles.fullScreen} onPress={this.handleVideoTap}>
  <Video source={{ uri: this.props.channelSrc }}
    style={VideoPlayerStyles.fullScreen}
    rate={this.state.rate}
    paused={this.state.paused}
    volume={this.state.volume}
    muted={this.state.muted}
    resizeMode={this.state.resizeMode}
    onLoad={this.onLoad}
    onProgress={this.onProgress}
    onEnd={this.onEnd}
    repeat={false}
    fullscreen={true}
    ref={ref => {
        this.player = ref
    }}
      onBuffer={this.onBuffer} 
    onError={this.videoError} />
</TouchableOpacity>


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.