aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/watch.html
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2020-06-28 17:52:24 -0700
committerJames Taylor <user234683@users.noreply.github.com>2020-06-28 17:52:24 -0700
commitaa3e5aa441b79a471f96080501c114fd9ad34ba5 (patch)
treea4cb033365f495b3d328c6b41e0273d2399f3b57 /youtube/templates/watch.html
parent6e14a8547d05cf02ad72e8415f70072bdf599212 (diff)
downloadyt-local-aa3e5aa441b79a471f96080501c114fd9ad34ba5.tar.lz
yt-local-aa3e5aa441b79a471f96080501c114fd9ad34ba5.tar.xz
yt-local-aa3e5aa441b79a471f96080501c114fd9ad34ba5.zip
Add dialog for copying urls to external player for livestreams
Also for livestreams which are over whose other sources aren't present or aren't ready yet.
Diffstat (limited to 'youtube/templates/watch.html')
-rw-r--r--youtube/templates/watch.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html
index c722115..04f963d 100644
--- a/youtube/templates/watch.html
+++ b/youtube/templates/watch.html
@@ -27,6 +27,27 @@
transform: translate(-50%, -50%);
}
+ .live-url-choices{
+ height: 360px;
+ width: 640px;
+ grid-column: 2;
+ background-color: var(--video-background-color);
+ padding: 25px 0px 0px 25px;
+ }
+ .live-url-choices ol{
+ list-style: none;
+ padding:0px;
+ margin:0px;
+ margin-top: 15px;
+ }
+ .live-url-choices input{
+ width: 400px;
+ }
+ .url-choice-label{
+ display: inline-block;
+ width: 150px;
+ }
+
{% if theater_mode %}
video{
grid-column: 1 / span 5;
@@ -296,6 +317,15 @@ Reload without invidious (for usage of new identity button).</a>
{% endif %}
</span>
</div>
+ {% elif (video_sources.__len__() == 0 or live) and hls_formats.__len__() != 0 %}
+ <div class="live-url-choices">
+ <span>Copy a url into your video player:</span>
+ <ol>
+ {% for fmt in hls_formats %}
+ <li class="url-choice"><div class="url-choice-label">{{ fmt['video_quality'] }}: </div><input class="url-choice-copy" value="{{ fmt['url'] }}" readonly onclick="this.select();"></li>
+ {% endfor %}
+ </ol>
+ </div>
{% else %}
<video controls autofocus class="video">
{% for video_source in video_sources %}