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

[iOS] backgroundAudioEnabled = false not working when device is locked and pipEnabled=true #359

Open fdobre opened 4 months ago

fdobre commented 4 months ago

Steps to replicate:

"react-native-jw-media-player": "0.2.41",

Use following config:

const jwConfig = {
        enableLockScreenControls: false, // iOS only
        pipEnabled: true,
        backgroundAudioEnabled: false,
        autostart: true,
        playlist: [playlistItem],
          menuStyle: {
            backgroundColour: 'rgba(51, 51, 51, 1)',
            fontColor: 'rgba(255, 255, 255, 0.8)'
          },
          colours: {
            timeslider: {
              progress: '#ff1541',
              rail: 'rgba(255, 255, 255, 0.3)'
            }
          }
        },
        landscapeOnFullScreen: true,
        fullScreenOnLandscape: isAndroid,
        portraitOnExitFullScreen: true, // Android only
        exitFullScreenOnPortrait: true, // Android only
        hideUiGroups: ['casting_menu'],
}

Expected output: Audio should be muted when device is locked and enableLockScreenControls: false & pipEnabled: true,