Friday, July 19, 2013

[android help] Youtube Player API doesn't work in android phonegap


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

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...