mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 18:29:39 +02:00
Some fine tunings
This commit is contained in:
parent
7d483344fa
commit
d39ec71f0c
8 changed files with 27 additions and 34 deletions
|
@ -484,12 +484,24 @@ class Live extends PluginAbstract {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
$btn = "<div class=\"btn-group justified\">";
|
$btn = "<div class=\"btn-group justified recordLiveControlsDiv\" style=\"display: none;\" id=\"liveControls\">";
|
||||||
//$btn .= self::getButton("drop_publisher", $live_transmition_id, $live_servers_id);
|
//$btn .= self::getButton("drop_publisher", $live_transmition_id, $live_servers_id);
|
||||||
$btn .= self::getButton("drop_publisher_reset_key", $key, $live_servers_id, $iconsOnly);
|
$btn .= self::getButton("drop_publisher_reset_key", $key, $live_servers_id, $iconsOnly);
|
||||||
$btn .= self::getButton("record_start", $key, $live_servers_id, $iconsOnly);
|
$btn .= self::getButton("record_start", $key, $live_servers_id, $iconsOnly);
|
||||||
$btn .= self::getButton("record_stop", $key, $live_servers_id, $iconsOnly);
|
$btn .= self::getButton("record_stop", $key, $live_servers_id, $iconsOnly);
|
||||||
$btn .= "</div>";
|
$btn .= "</div>";
|
||||||
|
$btn .= "<script>
|
||||||
|
$(document).ready(function () {
|
||||||
|
setInterval(function () {
|
||||||
|
if (isOnlineLabel || $('.liveOnlineLabel.label-success').length) {
|
||||||
|
$('#liveControls').slideDown();
|
||||||
|
} else {
|
||||||
|
$('#liveControls').slideUp();
|
||||||
|
}
|
||||||
|
}, 1000);
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>";
|
||||||
|
|
||||||
return $btn;
|
return $btn;
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,31 +53,11 @@
|
||||||
</video>
|
</video>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-footer" style="display: none;" id="liveControls">
|
<div class="panel-footer">
|
||||||
<?php
|
<?php
|
||||||
echo Live::getRecordControlls($liveStreamObject2->getKeyWithIndex(true, true));
|
echo Live::getAllControlls($liveStreamObject2->getKeyWithIndex(true, true));
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
|
||||||
$(document).ready(function () {
|
|
||||||
setInterval(function () {
|
|
||||||
if (isOnlineLabel) {
|
|
||||||
$("#liveControls").slideDown();
|
|
||||||
if(player.paused()){
|
|
||||||
userIsControling = 0;
|
|
||||||
reloadVideoJS();
|
|
||||||
playerPlay();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$("#liveControls").slideUp();
|
|
||||||
if(!player.paused()){
|
|
||||||
player.pause();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}, 1000);
|
|
||||||
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
include $global['systemRootPath'] . 'plugin/Live/tabs/tabStreamSettings.php';
|
include $global['systemRootPath'] . 'plugin/Live/tabs/tabStreamSettings.php';
|
||||||
|
|
|
@ -22,9 +22,9 @@ if(!empty($parts["query"])){
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!empty($_GET['e']) && empty($_GET['p'])){
|
if(!empty($_GET['e']) && empty($_GET['p'])){
|
||||||
$obj = json_decode(decryptString($_GET['e']));
|
$objE = json_decode(decryptString($_GET['e']));
|
||||||
if(!empty($obj->users_id)){
|
if(!empty($objE->users_id)){
|
||||||
$user = new User($obj->users_id);
|
$user = new User($objE->users_id);
|
||||||
$_GET['p'] = $user->getPassword();
|
$_GET['p'] = $user->getPassword();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="col-lg-12 col-sm-12 col-xs-12 bottom-border videoListItem liveLink liveLink__unique_id_" id="videoListLiveLink__unique_id_" >
|
<div class="col-lg-12 col-sm-12 col-xs-12 bottom-border videoListItem liveLink liveLink__unique_id_" id="videoListLiveLink__unique_id_" >
|
||||||
<div class="col-lg-5 col-sm-5 col-xs-5 nopadding thumbsImage videoLink h6">
|
<div class="col-lg-5 col-sm-5 col-xs-5 nopadding thumbsImage videoLink h6">
|
||||||
<div style="position: relative;" class="galleryVideo">
|
<div style="position: relative;" class="galleryVideo liveVideo">
|
||||||
<a href="_link_" title="_title_">
|
<a href="_link_" title="_title_">
|
||||||
_imgJPG_
|
_imgJPG_
|
||||||
_imgGIF_
|
_imgGIF_
|
||||||
|
|
|
@ -23,7 +23,8 @@
|
||||||
|
|
||||||
th a, .select2-container--default span, .swal-text,
|
th a, .select2-container--default span, .swal-text,
|
||||||
.nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover,
|
.nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover,
|
||||||
.tabbable-line > .nav-tabs > li.active > a > i {
|
.tabbable-line > .nav-tabs > li.active > a > i,
|
||||||
|
.swal-title {
|
||||||
color: #FFF !important;
|
color: #FFF !important;
|
||||||
}
|
}
|
||||||
th:hover, .select2-dropdown{
|
th:hover, .select2-dropdown{
|
||||||
|
|
|
@ -41,17 +41,17 @@ if (!User::canUpload() || !empty($advancedCustom->doNotShowImportMP4Button)) {
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input type="text" id="path" class="form-control" placeholder="Local Path of videos i.e. /media/videos"/>
|
<input type="text" id="path" class="form-control" placeholder="Local Path of videos i.e. /media/videos"/>
|
||||||
<span class="input-group-btn">
|
<span class="input-group-btn">
|
||||||
<button class="btn btn-secondary" id="pathBtn">
|
<button class="btn btn-default" id="pathBtn">
|
||||||
<span class="glyphicon glyphicon-list"></span> <?php echo __("List Files"); ?>
|
<span class="glyphicon glyphicon-list"></span> <?php echo __("List Files"); ?>
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
<span class="input-group-btn">
|
<span class="input-group-btn">
|
||||||
<button class="btn btn-secondary" id="checkBtn">
|
<button class="btn btn-default" id="checkBtn">
|
||||||
<i class="far fa-check-square" aria-hidden="true"></i>
|
<i class="far fa-check-square" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
<span class="input-group-btn">
|
<span class="input-group-btn">
|
||||||
<button class="btn btn-secondary" id="uncheckBtn">
|
<button class="btn btn-default" id="uncheckBtn">
|
||||||
<i class="far fa-square" aria-hidden="true"></i>
|
<i class="far fa-square" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -886,7 +886,7 @@ function setCurrentTime(currentTime) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function isALiveContent() {
|
function isALiveContent() {
|
||||||
if (typeof isLive !== 'undefined' && isLive) {
|
if (typeof isLive !== 'undefined' && isLive && (typeof isOnlineLabel === 'undefined' || isOnlineLabel===true)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -186,7 +186,7 @@
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<div class="btn-group" id="actionButtonsVideoManager">
|
<div class="btn-group" id="actionButtonsVideoManager">
|
||||||
<button class="btn btn-secondary" id="checkBtn">
|
<button class="btn btn-default" id="checkBtn">
|
||||||
<i class="far fa-square" aria-hidden="true" id="chk"></i>
|
<i class="far fa-square" aria-hidden="true" id="chk"></i>
|
||||||
</button>
|
</button>
|
||||||
<?php if (!$config->getDisable_youtubeupload()) { ?>
|
<?php if (!$config->getDisable_youtubeupload()) { ?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue