chaimPaneth / react-native-jw-media-player

React-Native Android/iOS bridge for JWPlayer SDK (https://www.jwplayer.com/)
MIT License
193 stars 92 forks source link

seperate out android and ios props to avoid confusion : #313

Open nateshmbhat opened 1 year ago

nateshmbhat commented 1 year ago

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>'
        }
        }}
DevineDecrypter commented 9 months ago

hey, how can i hide the controls on ios ?