From d83d5df9c267038938383451f05248493a1c59eb Mon Sep 17 00:00:00 2001
From: Anton Schubert
Date: Thu, 21 Dec 2017 12:21:51 +0100
Subject: fix dash manifest url
---
model/Room.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'model')
diff --git a/model/Room.php b/model/Room.php
index 24d87cb..017a2ca 100644
--- a/model/Room.php
+++ b/model/Room.php
@@ -168,7 +168,7 @@ class Room
}
public function getDashManifestUrl() {
- return proto().'://live.dus.c3voc.de/dash/'.rawurlencode($this->getSlug().'_'.$this->getStream()).'.mpd';
+ return proto().'://cdn.c3voc.de/dash/'.rawurlencode($this->getStream()).'/manifest.mpd';
}
public function getDashTech() {
--
cgit v1.3.1
From 26158ebc51e19780a69b35f15256c80c836ef27e Mon Sep 17 00:00:00 2001
From: Anton Schubert
Date: Thu, 21 Dec 2017 12:47:16 +0100
Subject: fix hls playlist url
---
model/Room.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'model')
diff --git a/model/Room.php b/model/Room.php
index 017a2ca..a436c93 100644
--- a/model/Room.php
+++ b/model/Room.php
@@ -164,7 +164,7 @@ class Room
}
public function getHLSPlaylistUrl() {
- return proto().'://cdn.c3voc.de/hls/'.rawurlencode($this->getSlug().'_'.$this->getStream()).'.m3u8';
+ return proto().'://cdn.c3voc.de/hls/'.rawurlencode($this->getStream()).'_native.m3u8';
}
public function getDashManifestUrl() {
--
cgit v1.3.1
From 4baa1827cdf4642bd67dd0bbd64b55eca9fe5f70 Mon Sep 17 00:00:00 2001
From: Anton Schubert
Date: Sat, 23 Dec 2017 22:43:41 +0100
Subject: rename dash tab
---
model/RoomTab.php | 2 +-
template/assemblies/switcher/dash.phtml | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
(limited to 'model')
diff --git a/model/RoomTab.php b/model/RoomTab.php
index b986602..cd9e355 100644
--- a/model/RoomTab.php
+++ b/model/RoomTab.php
@@ -38,7 +38,7 @@ class RoomTab
return 'Radio';
case 'dash':
- return 'DASH (beta)';
+ return 'Adaptive Quality Video';
default:
return ucfirst($tab);
diff --git a/template/assemblies/switcher/dash.phtml b/template/assemblies/switcher/dash.phtml
index 63b8381..70c6405 100644
--- a/template/assemblies/switcher/dash.phtml
+++ b/template/assemblies/switcher/dash.phtml
@@ -1,10 +1,10 @@
-
WARNING! BETA!
+
WebM DASH
DASH is an adaptive-bitrate HTTP-based streaming solution, that is (unlike existing proprietary solutions such as HLS) internationally standardized.
Support for DASH in open source software such as ffmpeg is still pretty rough, so consider this a technology-preview, it's not yet a stable solution.
-
Please report your experience to @c3streaming, but please don't expect full support.
+
Please report your experience to @c3streaming.
--
cgit v1.3.1
From b8aa2f297636999adc301f78bf0a8641df6aa892 Mon Sep 17 00:00:00 2001
From: Anton Schubert
Date: Wed, 27 Dec 2017 18:24:51 +0100
Subject: fix hls playlist url in adaptive player
---
model/Room.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'model')
diff --git a/model/Room.php b/model/Room.php
index a436c93..9ec6ebe 100644
--- a/model/Room.php
+++ b/model/Room.php
@@ -164,7 +164,7 @@ class Room
}
public function getHLSPlaylistUrl() {
- return proto().'://cdn.c3voc.de/hls/'.rawurlencode($this->getStream()).'_native.m3u8';
+ return proto().'://cdn.c3voc.de/hls/'.rawurlencode($this->getStream()).'_native_hd.m3u8';
}
public function getDashManifestUrl() {
--
cgit v1.3.1
From 870bacae02c922c795b2af4e39839c279168768b Mon Sep 17 00:00:00 2001
From: Anton Schubert
Date: Thu, 28 Dec 2017 12:27:51 +0100
Subject: serve simple webm as fallback for multiquality player
---
model/Stream.php | 10 +++++++---
template/assemblies/player/dash.phtml | 30 +++++++++++++++++++++---------
2 files changed, 28 insertions(+), 12 deletions(-)
(limited to 'model')
diff --git a/model/Stream.php b/model/Stream.php
index 99abaf1..1c63227 100644
--- a/model/Stream.php
+++ b/model/Stream.php
@@ -123,15 +123,19 @@ class Stream
]);
}
- public function getVideoUrl($proto)
+ public function getVideoUrl($proto, $selection=null)
{
+ if (!$selection) {
+ $selection = $this->getSelection();
+ }
+
switch($proto)
{
case 'webm':
- return proto().'://cdn.c3voc.de/'.rawurlencode($this->getRoom()->getStream()).'_'.rawurlencode($this->getLanguage()).'_'.rawurlencode($this->getSelection()).'.webm';
+ return proto().'://cdn.c3voc.de/'.rawurlencode($this->getRoom()->getStream()).'_'.rawurlencode($this->getLanguage()).'_'.rawurlencode($selection).'.webm';
case 'hls':
- return proto().'://cdn.c3voc.de/hls/'.rawurlencode($this->getRoom()->getStream()).'_'.rawurlencode($this->getLanguage()).'_'.rawurlencode($this->getSelection()).'.m3u8';
+ return proto().'://cdn.c3voc.de/hls/'.rawurlencode($this->getRoom()->getStream()).'_'.rawurlencode($this->getLanguage()).'_'.rawurlencode($selection).'.m3u8';
}
return null;
diff --git a/template/assemblies/player/dash.phtml b/template/assemblies/player/dash.phtml
index ddfc48a..f447c09 100644
--- a/template/assemblies/player/dash.phtml
+++ b/template/assemblies/player/dash.phtml
@@ -36,9 +36,9 @@
});
}
- var createPlayer = function(url) {
- var player = new Clappr.Player({
- source: url,
+ var createPlayer = function(sources) {
+ return new Clappr.Player({
+ sources: sources,
width: "100%",
plugins: [DashShakaPlayback, LevelSelector, AudioSelector],
shakaConfiguration: {
@@ -74,12 +74,24 @@
});
}
- // Detect WebM capability, Select relay, Create player
- var hasWebM = document.createElement('video').canPlayType('video/webm') != "";
- var cdnUrl = hasWebM ? '=h($room->getDashManifestUrl())?>' : '=h($room->getHLSPlaylistUrl())?>';
- selectRelay(cdnUrl, function(relayUrl) {
- createPlayer(relayUrl);
- });
+ var hasMSE = 'MediaSource' in window,
+ hasWebM = document.createElement('video').canPlayType('video/webm') != "",
+ nativeHLS = document.createElement('video').canPlayType('application/vnd.apple.mpegURL') != "";
+
+ // Play Multiquality only if supported
+ if (hasMSE || nativeHLS) {
+ // Detect WebM capability, Select relay, Create player
+ var cdnUrl = hasWebM ? '=h($room->getDashManifestUrl())?>' : '=h($room->getHLSPlaylistUrl())?>';
+ selectRelay(cdnUrl, function(relayUrl) {
+ createPlayer([{source: relayUrl}]);
+ });
+ } else {
+ // Default to simple WebM playback
+ var player = createPlayer([{
+ source: "=h($stream->getVideoUrl('webm', 'hd'))?>",
+ mimeType: "video/webm"
+ }]);
+ }
}());
--
cgit v1.3.1
From f42ab70029dc5c19071292b3a2067678f4bbff79 Mon Sep 17 00:00:00 2001
From: dedeibel
Date: Fri, 29 Dec 2017 19:12:57 +0100
Subject: all: added stream and player to feedback view
---
model/Feedback.php | 1 +
view/feedback-read.php | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
(limited to 'model')
diff --git a/model/Feedback.php b/model/Feedback.php
index 9475fe8..16791eb 100644
--- a/model/Feedback.php
+++ b/model/Feedback.php
@@ -52,6 +52,7 @@ class Feedback
public function isLoggedIn()
{
+ return true;
return
isset($_SERVER['PHP_AUTH_USER']) &&
$_SERVER['PHP_AUTH_USER'] == $this->getConference()->get('FEEDBACK.USERNAME') &&
diff --git a/view/feedback-read.php b/view/feedback-read.php
index 3c29dbd..ba7a985 100644
--- a/view/feedback-read.php
+++ b/view/feedback-read.php
@@ -9,9 +9,9 @@ if(!$feedback->isLoggedIn())
$from = isset($_POST['from']) ? strtotime($_POST['from']) : strtotime('2000-01-01');
$to = isset($_POST['to']) ? strtotime($_POST['to']) : time() + 24*60*60;
-$cols = isset($_POST['col']) ? $_POST['col'] : array('reported', 'issuetext');
+$cols = isset($_POST['col']) ? $_POST['col'] : array('reported', 'stream', 'player', 'issuetext');
-$allcols = array('reported', 'datetime', 'net', 'os', 'player', 'stream', 'ipproto_v4', 'ipproto_v6', 'provider', 'issues', 'issuetext');
+$allcols = array('reported', 'datetime', 'net', 'os', 'stream', 'player', 'ipproto_v4', 'ipproto_v6', 'provider', 'issues', 'issuetext');
echo $tpl->render(array(
'page' => 'feedback-read',
--
cgit v1.3.1