Explorar o código

added multiple live playback rates

Harlan Iverson %!s(int64=7) %!d(string=hai) anos
pai
achega
13002167c6

+ 10 - 0
app/resources/templates/md/pages/live-240p.md

@@ -0,0 +1,10 @@
+{:title "Live"
+ :page-index 100
+ :navbar? false
+ :layout :live
+ :video-thumbnail-url "/media/videos/Random/Sunset_at_Ocean_Beach-wBA6drSk1z0.jpg"
+ :video-url "/hls/ispoogedaily_240/index.m3u8"
+ :video-description "iSpooge.com @240p"
+ }
+
+

+ 10 - 0
app/resources/templates/md/pages/live-360p.md

@@ -0,0 +1,10 @@
+{:title "Live"
+ :page-index 100
+ :navbar? true
+ :layout :live
+ :video-thumbnail-url "/media/videos/Random/Sunset_at_Ocean_Beach-wBA6drSk1z0.jpg"
+ :video-url "/hls/ispoogedaily_360/index.m3u8"
+ :video-description "iSpooge.com @360p"
+ }
+
+

+ 10 - 0
app/resources/templates/md/pages/live-720p.md

@@ -0,0 +1,10 @@
+{:title "Live"
+ :page-index 100
+ :navbar? false
+ :layout :live
+ :video-thumbnail-url "/media/videos/Random/Sunset_at_Ocean_Beach-wBA6drSk1z0.jpg"
+ :video-url "/hls/ispoogedaily_720/index.m3u8"
+ :video-description "iSpooge.com @720p"
+ }
+
+

+ 3 - 14
app/resources/templates/md/pages/live.md

@@ -1,21 +1,10 @@
 {:title "Live"
  :page-index 100
- :navbar? true
+ :navbar? false
  :layout :live
- :video-thumbnail-url "/media/videos/Huel_Break-AYt0HH2AwOc.jpg"
- :video-url "https://ispooge.com/hls/ispoogedaily/index.m3u8"
+ :video-thumbnail-url "/media/videos/Random/Sunset_at_Ocean_Beach-wBA6drSk1z0.jpg"
+ :video-url "/hls/ispoogedaily_360/index.m3u8"
  :video-description "iSpooge.com"
  }
 
 
-## Problems with stream?
-
-We don't have adaptive rate playback for live streams yet. Bug me...
-
-Until then, try our syndicates:
-
-* [Twitch](https://twitch.tv/iSpoogeDaily).
-* or [YouTube Live](https://www.youtube.com/channel/UCUMn9G0yzhQWXiRTOmPLXOg)
-* sometimes [Facebook Live](https://www.facebook.com/ispooge/)
-* rarely [Periscope](https://pscp.tv/iSpoogeDaily)
-

+ 1 - 0
app/resources/templates/themes/ispooge/html/live.html

@@ -37,6 +37,7 @@ var player = videojs('video-player');
 
     {{page.content|safe}}
 
+{% include "/html/partials/live-alternatives.html" %}
 
 </div>
 {% endblock %}

+ 20 - 0
app/resources/templates/themes/ispooge/html/partials/live-alternatives.html

@@ -0,0 +1,20 @@
+<h3> Problems with stream?</h3>
+
+<p>Adaptive playback is new... try these options:</p>
+
+<ul>
+<li><a href="/live-360p.html">360p</a> - Standard def -- wifi, mobile (default)</li>
+<li><a href="/live-720p.html">720p</a> -  High def -- wifi</li>
+<li><a href="/live-240p.html">240p</a> -  Low def -- mobile</li>
+<li><a href="/live.html">adaptive</a> - Chooses a good one (experimental)</li>
+</ul>
+
+
+<p>We also syndicate to:</p>
+
+<ul>
+<li><a href="https://twitch.tv/iSpoogeDaily">Twitch</a></li>
+<li>or <a href="https://www.youtube.com/channel/UCUMn9G0yzhQWXiRTOmPLXOg">YouTube Live</a></li>
+<li>sometimes <a href="https://www.facebook.com/ispooge/">Facebook Live</a></li>
+<li>rarely <a href="https://pscp.tv/iSpoogeDaily">Periscope</a></li>
+</ul>