Reuse replay controls for live playback
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
d66dd089db
commit
2f4a7cb4c9
11 changed files with 86 additions and 30 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue