示例#1
0
    public void BtnFullYoutube()
    {
        youtubeid = inputVideoId.text;

        //display full youtube with all settings true
        PopupYoutube.FullYoutubeView(youtubeid);
    }
示例#2
0
    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);
    }
示例#3
0
    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);
    }
示例#4
0
 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;
     }
 }