Skip to content

Binding: 'Content' property not found on 'LibVLCSharp.Forms.Shared.PlaybackControls', target property: 'Xamarin.Forms.ContentPresenter.Content'

Summary

I'm using the vlc MediaPlayerElement in my Xamarin project. However on Android, I keep getting this log in the output console.

[0:] Binding: 'Content' property not found on 'LibVLCSharp.Forms.Shared.PlaybackControls', target property: 'Xamarin.Forms.ContentPresenter.Content'

I also tried to comment the PlaybackControls, however the log still appears. However, all is working fine. Just confused about this logs.

Minimal project and steps to reproduce

Here is my XAML code for the media player.

<vlc:MediaPlayerElement 
	x:Name="videoView"
	MediaPlayer="{Binding MediaPlayer}" 
	BackgroundColor="{DynamicResource Black}"
	EnableRendererDiscovery="True"
	>
	<vlc:MediaPlayerElement.Style>
	    <Style TargetType="vlc:MediaPlayerElement">
	        <Setter Property="IsVisible" Value="False"/>
	        <Style.Triggers>
	            <MultiTrigger TargetType="vlc:MediaPlayerElement">
	                <MultiTrigger.Conditions>
	                    <BindingCondition Binding="{Binding WebCamEnabled}" Value="True"/>
	                    <BindingCondition Binding="{Binding ShowImage}" Value="False"/>
	                </MultiTrigger.Conditions>
	                <Setter Property="IsVisible" Value="True"/>
	            </MultiTrigger>
	        </Style.Triggers>
	    </Style>
	</vlc:MediaPlayerElement.Style>
	<!---->
	<vlc:MediaPlayerElement.PlaybackControls>                                             
	    <vlc:PlaybackControls
	        IsAudioTracksSelectionButtonVisible="False"
	        IsClosedCaptionsSelectionButtonVisible="False"
	        IsAspectRatioButtonVisible="False"
	        IsCastButtonVisible="False"
	        IsPlayPauseButtonVisible="False"
	        IsRewindButtonVisible="False"
	        IsSeekButtonVisible="False"
	        IsSeekEnabled="False"
	        IsSeekBarVisible="False"
	        IsStopButtonVisible="False"
	        />
	</vlc:MediaPlayerElement.PlaybackControls>

</vlc:MediaPlayerElement>

What is the current bug behavior?

Keep getting this log on Android (11) [0:] Binding: 'Content' property not found on 'LibVLCSharp.Forms.Shared.PlaybackControls', target property: 'Xamarin.Forms.ContentPresenter.Content'

What is the expected correct behavior?

No such a log

Does it work on other plaforms? Does it work with the official VLC apps?

Relevant logs and/or screenshots

Environment

  • OS: Android
  • Version 11
  • Device: Emulator
  • LibVLCSharp.Forms: 3.5.1
  • VideoLAN.LibVLC.Android: 3.2.0
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information