2017-11-24 05:06:43 +01:00
|
|
|
<% title = URI.unescape(video_info["title"].as(String), true) %>
|
|
|
|
<h1><%= title %></h1>
|
|
|
|
<video style="width: 100%" poster="<%= video_info["iurl"] %>" controls>
|
|
|
|
<% video_info["url_encoded_fmt_stream_map"].as(Hash).each do |key, value| %>
|
|
|
|
<% url = value["url"] %>
|
|
|
|
<% type = value["type"]["0"].to_s.split(";")[0] %>
|
|
|
|
<source src="<%= url %>" type="<%= type %>">
|
|
|
|
<% end %>
|
2017-11-23 08:48:55 +01:00
|
|
|
</video>
|
|
|
|
<div class="pure-g">
|
2017-11-24 05:06:43 +01:00
|
|
|
<div class="pure-u-1 pure-u-md-1-5">
|
|
|
|
<p>Likes: <%= likes %></p>
|
|
|
|
<p>Dislikes: <%= dislikes %></p>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1 pure-u-md-3-5"></div>
|
|
|
|
<div class="pure-u-1 pure-u-md-1-5">
|
|
|
|
<p>Views : <%= video_info["view_count"] %></p>
|
|
|
|
<p>Rating : <%= video_info["avg_rating"] %></p>
|
|
|
|
</div>
|
2017-11-23 08:48:55 +01:00
|
|
|
</div>
|