开发者

jQuery: Dynamic change of ATTR, doesn't work with "Video JS" - by hand it does

开发者 https://www.devze.com 2023-03-10 11:22 出处:网络
I use Video JS to display videos, defined in an XML-document, on my site in both Flash and HTML5. When I set the attr of a PARAM, to specify the URL of the video, it doesn\'t work. If I set it in the

I use Video JS to display videos, defined in an XML-document, on my site in both Flash and HTML5.

When I set the attr of a PARAM, to specify the URL of the video, it doesn't work. If I set it in the markup (without XML), 开发者_StackOverflow社区it works.

In the XML success I insert the value with the URL

$('.video-js-box object param[name=flashvars]').attr("value", 'config={"playlist":["' + image + '", {"url": "' + video + '","autoPlay":false,"autoBuffering":true}]}');

Why is this? And how do I get by this? I guess it has something to do with the similar feature "Live()", or has it?

Thank you in advance... :-)

//KennethBL

0

精彩评论

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