react-native-jw-media-player icon indicating copy to clipboard operation
react-native-jw-media-player copied to clipboard

seperate out android and ios props to avoid confusion :

Open nateshmbhat opened this issue 2 years ago • 1 comments

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>'
        }
        }}

nateshmbhat avatar Jul 28 '23 08:07 nateshmbhat

hey, how can i hide the controls on ios ?

DevineDecrypter avatar Jan 04 '24 16:01 DevineDecrypter