2020-08-23 00:26:04 +05:30
|
|
|
<head>
|
|
|
|
<link rel="stylesheet" type= "text/css" href="{{ url_for('static',filename='videojs.css') }}">
|
|
|
|
</head>
|
2020-07-31 15:58:52 +05:30
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
2020-08-27 19:34:14 +05:30
|
|
|
<div class="ui text container">
|
2020-08-23 00:26:04 +05:30
|
|
|
<video class="video-js vjs-default-skin"
|
|
|
|
data-setup='{ "playbackRates": [0.5, 1, 1.25,1.5, 2] }'
|
|
|
|
width="720" height="420"
|
|
|
|
controls
|
|
|
|
preload="auto">
|
2020-08-17 01:17:18 +05:30
|
|
|
<source src="/stream?v={{video.id}}" type="video/mp4">
|
2020-08-05 02:48:59 +05:30
|
|
|
</video>
|
2020-07-31 15:58:52 +05:30
|
|
|
|
2020-08-27 19:34:14 +05:30
|
|
|
<div class="ui segments">
|
|
|
|
<div class="ui segment">
|
|
|
|
<h2 class="ui header">{{video.title}}</h2>
|
2020-08-05 02:48:59 +05:30
|
|
|
</div>
|
2020-08-27 19:34:14 +05:30
|
|
|
<div class="ui horizontal segments">
|
|
|
|
<div class="center aligned ui segment">
|
|
|
|
<a target="_blank" href="{{ url_for('channel', id=video.channelId)}}">
|
|
|
|
{%if video.author.__len__() > 8%}
|
|
|
|
<i class="user icon"></i> {{video.author[0:10]+'...'}}
|
|
|
|
{%else%}
|
|
|
|
<i class="user icon"></i> {{video.author}}
|
|
|
|
{%endif%}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="center aligned ui segment">
|
|
|
|
<h4 class="ui header"><i class="grey eye icon"></i>{{video.viewCount}}</h4>
|
|
|
|
</div>
|
|
|
|
<div class="center aligned ui segment">
|
|
|
|
{% if video.averageRating | int > 49 %}
|
|
|
|
<h4 class="ui header"><i class="green thumbs up icon"></i> {{video.averageRating[0:4]}}%</h4>
|
|
|
|
{% else %}
|
|
|
|
<h4 class="ui header"><i class="red thumbs down icon"></i> {{video.averageRating[0:4]}}%</h4>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2020-08-05 02:48:59 +05:30
|
|
|
</div>
|
|
|
|
|
2020-08-27 19:34:14 +05:30
|
|
|
<div class="ui raised segment">
|
|
|
|
<p>{{video.description}}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-07-31 15:58:52 +05:30
|
|
|
</div>
|
2020-08-23 00:26:04 +05:30
|
|
|
<script src="{{ url_for('static',filename='videojs.js') }}"></script>
|
2020-07-31 15:58:52 +05:30
|
|
|
{% endblock %}
|