public void BtnFullYoutube() { youtubeid = inputVideoId.text; //display full youtube with all settings true PopupYoutube.FullYoutubeView(youtubeid); }
public void BtnCustomYoutube() { youtubeid = inputVideoId.text; autoplay = toggleautoplay.isOn; showinfo = toggleshowinfo.isOn; width = int.Parse(inputWidth.text); height = int.Parse(inputHeight.text); //display custom youtube with settings PopupYoutube.CustomYoutubeView(youtubeid, autoplay, showinfo, false, width, height); }
public void BtnFullYoutubeSettings() { youtubeid = inputVideoId.text; autoplay = toggleautoplay.isOn; showinfo = toggleshowinfo.isOn; //display full youtube with settings PopupYoutube.FullYoutubeView(youtubeid, autoplay, showinfo); //you can try this too //PopupYoutubeAndroid.CustomYoutubeView(youtubeid,autoplay,showinfo,false,Screen.currentResolution.width,Screen.currentResolution.height); }
void DisplayWatsonText(string text) { if (imageWatsonDisplayed) //last input was image or video { watsonMediaViewer.GetComponent <Animator>().Play("FadeToZero"); imageWatsonDisplayed = false; } if (text.Contains("https://www.youtube.com/")) { videoURL = text; string youtubeID = videoURL.Split('=')[1]; Debug.Log("youtubeID ID: " + youtubeID); PopupYoutube.FullYoutubeView(youtubeID); } else { chatResponse.text = chat_response = text; } }