- have the webcam standlaone apps call to the JS shell to inform external JS apps that it is ready
When the SWF files is loading and starting up, the 3rd-party application maybe sending the SWF apps events/commands to start/stop webcam. However, these events may be lost because the SWF file isn't yet ready to handle the events.
This commit is contained in:
parent
4ae34689dc
commit
aae6ff77b7
@ -58,7 +58,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
|||||||
trace("WebcamPreviewSA:: Security.allowDomain(" + determineHTMLURL() + ");");
|
trace("WebcamPreviewSA:: Security.allowDomain(" + determineHTMLURL() + ");");
|
||||||
|
|
||||||
initExternalInterface();
|
initExternalInterface();
|
||||||
// displayCamera("0", 30, 10, 0, 90);
|
callWebcamPreviewStandaloneReady();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function determineHTMLURL():String {
|
private function determineHTMLURL():String {
|
||||||
@ -84,6 +84,12 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function callWebcamPreviewStandaloneReady():void {
|
||||||
|
if (ExternalInterface.available) {
|
||||||
|
ExternalInterface.call("webcamPreviewStandaloneAppReady");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private function handleStartPreviewCameraRequest(camIndex:String, camWidth:int, camHeight:int,
|
private function handleStartPreviewCameraRequest(camIndex:String, camWidth:int, camHeight:int,
|
||||||
camKeyFrameInterval:int, camModeFps:Number,
|
camKeyFrameInterval:int, camModeFps:Number,
|
||||||
camQualityBandwidth:int, camQualityPicture:int):void {
|
camQualityBandwidth:int, camQualityPicture:int):void {
|
||||||
|
@ -67,6 +67,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
|||||||
trace("WebcamViewSA:: Security.allowDomain(" + determineHTMLURL() + ");");
|
trace("WebcamViewSA:: Security.allowDomain(" + determineHTMLURL() + ");");
|
||||||
|
|
||||||
initExternalInterface();
|
initExternalInterface();
|
||||||
|
callWebcamViewStandaloneReady();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function determineHTMLURL():String {
|
private function determineHTMLURL():String {
|
||||||
@ -92,6 +93,12 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function callWebcamViewStandaloneReady():void {
|
||||||
|
if (ExternalInterface.available) {
|
||||||
|
ExternalInterface.call("webcamViewStandaloneAppReady");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private function connect(url:String):void {
|
private function connect(url:String):void {
|
||||||
nc = new NetConnection();
|
nc = new NetConnection();
|
||||||
nc.client = this;
|
nc.client = this;
|
||||||
|
Loading…
Reference in New Issue
Block a user