Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Update rex_plyr.php
Browse files Browse the repository at this point in the history
  • Loading branch information
skerbis authored Sep 15, 2023
1 parent 49d6416 commit bcf5526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rex_plyr.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public static function checkVideo($url): bool
* @return string|bool If the audio format is supported, returns the audio format's extension (e.g., 'mp3', 'ogg', etc.).
* If the audio format is not supported or the provided URL is invalid, returns false.
*/
public static function checkAudio($url): bool
public static function checkAudio($url): string|bool
{
// Get the audio object from the given URL
$audio = rex_media::get($url);
Expand Down Expand Up @@ -236,7 +236,7 @@ public static function outputMedia($url, $setup = null, $poster = null, $consent

$audioFormat = $player->checkAudio($url);

if ($audioFormat) {
if (false != $audioFormat) {
$out = '
<audio controls class="rex-plyr"' . $setup . $autoplay . $loop . $control_nojs . '>
<source src="' . $link . '" type="audio/' . $audioFormat . '">
Expand Down

0 comments on commit bcf5526

Please sign in to comment.