videoJSの上にプレーヤーを作成しましたが、videoJS内のパブリック関数にアクセスできません.ready()
。問題は、私のコードがIEを除くすべての場所で機能しているように見えることです(chrome、safari、ffなどで機能します)。
var myPlayer = _V_('myvideojsId');
myPlayer.ready(function() {
var player = this;
player.myPublicFunction = function() {
alert("hey!");
}
});
myPlayer.myPublicFunction();
IEで私は得る
Object does not support this property or method
ライン上myPlayer.myPublicFunction()
。他のブラウザは私に悪いコードを回避させていますか、それともこのIEのせいですか?
どんな助けでも素晴らしいでしょう、ありがとう!
クリス