11 changed files with 112 additions and 25 deletions
-
1app/views/main.tpl
-
1app/views/page.tpl
-
43app/widgets/Ack/Ack.php
-
7app/widgets/Ack/ack.tpl
-
1app/widgets/Login/Login.php
-
3app/widgets/Visio/visio.tpl
-
2app/widgets/Visio/webrtc.js
-
21app/widgets/VisioExt/VisioExt.php
-
4app/widgets/VisioExt/visioext.js
-
39lib/JingletoSDP.php
-
15lib/SDPtoJingle.php
@ -0,0 +1,43 @@ |
|||
<?php |
|||
|
|||
/** |
|||
* @package Widgets |
|||
* |
|||
* @file Ack.php |
|||
* This file is part of MOVIM. |
|||
* |
|||
* @brief Send ack for each incoming requests. |
|||
* |
|||
* @author Timothée Jaussoin <edhelas@gmail.com> |
|||
* |
|||
* @version 1.0 |
|||
* |
|||
* Copyright (C)2013 MOVIM project |
|||
* |
|||
* See COPYING for licensing information. |
|||
*/ |
|||
|
|||
class Ack extends WidgetBase { |
|||
function WidgetLoad() |
|||
{ |
|||
$this->registerEvent('ack', 'onAckRequest'); |
|||
|
|||
$this->view->assign('ack', |
|||
$this->genCallAjax( |
|||
"ajaxAckRequest", 'to', 'id') |
|||
); |
|||
} |
|||
|
|||
function onAckRequest($ack) { |
|||
$to = $ack[0]; |
|||
$id = $ack[1]; |
|||
RPC::call('ackRequest', $to, $id); |
|||
} |
|||
|
|||
function ajaxAckRequest($to, $id) { |
|||
$ack = new \moxl\AckSend(); |
|||
$ack->setTo($to) |
|||
->setId($id) |
|||
->request(); |
|||
} |
|||
} |
@ -0,0 +1,7 @@ |
|||
<script type="text/javascript"> |
|||
function ackRequest(arg) { |
|||
var to = arg[0]; |
|||
var id = arg[1]; |
|||
{$ack} |
|||
} |
|||
</script> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue