anyone had success creating iframes in a WebView in LL’s CustomView?

anyone had success creating iframes in a WebView in LL’s CustomView?

would like to make a YouTube music player embedded in LL, using the YT Player API (https://developers.google.com/youtube/iframe_api_reference)

tried Jappie Toutenhoofd ‘s WebView script which can load embedded YT videos, but some YT videos will only load via an iframe rather than direct url

https://developers.google.com/youtube/iframe_api_reference
]]>

One Commentto anyone had success creating iframes in a WebView in LL’s CustomView?

  1. Anonymous says:

    < ![CDATA[

    managed to get the videos to play, but can’t activate the autoplay next video feature:



    LL.bindClass(“android.webkit.WebView”);


    var context = LL.getContext();


    var html = “” + “” + ““;



    var webView = new WebView(context);


    webView.getSettings().setJavaScriptEnabled(true);


    webView.setInitialScale(100);



    webView.loadData(html, “text/html”, null);


    return webView; 

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *