Youtube Player API doesn't work in android phonegap
In normal html file, I use below code and it's working great.
var youtube;
var params = { allowScriptAccess: "always" };
var atts = { id: "youtube" };
swfobject.embedSWF("http://www.youtube.com/apiplayer?enablejsapi=1&version=3",
"ytpC", "1", "1", "8", "expressInstall.swf", null, params, atts);
.
.
youtube.loadVideoById(link);
But when I moved this html into android phonegap environment, then it gives 'cannot call loadVideoById method of undefined!'
What is the exact problem? What can I do to get success?
Read more
stackoverflow.comm
No comments:
Post a Comment