namespace Vav2Player { enum VideoDecoderType { Auto, Software, HardwareMF }; [default_interface] runtimeclass VideoPlayerControl : Microsoft.UI.Xaml.Controls.UserControl { VideoPlayerControl(); // Public Properties String VideoSource; Boolean ShowControls; Boolean AutoPlay; Boolean UseHardwareRendering; VideoDecoderType DecoderType; // Public Methods void LoadVideo(String filePath); void Play(); void Pause(); void Stop(); void Seek(Double timeSeconds); // Status Properties (read-only) Boolean IsVideoPlaying{ get; }; Boolean IsVideoLoaded{ get; }; Double CurrentTime{ get; }; Double Duration{ get; }; String Status{ get; }; } }