You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Improve iOS PiP and background playback support
- Add AVAudioSession activation for background playback
- Fix PiP AVPlayerLayer reference issue for texture-based players
- Add application lifecycle handling for media controls
- Implement cleanupRemoteCommandCenter for proper cleanup
- Add playerLayerForPiP method for subclass customization
This fixes:
- Background audio playback continuation
- Media controls disappearing after app backgrounding
- PiP not working with texture-based video players
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: packages/video_player/video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation/FVPTextureBasedVideoPlayer.m
Copy file name to clipboardExpand all lines: packages/video_player/video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation/FVPVideoPlayer.m
Copy file name to clipboardExpand all lines: packages/video_player/video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation/FVPVideoPlayerPlugin.m
Copy file name to clipboardExpand all lines: packages/video_player/video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation/include/video_player_avfoundation/FVPVideoPlayer.h
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,9 @@ NS_ASSUME_NONNULL_BEGIN
78
78
artist:(nullable NSString *)artist
79
79
album:(nullable NSString *)album
80
80
artworkUrl:(nullable NSString *)artworkUrl;
81
+
82
+
/// Returns the AVPlayerLayer for PiP support. Subclasses should override if they manage their own layer.
0 commit comments