private void loadHtmlVideo(string videoId) { var parameters = new Dictionary <string, string>(); parameters["fullscreen-action"] = "trigger_event"; parameters["sharing-action"] = "trigger_event"; parameters["autoplay"] = "true"; //this will allow the player to auto next to the next related video parameters["queue-enable"] = "false"; parameters["queue-enable"] = "false"; var accessToken = "";// "myAccessToken"; //init the DMVideoPlayer dmPlayerController.Load(videoId, accessToken, parameters); }
private async Task LoadVideo(string videoId = "xl1km0") { var parameters = new Dictionary <string, string>(); parameters["autoplay"] = "true"; //this will allow the player to auto next to the next related video parameters["queue-enable"] = "false"; var accessToken = "";// "myAccessToken"; //init the DMVideoPlayer dmPlayerController.Load(videoId, accessToken, parameters); }
private void InitAndLoad() { var parameters = new Dictionary <string, string>(); parameters["autoplay"] = "true"; parameters["ui-logo"] = "false"; parameters["endscreen-enable"] = "false"; // parameters["chromeless"] = "true"; parameters["auto"] = "true"; parameters["mse"] = "0"; parameters["controls"] = "1"; parameters["sharing-enable"] = "fullscreen_only"; parameters["fullscreen-enable"] = "fullscreen_only"; parameters["collections-enable"] = "fullscreen_only"; parameters["watchlater-enable"] = "fullscreen_only"; parameters["like-enable"] = "fullscreen_only"; parameters["GK_PV5_GLOBAL_TIMEOUT_EXTENDED"] = "true"; //init dmPlayerController = new DmPlayerController(); var accessToken = "";// "myAccessToken"; //init the DMVideoPlayer dmPlayerController.Load("xl1km0", accessToken, parameters); if (!MyRootGrid.Children.Contains(dmPlayerController.DmVideoPlayer)) { //adding DmVideoPlayer to the page MyRootGrid.Children.Add(dmPlayerController.DmVideoPlayer); } dmPlayerController.OnDmWebViewMessageUpdated += DmPlayerController_OnDmWebViewMessageUpdated; }