Reputation: 15
I'm making a recording functionality of a webpage using SWFObject.js. When the start-recording button and stop-recording button is clicked each will invoke the startRecording()
and stopRecording()
function.
When my Javascript trying to invoke the ExternalInterface Callback, record()
and stop()
, IE browser is throwing a SCRIPT 16389 error. In other browsers the ExternalInterface Callback works just fine.
function startRecording() {
var myFlashMovie = document.getElementById("ie_video_recorder");
myFlashMovie.connect();
myFlashMovie.record();
}
function stopRecording() {
var myFlashMovie = document.getElementById("ie_video_recorder");
myFlashMovie.stop();
recordButton.disabled=true;
}
Is there anyone had the same problem before and know how to fix it?
Upvotes: 0
Views: 83
Reputation: 21591
Which version of SWFObject version are you using? Please note, from 2015 the SWFObject is no longer in active development. According to the SWFObject Github document, I have tried to create a sample, but not successful, can you post the Enough code to reproduce the problem as in Minimal, Complete, and Verifiable example.
Besides, according to this thread, perhaps the issue is related to the cache, I suggest you could try to clear the browser cache and history, then retest your code.
Upvotes: 1