Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Next button
08-21-2010, 02:00 AM,
#1
Next button
I have a problem with Next button. It stay disabled on boxes w/o web cam even I configured to allow connections w/o cam. It disabled, but user receives text message that he can start to conversate by pressing "Next". Reproducable for 3.6, 4.0, 4.1
Reply
08-21-2010, 05:59 AM,
#2
RE: Next button
Please provide a link and CRC version number.
Reply
08-26-2010, 06:54 PM,
#3
RE: Next button
(08-21-2010, 05:59 AM)JabberCam Wrote:  Please provide a link and CRC version number.

http://www.virtuletka.com
CRC version is 4.1
Here I copied clear version with changes only in config.php
You can disable webcam and it will work, but if you open this URI from the box where webcam never been installed it is not work.
Reply
08-28-2010, 03:09 PM,
#4
RE: Next button
Unfortunantely I didn't received a solution, but I found a root cause of my problem. It's a defect in code. For those who met the same problem. It's a Null Reference exception in code when it tries to receve reference to camera and call null reference methods. To fix the problem you need to make changes in two places.

1.
Code:
private function onStart():void
...
Code:
if(Camera.getCamera().muted)
replace with
Code:
if(Camera.getCamera() && Camera.getCamera().muted)

2.
Code:
private function completeRegistration():void
...
Code:
            curCamera = Camera.getCamera(cameraIndex.toString());

            curCamera.addEventListener(StatusEvent.STATUS, onCameraStatus);
            if(!curCamera.muted != cameraAllowed) {
                cameraAllowed = !curCamera.muted;
                cameraChangedStatus();
            }

replace with
Code:
            curCamera = Camera.getCamera(cameraIndex.toString());
            if (curCamera)
            {
                curCamera.addEventListener(StatusEvent.STATUS, onCameraStatus);
                if(!curCamera.muted != cameraAllowed) {
                    cameraAllowed = !curCamera.muted;
                    cameraChangedStatus();
                }
            }
Reply
08-31-2010, 04:11 AM,
#5
RE: Next button
(08-28-2010, 03:09 PM)Leonid Wrote:  Unfortunantely I didn't received a solution, but I found a root cause of my problem. It's a defect in code. For those who met the same problem. It's a Null Reference exception in code when it tries to receve reference to camera and call null reference methods. To fix the problem you need to make changes in two places.

1.
Code:
private function onStart():void
...
Code:
if(Camera.getCamera().muted)
replace with
Code:
if(Camera.getCamera() && Camera.getCamera().muted)

2.
Code:
private function completeRegistration():void
...
Code:
            curCamera = Camera.getCamera(cameraIndex.toString());

            curCamera.addEventListener(StatusEvent.STATUS, onCameraStatus);
            if(!curCamera.muted != cameraAllowed) {
                cameraAllowed = !curCamera.muted;
                cameraChangedStatus();
            }

replace with
Code:
            curCamera = Camera.getCamera(cameraIndex.toString());
            if (curCamera)
            {
                curCamera.addEventListener(StatusEvent.STATUS, onCameraStatus);
                if(!curCamera.muted != cameraAllowed) {
                    cameraAllowed = !curCamera.muted;
                    cameraChangedStatus();
                }
            }

Hallo,

I've got the same problem. Thanks for your post. However, I can't find where the code is. I got 4.1, too. In which documents do I have to change the code?
Thanks
Reply
09-01-2010, 05:20 AM,
#6
RE: Next button
(08-31-2010, 04:11 AM)Fabian Wrote:  
(08-28-2010, 03:09 PM)Leonid Wrote:  Unfortunantely I didn't received a solution, but I found a root cause of my problem. It's a defect in code. For those who met the same problem. It's a Null Reference exception in code when it tries to receve reference to camera and call null reference methods. To fix the problem you need to make changes in two places.

1.
Code:
private function onStart():void
...
Code:
if(Camera.getCamera().muted)
replace with
Code:
if(Camera.getCamera() && Camera.getCamera().muted)

2.
Code:
private function completeRegistration():void
...
Code:
            curCamera = Camera.getCamera(cameraIndex.toString());

            curCamera.addEventListener(StatusEvent.STATUS, onCameraStatus);
            if(!curCamera.muted != cameraAllowed) {
                cameraAllowed = !curCamera.muted;
                cameraChangedStatus();
            }

replace with
Code:
            curCamera = Camera.getCamera(cameraIndex.toString());
            if (curCamera)
            {
                curCamera.addEventListener(StatusEvent.STATUS, onCameraStatus);
                if(!curCamera.muted != cameraAllowed) {
                    cameraAllowed = !curCamera.muted;
                    cameraChangedStatus();
                }
            }

Hallo,

I've got the same problem. Thanks for your post. However, I can't find where the code is. I got 4.1, too. In which documents do I have to change the code?
Thanks



You should use Adobe Flash Builder (look throw the forum to find additional info about it) and import 4.1.fxp into it. Just to view the code you can unzip 4.1.fxp using any archiver and see the file
\4.1\src\JabberCam.as in it
Reply
09-01-2010, 08:05 PM,
#7
RE: Next button
(09-01-2010, 05:20 AM)Leonid Wrote:  
(08-31-2010, 04:11 AM)Fabian Wrote:  
(08-28-2010, 03:09 PM)Leonid Wrote:  Unfortunantely I didn't received a solution, but I found a root cause of my problem. It's a defect in code. For those who met the same problem. It's a Null Reference exception in code when it tries to receve reference to camera and call null reference methods. To fix the problem you need to make changes in two places.

1.
Code:
private function onStart():void
...
Code:
if(Camera.getCamera().muted)
replace with
Code:
if(Camera.getCamera() && Camera.getCamera().muted)

2.
Code:
private function completeRegistration():void
...
Code:
            curCamera = Camera.getCamera(cameraIndex.toString());

            curCamera.addEventListener(StatusEvent.STATUS, onCameraStatus);
            if(!curCamera.muted != cameraAllowed) {
                cameraAllowed = !curCamera.muted;
                cameraChangedStatus();
            }

replace with
Code:
            curCamera = Camera.getCamera(cameraIndex.toString());
            if (curCamera)
            {
                curCamera.addEventListener(StatusEvent.STATUS, onCameraStatus);
                if(!curCamera.muted != cameraAllowed) {
                    cameraAllowed = !curCamera.muted;
                    cameraChangedStatus();
                }
            }

Hallo,

I've got the same problem. Thanks for your post. However, I can't find where the code is. I got 4.1, too. In which documents do I have to change the code?
Thanks



You should use Adobe Flash Builder (look throw the forum to find additional info about it) and import 4.1.fxp into it. Just to view the code you can unzip 4.1.fxp using any archiver and see the file
\4.1\src\JabberCam.as in it



Hello, thanks for answering. Your code worked well. It's functioning now! Thanks again for your help! It took some time until I knew how to use adobe flash builder but well... anyone who needs help with that can ask me or use the forum.
Another question you might be able to answer. Seems like you are able to work the code :-)
http://www.videosoftware.pro/forum/THREAD-Text-I-am-and-nickname-field-mix-up
Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)