开发者

obj.playVideo is not a function error in firebug

开发者 https://www.devze.com 2023-03-19 19:49 出处:网络
I am using this code : var obj = swfobject.getObjectById(\"myytplayer\"); console.debug(obj); obj.playVideo();

I am using this code :

var obj = swfobject.getObjectById("myytplayer");

console.debug(obj);

obj.playVideo();

//obj.pauseVideo();

When I run this, I get an error like:

obj.playVi开发者_StackOverflow中文版deo is not a function

What am I doing wrong?


swfobject is not a native JS object available in any browser. You need to include a file/JS script that holds definition of swfobject, I guess the file is named swfobject.js, look around your desk you will find it


I solve that problem.

When i deploy my web page on iis it's works fine. so for that problem just host your webpage and it's works fine

tnx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号