summaryrefslogtreecommitdiffstats
path: root/views/watch.ecr
diff options
context:
space:
mode:
Diffstat (limited to 'views/watch.ecr')
-rw-r--r--views/watch.ecr15
1 files changed, 15 insertions, 0 deletions
diff --git a/views/watch.ecr b/views/watch.ecr
new file mode 100644
index 00000000..e46cf77c
--- /dev/null
+++ b/views/watch.ecr
@@ -0,0 +1,15 @@
+<h1><%= URI.unescape(video_info["title"].to_s,true) %></h1>
+<video style="width: 100%" poster="<%= video_info["iurlmq"] %>" controls>
+ <% fmt_stream.each do |fmt| %>
+ <source src="<%= fmt["url"] %>" type="<%= fmt["type"].to_s.split(";")[0] %>">
+ <% end %>
+</video>
+<div class="pure-g">
+<div class="pure-u-1 pure-u-md-1-5"></div>
+<div class="pure-u-1 pure-u-md-3-5">
+<% fmt_stream.each do |fmt| %>
+<p><%= fmt["quality"] %></p>
+<% end %>
+</div>
+<div class="pure-u-1 pure-u-md-1-5"></div>
+</div> \ No newline at end of file