Reuse replay controls for live playback

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Paul Schneider 2026-11-16 12:12:18 +00:00
commit 2f4a7cb4c9
Signed by: notazof
GPG key ID: AD4B9B545FBD7D12
11 changed files with 86 additions and 30 deletions

View file

@ -24,7 +24,8 @@ internal static class PlatformBootstrap
Platform.BackgroundChatService = AndroidBackgroundChatService.Instance;
Platform.ShowSoftKeyboard = MainActivity.ShowSoftKeyboard;
Platform.TryGetCurrentLocationAsync = AndroidCurrentLocationProvider.TryGetCurrentLocationAsync;
Platform.CreateVideoSurface = (player, replay) => new AndroidVideoSurface(player, replay);
Platform.CreateVideoSurface = (player, replay, playbackFailed) =>
new AndroidVideoSurface(player, replay, showControls: true, playbackFailed);
if (System.OperatingSystem.IsAndroidVersionAtLeast(26))
{
Platform.CreateWebRtcMedia = () => System.OperatingSystem.IsAndroidVersionAtLeast(26)