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:
parent
2750abc1cc
commit
867cff320a
4 changed files with 18 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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/>', {
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue