Text version only



  • Hi,

    I need to edit the RVC somehow, that it would be text only version. I am a newbie with Flash builder, so I dont have enough knowledge to do this myself :blush: . Could someone please help me with this?



  • You wish to completely turn off video or use small thumbnails instead?

    • the lowest native mode for webcams is 80 x 60 pixel at lowest 30 frames per second if the camera supports it. The default values for camera.setMode are:

    width:int - default value is 160.
    height:int - default value is 120.
    fps:Number - default value is 15.

    in RVC this would be: camera.setMode(160, 120, 15); - the lowest: camera.setMode(80, 60, 30);

    If you make a little research, this table will tell you more on how to select the fastest method (the lowest quality is not necessary the fastest!). And here are the details related to the web camera. Seems like camera.setMode(80, 60, 30); is optimal, however, I would test and compare it with the default camera.setMode(160, 120, 15);. Anyway, both can be sized down when using the VideoDisplay control to a little thumbnail (for ex. like a facebook thumbnail or my tux, sized to 70x60) and you get a chat, focused on text while still have small video-thumbnails.

    The other way is to turn off the VideoDisplay control completely (remove from JabberCam.mxml) and remove sending audio and video from the as (this will need at least basic knowledge of as). Since I like the idea, will try to post a modified mxml with video thumbnails during the weekend. Maybe someone helps with the as if not, get back.



  • Well, I want to turn off video/audio completely and make it text only (I know its a little weird, but I want it so :) ), so if you have some time, you could explain it a little more then, how can I remove sending video/audio.

    Basically, I want a large chat window with few options (gender and who are you looking for) - no camera, audio etc. . In other words something like zuchat.com (or omegle text version) but using the RVC flash engine. Can it be done?



  • Sorry for not answering after the weekend, I am busy with scheduled work and I don't think I can help with this modification before next weekend. Did you try doing it yourself? AFB is pretty easy to use and understand.



  • I like this second idea with the thumbnails. I would use the 320*240/30fps setting, scaled down at VideoDisplay and have full-size video on click. Did you get it done yet?



  • Not yet, but I have someone working on it, who is more skilled in AFB than me, hopefully he will be able to do it. If not, it could be a problem :s

    Edit - sorry, i did not read the above post properly, I thought that question was for me.



  • @'Nahodchat':

    Not yet, but I have someone working on it, who is more skilled in AFB than me, hopefully he will be able to do it. If not, it could be a problem :s

    Edit - sorry, i did not read the above post properly, I thought that question was for me.

    Nahodchat, I am also waiting for the version with the thumbnails but would be interested to se yours as well. If you decide to turn off the audio/video, make sure you turn it off completely from the AS and not just the MXML. This will speed things up. If I can make a little free time will add my version with the ide above ;)



  • Here is a working version of it, please check it:

    http://bit.ly/oIYRk6

    its still not the final version, but i plan to do only design changes now, otherwise its good.
    The only bigger problem i found with it, is that, when someone quits or disconnects from the chat window without pressing the stop button, the other chat partner will be left there without noticing it (no message about the other partner disconnecting). Could someone help me with that?



  • Great! It seems to work. Did you change the as and removed code parts that initiated the audio/video or just the video windows and microphone init? Could not test if there is audio left. I made a quick test and seems like old IDs are not removed from the database.

    Try the following /jabbercam/config.php

    // CONNECTION SETTINGS
    /* User connection timing */
    $MINIMUM_CONNECTED_TIME = 2;			// the minimum time in seconds, two users must stay connected before they can press NEXT (global)
    $TIME_TO_LIVE = 2; 					// set the delay, seconds (close the session if the server doesn't receive a response for XX seconds)
    
    /* Maintenance settings */
    $REMOVE_SESSIONS_OLDER_THAN = '5';	// set the amount of time, minutes, sessions to be cleared by the ?task=cleanAllOlder function, set this to > 30 after the tests
    
    

    and create a cron job:

    /usr/local/bin/php -q /home/[username]/public_html/jabbercam/admin.php?task=cleanAllOlder
    or
    /usr/bin/wget -q -O /dev/null http://www.[yourdomain].com/jabbercam/admin.php?task=cleanAllOlder
    
    ```*cPanel Servers. The [username] you'll find it on the left side of main cPanel: Home Directory /home/[username]


  • I did nothing :angel: i hired someone to do it. But he did remove (commented it) the video code from the .as . Because when we first tried to hide the video windows first, it asked for the permissions to start the webcam, so it was not really removed. Now its removed completely i think.

    I did the changes you wrote, but it did not help :-/ . I have a feeling that a part of code in the AS that was needed for it, was commented also.

    Also, was not sure about the cron - i just used the second command, is it ok? I did not use the first.

    EDIT: I also have a basic (no modification) version of the chat uploaded and there is the same problem, it does not disconnects the users when someone quits it with closing the browser. Also its very hard to connect to someone, most of the time it writes, that there were no users found, even if i know for sure, that there is someone.

    http://bit.ly/qSQ4rs - here is the basic version on my server



  • This is why I mentioned the cron job. When you log-in, you get an ID and it stays in the database unless you delete it:

    YOUR-DOMAIN.com/jabbercam/admin.php?task=cleanAllOlder



  • I still do not know how to make the cron job (i always receive an email that the directory/file could be not found), but did it manually by typing it in the browser… i think it connects now the users very fast and good. BUT it did not help with the issue of disconnecting when one users closes the browser/window without pressing stop :huh: . If someone could help me with this, i would be really happy, because i cannot proceed without it.

    Edit : I could connect to myself without problems, but the problem with connecting to other people remained :(



  • You have a point here. The ping that should close the connection after N seconds, is not working for some reason. Maybe the connection is closed but at the same time NEXT should be activated and processed. I have to take a closer look at this and make some tests.


    It seems like TIME_TO_LIVE is processed by the RVC php service:

    function clean() {
    		$result = mysql_query("DELETE sessions, filters, user_settings, user_prefs, chats FROM sessions ".
    			"LEFT JOIN filters ON sessions.id=filters.id LEFT JOIN user_settings ON sessions.id=user_settings.id ".
    			"LEFT JOIN user_prefs ON sessions.id=user_prefs.id LEFT JOIN chats ON sessions.id=chats.peer1 || ".
    			"sessions.id=chats.peer2 ".
    			"WHERE type=0 && created_at < DATE_SUB(NOW(),INTERVAL $TIME_TO_LIVE SECOND);");
    
    		return $result;
    	}
    
    ```- the web service is cleaning up the ID from the database, leaving no phantom user. This event is not processed by the application and no signal is received about the event. This will work fine with a video chat since it is assumed, the user will press NEXT if there is no activity (no video signal or video is frozen) and the rest was already done by php.
    In your case it is different, since there is no audio/video signal, the user has no feedback about te other party leaving the chat.
    
    * * *
    
    Te solution is to process the event in the application and as result activate and process findPartner();
    
    It needs a modification in the script that may use the same $TIME_TO_LIVE variable and sends a ping to the database, if the connected user is not responding in N seconds ($TIME_TO_LIVE) than activate NEXT (btnNext.enabled = true;) and start looking for a new partner (findPartner();). You may need to take a deeper look to handle all scenarios like speed-date, speed-chat, auto next, countdown timer etc. or you can skip using these functions. It is not complicated but it needs some time to go trough the as.


  • Something similar used to be in a previous CRC or RVC version we tested, but was removed later. There was a problem with 1000+ users using the MySQL database on a normal shared hosting. The web service caused high MySQL load while processing too many SQL queries. I remember a test where a 10 CPU Intel Xeon dedicated SQL server went down several times per day, while the functions.php used a lot of memory itself, causing the web server to slow down or even fail. Some parts of the script, including this ping were removed to reduce the number of queries by 2000+/sec. Btw. the php sample that comes with RVC is just an implementation sample and it is was never changed nor enhanced, the database structure is the same that came with first versions. Whoever is using RVC, should create his own web service, as recommended in the descriptions.



  • Thanks for your help ;) . But I just thought about it - wouldn't be the RVCS tremendously better for this? It does not use any MySQL and it looks like, it has some function, that it disconnects you, when the other one quits the browser/window. Are there any disadvantages with using the RVCS the way I want - ie. text chat?

    I need to know that before committing any more resources/time/money to the modification of RVC.



  • Do you have both RVC and RVCS sources? In this case I would definitely use RVCS. It has a more simple connection, without all the features you don't really need. It also disconnects almost instantly if you close the partner browser tab. Right after disconnecting, you need to ad an alert, that's all.
    Anyway, test it and make sure this is what you need.

    RVCS http://demo.videosoftware.pro/rvcs
    SVC http://apps.facebook.com/video-call/ -also works without facebook or any other login.



  • Try the cron-job in the format used above this is exactly what we use on our site. The partner disconnected alert is not included in RVC yet.


Log in to reply
 

© 2108 H7 | Powered by NodeBB

Looks like your connection to H7 was lost, please wait while we try to reconnect.