diff options
author | MaZderMind | 2015-03-03 23:28:14 +0100 |
---|---|---|
committer | MaZderMind | 2015-03-03 23:28:14 +0100 |
commit | e13e16405ae6d568ba991a4d693c454b1e1f99a2 (patch) | |
tree | 9634599c03b0d832dec4d859f7b7e8a3f872b666 /lib/helper.php | |
parent | 1cf6e0161c5e89909c6d51d15f8533d798d2dc4e (diff) |
Fix Stream-Selection in Feedback-Form
Diffstat (limited to '')
-rw-r--r-- | lib/helper.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/helper.php b/lib/helper.php index 50d381d..d23eb35 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -153,6 +153,19 @@ function room_has_slides($room) return count(array_intersect(array('slides'), $formats)) > 0; } +function room_get_possible_selections($room) +{ + $selections = array(); + + if(room_has_hd($room)) $selections[] = 'hd'; + if(room_has_sd($room)) $selections[] = 'sd'; + if(room_has_audio($room)) $selections[] = 'audio'; + if(room_has_music($room)) $selections[] = 'music'; + if(room_has_slides($room)) $selections[] = 'slides'; + + return $selections; +} + function room_has_rtmp($room) { $formats = get("ROOMS.$room.FORMATS"); |