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



  • Please provide a link and CRC version number.



  • @'JabberCam':

    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.



  • 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.```
    private function onStart():void

    if(Camera.getCamera().muted)

    if(Camera.getCamera() && Camera.getCamera().muted)

    2\.```
    private function completeRegistration():void
    ```…
    
    		curCamera = Camera.getCamera(cameraIndex.toString());
    
    		curCamera.addEventListener(StatusEvent.STATUS, onCameraStatus);
    		if(!curCamera.muted != cameraAllowed) {
    			cameraAllowed = !curCamera.muted;
    			cameraChangedStatus();
    		}
    
    replace with
    
    		curCamera = Camera.getCamera(cameraIndex.toString());
    		if (curCamera)
    		{
    			curCamera.addEventListener(StatusEvent.STATUS, onCameraStatus);
    			if(!curCamera.muted != cameraAllowed) {
    				cameraAllowed = !curCamera.muted;
    				cameraChangedStatus();
    			}
    		}
    


  • @'Leonid':

    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.```
    private function onStart():void

    if(Camera.getCamera().muted)

    if(Camera.getCamera() && Camera.getCamera().muted)

    2\.```
    private function completeRegistration():void
    ```…
    
      	curCamera = Camera.getCamera(cameraIndex.toString());
    
      	curCamera.addEventListener(StatusEvent.STATUS, onCameraStatus);
      	if(!curCamera.muted != cameraAllowed) {
      		cameraAllowed = !curCamera.muted;
      		cameraChangedStatus();
      	}
    
    replace with
    
      	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



  • @'Fabian':

    @'Leonid':

    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.```
    private function onStart():void

    if(Camera.getCamera().muted)

    if(Camera.getCamera() && Camera.getCamera().muted)

    2\.```
    private function completeRegistration():void
    ```…
    
      	curCamera = Camera.getCamera(cameraIndex.toString());
    
      	curCamera.addEventListener(StatusEvent.STATUS, onCameraStatus);
      	if(!curCamera.muted != cameraAllowed) {
      		cameraAllowed = !curCamera.muted;
      		cameraChangedStatus();
      	}
    
    replace with
    
      	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



  • @'Leonid':

    @'Fabian':

    @'Leonid':

    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.```
    private function onStart():void

    if(Camera.getCamera().muted)

    if(Camera.getCamera() && Camera.getCamera().muted)

    2\.```
    private function completeRegistration():void
    ```…
    
      	curCamera = Camera.getCamera(cameraIndex.toString());
    
      	curCamera.addEventListener(StatusEvent.STATUS, onCameraStatus);
      	if(!curCamera.muted != cameraAllowed) {
      		cameraAllowed = !curCamera.muted;
      		cameraChangedStatus();
      	}
    
    replace with
    
      	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


Log in to reply