以下の swfobject のコードを使用して、自分のページに Flash オブジェクトを埋め込んでいます。
flashVars =
appMode: appMode
callback: "function(){app.broadcaster.webcam.emit.apply(app.broadcaster.webcam, arguments);}"
params =
quality: "high"
bgcolor: "#ffffff"
wmode: "transparent"
allowscriptaccess: "always"
allowfullscreen: "true"
allowNetworking: "all"
allowFullScreenInteractive: true
attributes =
id: id
name: id
align: "middle"
classid: "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
args = [
"/bin-release-v2/fApp_1_9_beta4.swf"
id
"464"
"348",
"11.1.0"
"/bin-release/playerProductInstall.swf"
flashVars
params
attributes
(e) =>
app.log "embedded player!", "broadcaster"
$el = $ e.ref
webcam = WebcamBroadcaster.create $el
@emit "embed", webcam
deferred.resolve webcam
]
swfobject.embedSWF args...
すべてがうまく機能し、オブジェクト (IE9 を含む) でメソッドを呼び出すことができますが、このエラーがランダムに発生します。
document.getElementById("webcam").setReturnValue("<undefined/>")
SCRIPT 5007: Unable to get value of the property 'SetReturnValue': object is null or undefined
私は socket.io ベースのブロードキャスト Web サイトで作業していますが、これはクライアント側で発生します。
ブロードキャスターが切断されると、フラッシュ オブジェクトはクライアント側から削除され、接続時に再び埋め込まれます。
フラッシュにクイック削除/埋め込みがあり、IE9 ブラウザが遅いということでしょうか?