High latency (P2P in Italy)

Official OpenTok Server-Side libraries

High latency (P2P in Italy)

Postby pusulit » Mon Jun 18, 2012 1:06 am

Hello,
I'm building my app based on 2 people rooms. All my users are Italian. But testing my application, it results with an high latency and the video conversation is impossibile (about 5second latency).

I'm creating the session in this way:
Code: Select all
$apiObj = new OpenTokSDK($apikey,$apisecret);

    if($_REQUEST['sessionId']) {
        $sessionId = $_REQUEST['sessionId'];
    } else {
        $session = $apiObj->create_session($_SERVER["REMOTE_ADDR"],  array("p2p.preference" => "enabled"));
        $sessionId = $session->getSessionId();
      $token = $apiObj->generate_token($sessionId);
    }


Really I can't see any difference between p2p and server conversation.
Often there's a significant difference between thers performance?

I'll buy the support, it can emprove somethings in performance (or hide the top-left logo)?

Thank you so much
Was this post helpful? (0)
pusulit
 
Posts: 2
Joined: Mon Jun 18, 2012 12:57 am
Thumbs Up: 0

Re: High latency (P2P in Italy)

Postby jtsai » Mon Jun 18, 2012 8:52 am

Hi

P2P only works if both users do not have their UDP ports blocked. You can go here on the same computer to test if p2p works for yourself, and then see how the latency is.

John
Was this post helpful? (0)
Very helpful resource: Devs Checklist
Examples with OpenTok: Examples
User avatar
jtsai
 
Posts: 1995
Joined: Wed Sep 14, 2011 3:00 pm
Thumbs Up: 157

Re: High latency (P2P in Italy)

Postby pusulit » Sat Jun 23, 2012 3:24 am

I'm sorry, but in the test page we have a p2p connection but the latency is so hight. Also the connection is slow.
Do you know how I've to do for emprove the solution?

Thank you
Was this post helpful? (0)
pusulit
 
Posts: 2
Joined: Mon Jun 18, 2012 12:57 am
Thumbs Up: 0

Re: High latency (P2P in Italy)

Postby ankur » Sat Jun 23, 2012 3:16 pm

pusulit,

Unfortunately if your users have low bandwidth from the ISP, you may experience a lot of latency regardless of using P2P or not. Can you ask both parties to use http://www.speedtest.net and find out how much bandwidth they have available? This will help us determine if the problem is ISP bandwidth or something else on our end.

Thanks,

-- Ankur
Was this post helpful? (0)
ankur
 
Posts: 316
Joined: Thu Jun 02, 2011 12:37 am
Thumbs Up: 12


Return to Supported Server API (PHP, Java, Ruby, Python)



Who is online

Users browsing this forum: No registered users and 1 guest

cron