react-native-jw-media-player
react-native-jw-media-player copied to clipboard
seperate out android and ios props to avoid confusion :
Right now, config takes a mix of android only and ios only options. if you provide 2 subgroup properties for android & ios, it will be very helpful :
So, the below config will change from :
config={{
hideUIGroups: ['casting_menu'],
autostart: true,
playlist: [playList],
controls: true, //only affects android
fullScreenOnLandscape: false, // if true, will show "Cross" button at top left
landscapeOnFullScreen: true,
exitFullScreenOnPortrait: true,
portraitOnExitFullScreen: false,
enableLockScreenControls: false,
pipEnabled: false,
mode: 'MoviePlayback',
category: 'Playback',
}}
to :
config={{
hideUIGroups: ['casting_menu'],
autostart: true,
playlist: [playList],
androidConfig : {
controls: true,
},
fullScreenOnLandscape: false, // if true, will show "Cross" button at top left
landscapeOnFullScreen: true,
exitFullScreenOnPortrait: true,
portraitOnExitFullScreen: false,
enableLockScreenControls: false,
pipEnabled: false,
mode: 'MoviePlayback',
category: 'Playback',
iosConfig : {
offlineMessage : '<msg>'
}
}}
hey, how can i hide the controls on ios ?