Xamarin.Forms MediaPlayerElement cast button doesn't show when setting properties in PlaybackControls
I've managed to implement a basic project based on the Xamarin.Forms MediaElementSample project which shows the casting button when my chromecast is available. It works when the xaml looks like this:
<shared:MediaPlayerElement
MediaPlayer="{Binding MediaPlayer}"
LibVLC="{Binding LibVLC}"/>
However, I would like to hide some of the playback controls (namely the audio and captions buttons) so I changed the xaml above to this:
<shared:MediaPlayerElement
MediaPlayer="{Binding MediaPlayer}"
LibVLC="{Binding LibVLC}">
<shared:MediaPlayerElement.PlaybackControls>
<shared:PlaybackControls
IsAudioTracksSelectionButtonVisible="False"
IsClosedCaptionsSelectionButtonVisible="False"
IsAspectRatioButtonVisible="False"
IsCastButtonVisible="True"/>
</shared:MediaPlayerElement.PlaybackControls>
</shared:MediaPlayerElement>
And the casting button never shows. Am I doing something wrong or is this a bug?
Environment
Xamarin Forms: v4.1.0555618 LibVLCSharp.Forms: v3.2.3 VideoLAN.LibVLC.Android:v3.1.2.1