[Video] Manage foreground/background playback on the native side (#5104)

This commit is contained in:
Hailey
2024-09-03 08:41:14 -07:00
committed by GitHub
parent 05e61346b8
commit dde72b48e1
3 changed files with 104 additions and 29 deletions
+10 -1
View File
@@ -2,8 +2,17 @@
## `expo-video` Patch
This patch adds two props to `VideoView`: `onEnterFullscreen` and `onExitFullscreen` which do exactly what they say on
### `onEnterFullScreen`/`onExitFullScreen`
Adds two props to `VideoView`: `onEnterFullscreen` and `onExitFullscreen` which do exactly what they say on
the tin.
### Removing audio session management
This patch also removes the audio session management that Expo does on its own, as we handle audio session management
ourselves.
### Pausing/playing on background/foreground
Instead of handling the pausing/playing of videos in React, we'll handle them here. There's some logic that we do not
need (around PIP mode) that we can remove, and just pause any playing players on background and then resume them on
foreground.