When I try to join meeting using sdk web sample (CDN)
Its Back With
-
errorCode: 3705
-
errorMessage: “The signature has expired.”
-
method: “join”
-
result: “The signature has expired.”
-
status: false
How Can I Solve It PLease???
It worked for me in the first time
But I tried many times after that and it doesn’t work
I Tried that
var generation = $.ajax({url: "generateSignature.php", type: "GET", data: { 'meeting_number': tmpArgs.mn }, async: false
}).responseText;
// generateSignuture.php
require_once ‘…/zoom_config.php’;
meeting_number = @_GET[‘meeting_number’];
function generate_signature ( $api_key, $api_secret, $meeting_number, $role){
$time = time() * 1000 - 30000;//time in milliseconds (or close enough)
$data = base64_encode($api_key . $meeting_number . $time . $role);
$hash = hash_hmac('sha256', $data, $api_secret, true);
$_sig = $api_key . "." . $meeting_number . "." . $time . "." . $role . "." . base64_encode($hash);
//return signature, url safe base64 encoded
return rtrim(strtr(base64_encode($_sig), '+/', '-_'), '=');
}
echo generate_signature(API_KEY,API_SECRET,$meeting_number,0);
And It Still Back With the same error.
And It Causes Many Problems In My Work