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

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

Open fdobre opened this issue 9 months ago • 0 comments

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,

fdobre avatar May 22 '24 07:05 fdobre