React native Video is not working on iOS.
See original GitHub issueVideo player is working on android but not in iOS. “react-native”: “^0.42.3”, “react-native-video”: “^1.0.0”
this.url is the url without “.mp4”.
<View style={styles.container} onLayout={this._handleLayout}> <TouchableOpacity style={styles.fullScreen} onPress={() => this.setState({ paused: !this.state.paused })}> <Video ref={(ref: Video) => { this.video = ref }} source={{uri:this.url}} style={styles.fullScreen} rate={this.state.rate} paused={this.state.paused} volume={this.state.volume} controls={true} muted={this.state.muted} resizeMode={this.state.resizeMode} onLoad={this.onLoad} onProgress={this.onProgress} onEnd={this.onEnd} repeat={false} /> </TouchableOpacity> </View>
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (1 by maintainers)
Top Related StackOverflow Question
Edit info.plist to allow the arbitrary load. This will solve the problem.
Have you tried setting allow arbitrary loads to true in your info.plist for iOS?
More info here: https://stackoverflow.com/questions/30731785/how-do-i-load-an-http-url-with-app-transport-security-enabled-in-ios-9