Created
October 19, 2021 14:24
-
-
Save rdelrosario/a35f85548ce18f35c9c94fffadea9a43 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<ContentPage | |
...> | |
<Label | |
Text="{Binding Position, StringFormat='{}{0:hh\\:mm\\:ss}'}"/> | |
<controls:VideoPlayer | |
AutoPlay="{Binding CanAutoPlay}" | |
Command="{Binding VideoActionCommand}" | |
Position="{Binding Position, Mode=TwoWay}" | |
Source="https://sec.ch9.ms/ch9/5d93/a1eab4bf-3288-4faf-81c4-294402a85d93/XamarinShow_mid.mp4"/> | |
<StackLayout | |
HorizontalOptions="CenterAndExpand" | |
Orientation="Horizontal"> | |
<Button | |
Command="{Binding TriggerCommand}" | |
CommandParameter="{x:Static local:VideoTrigger.Play}" | |
IsVisible="{Binding CanPlay}" /> | |
<Button | |
Command="{Binding TriggerCommand}" | |
CommandParameter="{x:Static local:VideoTrigger.Pause}" | |
IsVisible="{Binding CanPause}" /> | |
<Button | |
Command="{Binding TriggerCommand}" | |
CommandParameter="{x:Static local:VideoTrigger.Stop}" | |
IsVisible="{Binding CanStop}"/> | |
<Button | |
Command="{Binding TriggerCommand}" | |
CommandParameter="{x:Static local:VideoTrigger.Rewind}" | |
IsVisible="{Binding CanStop}" /> | |
<Button | |
Command="{Binding TriggerCommand}" | |
CommandParameter="{x:Static local:VideoTrigger.Forward}" | |
IsVisible="{Binding CanStop}" /> | |
</StackLayout> | |
</StackLayout> | |
</ContentPage> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment