diff options
author | MaZderMind | 2016-12-29 12:01:56 +0100 |
---|---|---|
committer | MaZderMind | 2016-12-29 12:01:56 +0100 |
commit | 22bfef4aeca6f61d440fff9008f3074c5f1b28f4 (patch) | |
tree | f318dca7d3dfe3e53cada770562a7d7d283d3d7e /view | |
parent | 50c507d3743a93930ce589458ef246f85e28bbb2 (diff) |
repair stream-jsons
Diffstat (limited to 'view')
-rw-r--r-- | view/streams-json-v1.php | 4 | ||||
-rw-r--r-- | view/streams-json-v2.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/view/streams-json-v1.php b/view/streams-json-v1.php index 8cdac19..19f7b0d 100644 --- a/view/streams-json-v1.php +++ b/view/streams-json-v1.php @@ -78,7 +78,7 @@ foreach (Conferences::getActiveConferences() as $conference) 'type' => $stream->getPlayerType(), 'isTranslated' => $stream->isTranslated(), 'videoSize' => $stream->getVideoSize(), - 'urls' => $urls, + 'urls' => (object)$urls, ); } @@ -100,4 +100,4 @@ foreach (Conferences::getActiveConferences() as $conference) } } -echo json_encode($struct, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_FORCE_OBJECT); +echo json_encode($struct, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); diff --git a/view/streams-json-v2.php b/view/streams-json-v2.php index 1fad78f..ede1c4d 100644 --- a/view/streams-json-v2.php +++ b/view/streams-json-v2.php @@ -71,7 +71,7 @@ foreach (Conferences::getActiveConferences() as $conference) 'type' => $stream->getPlayerType(), 'isTranslated' => $stream->isTranslated(), 'videoSize' => $stream->getVideoSize(), - 'urls' => $urls, + 'urls' => (object)$urls, ); } @@ -102,4 +102,4 @@ foreach (Conferences::getActiveConferences() as $conference) ); } -echo json_encode($struct, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_FORCE_OBJECT); +echo json_encode($struct, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); |