Update streams.php

This commit is contained in:
FusionPBX 2022-03-29 12:05:44 -06:00 committed by GitHub
parent a8fa8487ea
commit 74765a125a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2018-2020
Portions created by the Initial Developer are Copyright (C) 2018-2022
the Initial Developer. All Rights Reserved.
*/
@ -242,9 +242,8 @@
echo " <td class='no-wrap button'>\n";
if (strlen($row['stream_location']) > 0) {
$location_parts = explode('://',$row['stream_location']);
if ($location_parts[0] == "shout") {
echo "<audio src='https://".$location_parts[1]."' controls='controls' />\n";
}
$http_protocol = ($location_parts[0] == "shout") ? 'http' : 'https';
echo "<audio src='".$http_protocol."://".$location_parts[1]."' controls='controls' />\n";
}
echo " </td>\n";
if (permission_exists('stream_edit')) {