Skip to content

Commit

Permalink
simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
mp3butcher committed Dec 13, 2023
1 parent 7da16a1 commit a439af8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions legacy/application/models/StreamSetting.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ public static function getOutput($key, $add_prefix = false)
$result = array_merge($result, [
$prefix . 'port' => $_SERVER['SERVER_PORT'],
$prefix . 'host' => $_SERVER['SERVER_NAME'],
$prefix . 'type' => 'hls',
$prefix . 'bitrate' => '',
]);
}
}
Expand Down Expand Up @@ -118,8 +120,8 @@ public static function getEnabledStreamData()
$prefix = $id . '_';
$streams[$id] = [
'url' => $streamData[$prefix . 'public_url'],
'codec' => $streamData[$prefix . 'type'] ?? 'hls',
'bitrate' => $streamData[$prefix . 'bitrate'] ?? '',
'codec' => $streamData[$prefix . 'type'],
'bitrate' => $streamData[$prefix . 'bitrate'],
'mobile' => $streamData[$prefix . 'mobile'],
];
}
Expand Down

0 comments on commit a439af8

Please sign in to comment.