react-native-jw-media-player
react-native-jw-media-player copied to clipboard
[iOS] backgroundAudioEnabled = false not working when device is locked and pipEnabled=true
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,