|
Home > Archive > Macromedia Flash Server > August 2005 > AVpresence causes Reboot PC !! HELP !
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
AVpresence causes Reboot PC !! HELP !
|
|
|
| Dear Listers,
I am trying hard to solve a problem of AVPresence Component.
On some computers running Win2000 server or Win2k Pro, whenever I call: =
"AVteacher_mc.startPublish" =3D=3D> It causes the PC to reboot.. !!!!=20
The same SWF file can run OK on a computer running Win2000 Pro and =
another run WinXP have no problem at all !!
+ I try to uncommment some things in AVPresence Code but it does not fix =
the BUG.. !!!
+ I tried to build very simple app with AVpresence and it run OK on all =
PCs.
+ My FlashCom APP is rather large, having some 5 components and 12 =
SharedObjects. (=3D=3D> I wonder if they can interfer with each other =
??)
+ I added recording to APresence but it surely not the cause of reboot =
!!
=20
Here is the code of AV both client and server side..=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
// Starts to publish a stream for viewing by other users
FCAVPresenceClass.prototype.startPublish =3D function(rec) {
// Pend the request to startPublish if the userID or username has not =
yet been set
/* if ( this.userID =3D=3D null || this.username =3D=3D null ) {
this.needPublish =3D true;
return;
}*/ // Mon Aug 08 09:33:07 2005 TEST by HUNG ..!
trace("this.so.data.broadcast && !_global.broadcasting && =
this.username : "=20
+ this.so.data.broadcast + " : " + _global.broadcasting + " : " + =
this.username );
if (!this.so.data.broadcast && !_global.broadcasting && this.username =
!=3D null) {
trace("Broadcasting: " + this.username);
this.username_txt.text =3D this.username;
_global.broadcasting =3D true;
if (gFlashCom.quality !=3D null) {
// Use bandwidth management
trace("---------Using new \"B.W.M.\"");
this.local_cam =3D Camera.get();
this.local_mic =3D Microphone.get();
=20
// Manage the quality of the camera and microphone and optionally
// indicate the preferred aspect ratio
//gFlashCom.quality.manage( this.local_mic, this.local_cam, 1 );
} else {
// Use default settings
trace("Using defult settings...."); =20
this.local_cam =3D Camera.get();
this.local_mic =3D Microphone.get();
this.local_cam.setMode(this.vidWidth, this.vidHeight, this.vidFps);
this.local_cam.setQuality(this.vidBandwidth, this.vidQuality);
}
=20
this.local_cam.setLoopback(false);
this.micInterval =3D setInterval(this.micOnActivity, 100, this);
this.seat_video.attachVideo(this.local_cam);
// Start publishing stream
this.ns.attachVideo(this.local_cam);
this.ns.attachAudio(this.local_mic);
//For record AVPresent
//trace("this.recOption:"+this.recOption);
// Hung Test =3D> 2 Fix Reboot Err... !! Mon Jul 25 18:34:59 2005
//this.ns.publish(this.prefix + this.soName);
trace("Fixing Reboot Err!");
if (rec !=3D null){
this.ns.publish(this.prefix + this.soName, rec); =20
}else{ =20
this.ns.publish(this.prefix + this.soName);
}=20
this.nc.call(this.prefix + "startPublish", null, this.prefix + =
this.soName);
this.gotoAndStop("publishing");
}
};
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D
Server side: (Untouched !!)
FCAVPresence.prototype.startPublish =3D function ( client, seat) {
var clocal =3D this.getClientLocalStorage(client);
var cglobal =3D this.getClientGlobalStorage(client);
if (clocal.seat =3D=3D "none") { // Not currently sitting
clocal.seat =3D seat;
var av_so =3D SharedObject.get(seat, false);
av_so.setProperty("speaker", cglobal.username);
av_so.setProperty("speakerID", clocal.userID);
av_so.setProperty("broadcast", true);
}
};
//
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
anyone can give me a clue ??? Any idea is highly appreciated !
Hungnc..
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
|
| Hi, all.
I have found the code line that cause reboot PC :
gFlashCom.quality.manage( this.local_mic, this.local_cam, 1 );
But still cannot understand why ?? component bug ??
BTW, I cannot find any code related to the Bandwidth management =
framework..., what it really does and how to use it...??
Anyone have any idea ?? =20
Thanks,
Hungnc.
----- Original Message -----=20
From: Hung=20
To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org=20
Sent: Monday, August 08, 2005 10:17 AM
Subject: AVpresence causes Reboot PC !! HELP !
Dear Listers,
I am trying hard to solve a problem of AVPresence Component.
On some computers running Win2000 server or Win2k Pro, whenever I =
call: "AVteacher_mc.startPublish" =3D=3D> It causes the PC to reboot.. =
!!!!=20
The same SWF file can run OK on a computer running Win2000 Pro and =
another run WinXP have no problem at all !!
+ I try to uncommment some things in AVPresence Code but it does not =
fix the BUG.. !!!
+ I tried to build very simple app with AVpresence and it run OK on =
all PCs.
+ My FlashCom APP is rather large, having some 5 components and 12 =
SharedObjects. (=3D=3D> I wonder if they can interfer with each other =
??)
+ I added recording to APresence but it surely not the cause of reboot =
!!
Here is the code of AV both client and server side..=20
=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
// Starts to publish a stream for viewing by other users
FCAVPresenceClass.prototype.startPublish =3D function(rec) {
// Pend the request to startPublish if the userID or username has not =
yet been set
/* if ( this.userID =3D=3D null || this.username =3D=3D null ) {
this.needPublish =3D true;
return;
}*/ // Mon Aug 08 09:33:07 2005 TEST by HUNG ..!
trace("this.so.data.broadcast && !_global.broadcasting && =
this.username : "=20
+ this.so.data.broadcast + " : " + _global.broadcasting + " : " + =
this.username );
if (!this.so.data.broadcast && !_global.broadcasting && this.username =
!=3D null) {
trace("Broadcasting: " + this.username);
this.username_txt.text =3D this.username;
_global.broadcasting =3D true;
if (gFlashCom.quality !=3D null) {
// Use bandwidth management
trace("---------Using new \"B.W.M.\"");
this.local_cam =3D Camera.get();
this.local_mic =3D Microphone.get();
=20
// Manage the quality of the camera and microphone and optionally
// indicate the preferred aspect ratio
gFlashCom.quality.manage( this.local_mic, this.local_cam, 1 );
} else {
// Use default settings
trace("Using defult settings...."); =20
this.local_cam =3D Camera.get();
this.local_mic =3D Microphone.get();
this.local_cam.setMode(this.vidWidth, this.vidHeight, this.vidFps);
this.local_cam.setQuality(this.vidBandwidth, this.vidQuality);
}
=20
this.local_cam.setLoopback(false);
this.micInterval =3D setInterval(this.micOnActivity, 100, this);
this.seat_video.attachVideo(this.local_cam);
// Start publishing stream
this.ns.attachVideo(this.local_cam);
this.ns.attachAudio(this.local_mic);
//For record AVPresent
//trace("this.recOption:"+this.recOption);
// Hung Test =3D> 2 Fix Reboot Err... !! Mon Jul 25 18:34:59 2005
//this.ns.publish(this.prefix + this.soName);
trace("Fixing Reboot Err!");
if (rec !=3D null){
this.ns.publish(this.prefix + this.soName, rec); =20
}else{ =20
this.ns.publish(this.prefix + this.soName);
}=20
this.nc.call(this.prefix + "startPublish", null, this.prefix + =
this.soName);
this.gotoAndStop("publishing");
}
};
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D
Server side: (Untouched !!)
FCAVPresence.prototype.startPublish =3D function ( client, seat) {
var clocal =3D this.getClientLocalStorage(client);
var cglobal =3D this.getClientGlobalStorage(client);
if (clocal.seat =3D=3D "none") { // Not currently sitting
clocal.seat =3D seat;
var av_so =3D SharedObject.get(seat, false);
av_so.setProperty("speaker", cglobal.username);
av_so.setProperty("speakerID", clocal.userID);
av_so.setProperty("broadcast", true);
}
};
//
=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
anyone can give me a clue ??? Any idea is highly appreciated !
Hungnc..
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
|
|
|
|
|