aboutsummaryrefslogtreecommitdiff
path: root/view/streams-json-v2.php
diff options
context:
space:
mode:
Diffstat (limited to 'view/streams-json-v2.php')
-rw-r--r--view/streams-json-v2.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/view/streams-json-v2.php b/view/streams-json-v2.php
index 7f070dd..dacd2a1 100644
--- a/view/streams-json-v2.php
+++ b/view/streams-json-v2.php
@@ -11,12 +11,13 @@ foreach (Conferences::getActiveConferences() as $conference)
$isCurrentlyStreaming = false;
+ // iterate through all rooms and only activate flag if there is something other than a daychange event
foreach($conference->getRooms() as $room) {
$currentTalk = $room->getCurrentTalk($now);
if ($currentTalk) {
- $isCurrentlyStreaming = true;
- if (isset($currentTalk['special']) && $currentTalk['special'] == 'daychange') {
+ // if current event is a daychange ignore room, but only if the next talk does not start in 30 minutes
+ if ( !(isset($currentTalk['special']) && $currentTalk['special'] == 'daychange' && $currentTalk['end'] - $basetime > 30*60 )) {
$isCurrentlyStreaming = true;
break;
}