What happened?
Even if i set
const player = useVideoPlayer(
{
uri: url,
metadata: {...}
},
p => {
...
p.playInBackground = true;
p.showNotificationControls = true;
...
},
);
the Mediaplayer on the phone doesnt appear.
I can fix this with adding
<service
android:name="com.twg.video.core.services.playback.VideoPlaybackService"
android:foregroundServiceType="mediaPlayback"
android:exported="true">
<intent-filter>
<action android:name="androidx.media3.session.MediaSessionService" />
</intent-filter>
</service>
but this step is not described in the docs.
Steps to reproduce
- Render video and play
- Check lockscreen and see no player
Reproduction repository
No response
react-native-video version
7.0.0-beta.11
react-native version
0.83.4
react-native-nitro-modules version
0.35.2
Platforms
Android
OS version
Android 16
Device
Real device
Architecture
New Architecture
Expo
No (bare / React Native CLI)
Last working version
No response
Media / source type
No response
What happened?
Even if i set
the Mediaplayer on the phone doesnt appear.
I can fix this with adding
but this step is not described in the docs.
Steps to reproduce
Reproduction repository
No response
react-native-video version
7.0.0-beta.11
react-native version
0.83.4
react-native-nitro-modules version
0.35.2
Platforms
Android
OS version
Android 16
Device
Real device
Architecture
New Architecture
Expo
No (bare / React Native CLI)
Last working version
No response
Media / source type
No response