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 %}
|
|
|
|
<div style="margin-top: 2em;" class="ui one column centered grid">
|
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
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="margin-top: 2em;" class="ui one column center aligned grid">
|
2020-08-05 02:48:59 +05:30
|
|
|
<h2 class="ui header">{{video.title}}</h2></a>
|
2020-07-31 15:58:52 +05:30
|
|
|
</div>
|
|
|
|
|
2020-08-05 02:48:59 +05:30
|
|
|
<div style="margin-top: 2em;" class="ui center aligned grid">
|
|
|
|
<div class="two wide column">
|
2020-08-23 20:57:12 +05:30
|
|
|
<a target="_blank" href="{{ url_for('channel', id=video.channelId)}}" class="ui label">
|
2020-08-05 02:48:59 +05:30
|
|
|
{%if video.author.__len__() > 8%}
|
|
|
|
<i class="user icon"></i> {{video.author[0:10]+'...'}}
|
|
|
|
{%else%}
|
|
|
|
<i class="user icon"></i> {{video.author}}
|
|
|
|
{%endif%}
|
|
|
|
</a>
|
2020-07-31 15:58:52 +05:30
|
|
|
</div>
|
2020-08-05 02:48:59 +05:30
|
|
|
<div class="two wide column">
|
|
|
|
<div class="ui label">
|
|
|
|
<i class="eye icon"></i>{{video.viewCount}}
|
|
|
|
</div>
|
2020-07-31 15:58:52 +05:30
|
|
|
</div>
|
2020-08-05 02:48:59 +05:30
|
|
|
<div class="two wide column">
|
|
|
|
<div class="para-light-grey">
|
|
|
|
<div class="para-green" style="height:12px;width:{{video.averageRating.split(".")[0]}}%"></div>
|
|
|
|
</div>
|
|
|
|
<div class="label"> Rating: {{video.averageRating[0:4]}}% <i class="green thumbs up icon"></i></div>
|
2020-07-31 15:58:52 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-08-05 02:48:59 +05:30
|
|
|
|
|
|
|
|
2020-07-31 15:58:52 +05:30
|
|
|
<div style="margin-top: 2em;" class="ui one column center aligned grid">
|
|
|
|
<div style="margin-bottom: 2em;" class="ui comments">
|
|
|
|
<h3 class="ui dividing header">Description</h3>
|
|
|
|
{{video.description}}
|
|
|
|
</div>
|
|
|
|
</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 %}
|