mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update autoplay video poster and thumbnail URLs to use new video source retrieval method
This commit is contained in:
parent
30258e63e2
commit
a48157e0b7
1 changed files with 3 additions and 2 deletions
|
@ -280,10 +280,11 @@ if (!empty($evideo)) {
|
|||
$modeYouTubeTimeLog['Code part 3'] = microtime(true) - $modeYouTubeTime;
|
||||
$modeYouTubeTime = microtime(true);
|
||||
if (!empty($autoPlayVideo) && !empty($autoPlayVideo['filename'])) {
|
||||
$s = getVideosURL_V2($autoPlayVideo['filename']);
|
||||
$autoPlaySources = getSources($autoPlayVideo['filename'], true);
|
||||
$autoPlayURL = $autoPlayVideo['url'];
|
||||
$autoPlayPoster = "{$global['webSiteRootURL']}videos/{$autoPlayVideo['filename']}.jpg";
|
||||
$autoPlayThumbsSprit = "{$global['webSiteRootURL']}videos/{$autoPlayVideo['filename']}_thumbsSprit.jpg";
|
||||
$autoPlayPoster = $s['jpg_thumbsV2']['jpg'];
|
||||
$autoPlayThumbsSprit = $s['jpg_thumbsSprit']['url'];
|
||||
} else {
|
||||
$autoPlaySources = [];
|
||||
$autoPlayURL = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue