I'm developing an app that has live video, I managed to implement LibVLCSharp, but I have a problem, I need to remove everything from the screen, this is just missing:
Here is my code:
XAML
<shared:MediaPlayerElement
x:Name="MediaPlayerElementPlayer"
EnableRendererDiscovery="True"
HorizontalOptions="FillAndExpand"
LibVLC="{Binding LibVLC}"
MediaPlayer="{Binding MediaPlayer}"
VerticalOptions="Start">
<shared:MediaPlayerElement.PlaybackControls>
<shared:PlaybackControls
IsAspectRatioButtonVisible="False"
IsAudioTracksSelectionButtonVisible="False"
IsCastButtonVisible="False"
IsClosedCaptionsSelectionButtonVisible="False"
IsPlayPauseButtonVisible="False"
IsRewindButtonVisible="False"
IsSeekBarVisible="False"
IsSeekButtonVisible="False"
IsSeekEnabled="False"
IsStopButtonVisible="False"
KeepScreenOn="False"
MainColor="{StaticResource Cor8}"
ShowAndHideAutomatically="True" />
</shared:MediaPlayerElement.PlaybackControls>
</shared:MediaPlayerElement>
C#
private void ConstruirLibVLC()
{
Core.Initialize();
Contexto.LibVLC = new LibVLC(enableDebugLogs: true);
Media media = new Media(Contexto.LibVLC, new Uri(TransmissaoAoVivoHelper.UrlTransmissaoAoVivo));
Contexto.MediaPlayer = new MediaPlayer(media)
{
EnableHardwareDecoding = true,
};
media.Dispose();
Contexto.MediaPlayer.Play();
}