https://<your backend server>/hook/connect
<?php
header('HTTP/1.1 200 OK',true,200);
?>
[root@p16 /]# curl -k -I https://<your backend server>/hook/connect
HTTP/1.1 200 OK
Date: Thu, 31 Oct 2019 16:48:39 GMT
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16
X-Powered-By: PHP/5.4.16
Content-Type: text/html; charset=UTF-8
update app -l https://<your backend server>/hook defaultApp
https://<your WCS IP-address or domain name>:8444/client2/examples/demo/streaming/screen-sharing/screen-sharing.js
function start() {
...
Flashphoner.createSession({urlServer: url,custom:{userTest: "passTest"}}).on(SESSION_STATUS.ESTABLISHED,function(session){...})
...
}
<?php
$incoming_data = json_decode(file_get_contents('php://input'), true);
if ($incoming_data['custom']['passwd'] == 'passwdTest') {
header('HTTP/1.1 200 OK',true,200);
} else {
header('HTTP/1.1 403 Forbidden',true,403);
}
?>
https://<your WCS IP-address or domain name>:8444/client2/examples/demo/streaming/screen-sharing/screen-sharing.html