1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 18:29:39 +02:00
Oinktube/plugin/WebRTC/call/index.php
Daniel Neto df4b69bca4 https://github.com/WWBN/AVideo/issues/9795
adding calls based on WebRTC
2025-01-14 09:28:36 -03:00

28 lines
No EOL
1 KiB
PHP

<?php
require_once __DIR__ . '/../../../videos/configuration.php';
require_once __DIR__ . '/../functions.php';
AVideoPlugin::loadPlugin("Live");
$_GET['avideoIframe'] = 1;
$_page = new Page(array('Call'));
if(empty($_REQUEST['roomId'])){
forbiddenPage('Room ID is required');
}
?>
<link href="<?php echo getURL('plugin/WebRTC/call/style.css'); ?>" rel="stylesheet" type="text/css" />
<script class="doNotSepareteTag">
var WebRTC2RTMPURL = '<?php echo getWebRTC2RTMPURL(); ?>';
const roomId = '<?php echo md5($_REQUEST['roomId']); ?>';
</script>
<div id="videoContainer" class="video-grid">
</div>
<div id="localVideoContainer">
</div>
<script src="<?php echo getURL('node_modules/socket.io-client/dist/socket.io.min.js'); ?>" type="text/javascript"></script>
<script src="<?php echo getURL('plugin/WebRTC/call/events.js'); ?>" type="text/javascript"></script>
<script src="<?php echo getURL('plugin/WebRTC/api.js'); ?>" type="text/javascript"></script>
<script>
$(document).ready(function() {});
</script>
<?php
$_page->print();
?>