Pass loadControl parameters as video props
This commit is contained in:
14
Video.js
14
Video.js
@@ -11,13 +11,7 @@ const styles = StyleSheet.create({
|
||||
},
|
||||
});
|
||||
|
||||
const {
|
||||
ExoPlayerConfig
|
||||
} = NativeModules
|
||||
|
||||
const VideoPlayerConfig = Platform.OS === "android" ? ExoPlayerConfig : undefined;
|
||||
|
||||
export { TextTrackType, VideoPlayerConfig};
|
||||
export { TextTrackType };
|
||||
|
||||
export default class Video extends Component {
|
||||
|
||||
@@ -351,6 +345,12 @@ Video.propTypes = {
|
||||
paused: PropTypes.bool,
|
||||
muted: PropTypes.bool,
|
||||
volume: PropTypes.number,
|
||||
loadControl: PropTypes.shape({
|
||||
minBufferMs: PropTypes.number,
|
||||
maxBufferMs: PropTypes.number,
|
||||
bufferForPlaybackMs: PropTypes.number,
|
||||
bufferForPlaybackAfterRebufferMs: PropTypes.number,
|
||||
}),
|
||||
stereoPan: PropTypes.number,
|
||||
rate: PropTypes.number,
|
||||
playInBackground: PropTypes.bool,
|
||||
|
||||
Reference in New Issue
Block a user