2024年3月24日发(作者:)

IE9 + jwplayer:

IE9 + jwplayer: __flash__addCallback 错误,如果在调用 player 之前在 dom 中移

动 player。[英]IE9 + jwplayer: __flash__addCallback error if move player in dom before

calling () UPDATE: The premise of this question turned out to be misguided.

The problem does not happen unless the move is in response to a user-click. Please

see

here.

更新:这个问题的前提被证明是错误的。除非用户点击,否则问题不会发生。请在

这里看到。

I have been knocking my head against a bug for a few days and am hoping

someone

can help.

我已经用了几天的时间来对付一只虫子,希望有人能帮上忙。

I have a jquery script that makes calls to a jwplayer object (“myplayer”) using the

jwplayer javascript api. For example, to load myplayer with a particular video, I call:

我有一个 jquery 脚本,它使用 jwplayer javascript api 调用 jwplayer 对象

(“myplayer”)。例如,要为 myplayer 加载一个特定的视频,我调用:

(‘my_url’); This works fine in both firefox and internet explorer, so long

as I don’t first move the player to a different location in the DOM.

这在 firefox 和 internet explorer 中都适用,只要我不首先将播放器移动到 DOM 中

的不同位置。

However, my script sometimes moves the player from location A to location B and then

back to location A, before calling (). This works fine in firefox. But in

internet explorer 9, I get an error on this line:

但是,在调用 ()之前,我的脚本有时会将播放器从位置 A 移动到位

置 B,然后再移动到位置 A。这在 firefox 中很好用。但是在 internet explorer 9 中,

我在这一行中得到了一个错误:

return eval(nction(“ invoke name=”“+name+””