private void MainPage_Loaded(object sender, RoutedEventArgs e) { Controller = new VideoPlayerMainController(this); LoadingPanel = new LoadingPanel.LoadingPanel { IsProgressVisible = false, ColorScheme = { StatusTextColor = new SolidColorBrush(ColorConverter.FromHex("#FFffffff")), BackgroundColor = new SolidColorBrush(Colors.Black), BackgroundOpacity = 0, LoadingColor1 = ColorConverter.FromHex("#FF777777"), LoadingColor2 = ColorConverter.FromHex("#FF111111"), OverlayWidth = 400, OverlayHeight = 260 }, Opacity = 0.5 }; MediaElementControl.MainUI = this; SliderControl.Remote = this; VolumeControl.Remote = this; PlayControl.Remote = this; UrlControl.Remote = this; ControlsPanel.Opacity = 0.0; VolumeControl.SetVolume(0.5); JavaScriptBridge jsBridge = new JavaScriptBridge(Controller); HtmlPage.RegisterScriptableObject("glymaVideoPlayerBridge", jsBridge); Controller.Initialised(); }
public VideoPlayerCommandListener(VideoPlayerMainController mainController) { _mainController = mainController; }
public JavaScriptBridge(VideoPlayerMainController controller) { _controller = controller; }