private void InitHtml5() { var parameters = new Dictionary <string, string>(); parameters["auto"] = "true"; if (App.IsXbox) { parameters["controls"] = "0"; } else { parameters["controls"] = "1"; } //init dmPlayerController = new DMPlayerController(); var accessToken = "";// "myAccessToken"; //init the DMVideoPlayer dmPlayerController.Init(accessToken, parameters); if (!MyPlayerGrid.Children.Contains(dmPlayerController.DmVideoPlayer)) { //adding DmVideoPlayer to the page MyPlayerGrid.Children.Add(dmPlayerController.DmVideoPlayer); } dmPlayerController.OnDmWebViewMessageUpdated += DmPlayerController_OnDmWebViewMessageUpdated; }
private void Init() { var parameters = new Dictionary <string, string>(); parameters["fullscreen-action"] = "trigger_event"; parameters["sharing-action"] = "trigger_event"; parameters["like-action"] = "trigger_event"; parameters["collections-action"] = "trigger_event"; parameters["watchlater-action"] = "trigger_event"; parameters["autoplay"] = "true"; parameters["ui-logo"] = "0"; parameters["endscreen-enable"] = "false"; // parameters["chromeless"] = "true"; parameters["auto"] = "true"; parameters["controls"] = "1"; parameters["sharing-enable"] = "false"; parameters["fullscreen-enable"] = "fullscreen_only"; parameters["collections-enable"] = "false"; parameters["watchlater-enable"] = "false"; parameters["like-enable"] = "false"; parameters["quality"] = "2160"; //parameters["quality"] = "1080"; //parametersCookies["clsu"] = "1"; parameters["GK_PV5_GLOBAL_TIMEOUT_EXTENDED"] = "true"; //init dmPlayerController = new DMPlayerController(); var accessToken = "";// "myAccessToken"; //init the DMVideoPlayer dmPlayerController.Init(accessToken, parameters); if (!MyRootGrid.Children.Contains(dmPlayerController.DmVideoPlayer)) { //adding DmVideoPlayer to the page MyRootGrid.Children.Add(dmPlayerController.DmVideoPlayer); } dmPlayerController.OnDmWebViewMessageUpdated += DmPlayerController_OnDmWebViewMessageUpdated; }