1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00

showBigButton when the short is paused

This commit is contained in:
Daniel Neto 2024-05-15 14:46:24 -03:00
parent 2750abc1cc
commit 867cff320a
4 changed files with 18 additions and 0 deletions

View file

@ -1,4 +1,7 @@
<?php
$obj = AVideoPlugin::getObjectDataIfEnabled('MobileYPT');
$url = 'http://192.168.0.2/youphptube.com/mobile/qrcode/';
$url = 'https://youphp.tube/mobile/qrcode/';
@ -9,6 +12,12 @@ $url = addQueryStringParameter($url, 'users_id', User::getId());
$url = addQueryStringParameter($url, 'isMobile', isMobile() ? 1 : 0);
$url = addQueryStringParameter($url, 'qrcode', 1);
$onclick = "avideoModalIframeXSmall('{$url}');";
$objAPI = AVideoPlugin::getObjectDataIfEnabled('API');
if(empty($objAPI)){
$onclick = "avideoAlertError('Enable API plugin first');";
}
?>
<li>
<hr>

View file

@ -46,6 +46,9 @@
display: none !important;
}
.vjs-has-started.vjs-paused.showBigButton .vjs-big-play-button{
display: block !important;
}
@media all and (max-width: 900px) {
div.vjs-control-bar{

View file

@ -388,6 +388,7 @@ if ($removeAnimation || !empty($advancedCustom->disableAnimations)) {
var src = 'about:blank';
if (shortIsOpen) {
src = addQueryStringParameter(shortVideos[index2].embedlink, 'autoplay', 1);
src = addQueryStringParameter(src, 'showBigButton', 1);
}
console.log('Flickity settled at ', index2, src);
iframe = $('<iframe/>', {

View file

@ -105,6 +105,11 @@ require_once $global['systemRootPath'] . 'plugin/AVideoPlugin.php';
$vjsClass = "vjs-16-9";
} */
$vjsClass = '';
if(!empty($_REQUEST['showBigButton'])){
$vjsClass .= ' showBigButton';
}
$obj = new Video("", "", $video['id']);
$resp = $obj->addView();