Dynamically change embedded video src in IE/Chrome (works in Firefox)

后端 未结 2 1663
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-12 08:33

I\'m trying to dynamically change an embedded video on a page. It\'s working in Firefox but for some reason it\'s not working in IE and Chrome (strange combination). Here\'s

2条回答
  •  旧时难觅i
    2021-01-12 09:28

    The tag is used for backwards compatibility. Try to change the param value instead.

    $("#viewer param[name=movie]").attr("value", videoAddress);
    

提交回复
热议问题