mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
50 lines
1.7 KiB
PHP
50 lines
1.7 KiB
PHP
<?php
|
|
global $global, $config;
|
|
if (!isset($global['systemRootPath'])) {
|
|
require_once '../../videos/configuration.php';
|
|
}
|
|
if (!Live::canRestream()) {
|
|
return false;
|
|
}
|
|
?>
|
|
<div class="panel panel-default" id="LiveRestreamPanel">
|
|
<div class="panel-heading clearfix">
|
|
<div class="pull-right">
|
|
<?php
|
|
echo getTourHelpButton('plugin/Live/view/Live_restreams/help.json', 'btn btn-default btn-xs', 'Restream Help');
|
|
?>
|
|
</div>
|
|
</div>
|
|
<div class="panel-body">
|
|
<?php
|
|
include $global['systemRootPath'] . 'plugin/Live/view/Live_restreams/livePanelForm.php';
|
|
?>
|
|
</div>
|
|
<div class="panel-footer clearfix">
|
|
<?php
|
|
include $global['systemRootPath'] . 'plugin/Live/view/Live_restreams/getLiveKey.php';
|
|
?>
|
|
<div class="btn-group pull-right">
|
|
<button type="button" class="btn btn-primary" id="livePanelTest" onclick="testRestreamer();">
|
|
<i class="fas fa-check"></i>
|
|
<?php echo __('Test'); ?>
|
|
</button>
|
|
<button type="button" class="btn btn-success" id="livePanelActiveLives" onclick="avideoModalIframe(webSiteRootURL+'plugin/Live/view/Live_restreams/activeLives.php');">
|
|
<i class="fas fa-wifi"></i>
|
|
<?php echo __('Active Lives'); ?>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
function testRestreamer() {
|
|
modal.showPleaseWait();
|
|
$.ajax({
|
|
url: webSiteRootURL + 'plugin/Live/view/Live_restreams/testRestreamer.json.php',
|
|
success: function (response) {
|
|
avideoResponse(response);
|
|
modal.hidePleaseWait();
|
|
}
|
|
});
|
|
}
|
|
</script>
|