问题
I'm using this script made by Rob W and everything works fine except for IE7.
Here it is the jsfiddle page. I've also tried importing this to enable JSON on IE, but it still doesn't work on IE7.
There is a way to solve this problem?
回答1:
Unfortunately, there is no way to solve this problem (except for upgrading browser), because IE7 does not support the postMessage method. This method is required, because it's the only way to communicate with the embedded YouTube frame.
postMessage
on frames is supported requires IE8+. All of the other modern browsers have full support for the postMessage
method.
来源:https://stackoverflow.com/questions/9326905/stop-youtube-player-in-ie7-using-rob-w-solution