diff --git a/lib/rex_plyr.php b/lib/rex_plyr.php index ceaf58b..89675a0 100644 --- a/lib/rex_plyr.php +++ b/lib/rex_plyr.php @@ -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); @@ -236,7 +236,7 @@ public static function outputMedia($url, $setup = null, $poster = null, $consent $audioFormat = $player->checkAudio($url); - if ($audioFormat) { + if (false != $audioFormat) { $out = '