Subversion Repositories cheapmusic

Rev

Rev 55 | Rev 57 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 55 Rev 56
Line 176... Line 176...
176
    if (isset($master->{'videos'})) {
176
    if (isset($master->{'videos'})) {
177
        foreach ($master->{'videos'} as $video) {
177
        foreach ($master->{'videos'} as $video) {
178
            $str .= "<a href=\"" . $video->uri . "\" target=\"_blank\" role=\"button\" title=\"Watch Video:<br>" . $video->title . " [" . gmdate('H:i:s', $video->duration) . "]\" data-html=\"true\" data-toggle=\"tooltip\" data-placement=\"bottom\"><i class=\"fab fa-youtube btn-youtube\"></i></a>";
178
            $str .= "<a href=\"" . $video->uri . "\" target=\"_blank\" role=\"button\" title=\"Watch Video:<br>" . $video->title . " [" . gmdate('H:i:s', $video->duration) . "]\" data-html=\"true\" data-toggle=\"tooltip\" data-placement=\"bottom\"><i class=\"fab fa-youtube btn-youtube\"></i></a>";
179
            $videoParam = basename($video->uri);
179
            $videoParam = basename($video->uri);
180
            $videoIdx = strpos($videoParam, "=") + 1;
180
            $videoIdx = strpos($videoParam, "=") + 1;
-
 
181
            // bugbug many videos don't run embedded
181
            $str .= "<iframe width=\"280\" height=\"158\" src=\"https://www.youtube-nocookie.com/embed/" . substr($videoParam, $videoIdx) . "?rel=0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>";
182
            // $str .= "<iframe width=\"280\" height=\"158\" src=\"https://www.youtube-nocookie.com/embed/" . substr($videoParam, $videoIdx) . "?rel=0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>";
182
        }
183
        }
183
    }
184
    }
184
 
185
 
185
    $str.="</span>";
186
    $str.="</span>";
186
    $str.="<span class=\"float-right\">";
187
    $str.="<span class=\"float-right\">";