-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'encode-several-qualities'
- Loading branch information
Showing
16 changed files
with
217 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
encoding: | ||
error: Une erreur d'encodage est survenue | ||
pending: Votre vidéo est en cours d'encodage... patientez quelques instants | ||
no-playlist: Une erreur d'encodage est survenue. Impossible de trouver la liste de lecture | ||
no-playlist: Une erreur d'encodage est survenue. Impossible de trouver la liste de lecture | ||
framesize: | ||
switcher: Choisissez une autre qualité vidéo | ||
720x480: Qualité standard (720x480) | ||
1280x720: Qualité supérieure (1280x720) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{% extends 'base.html.twig' %} | ||
{% trans_default_domain "stream" %} | ||
{% block body %} | ||
<h2>{{ video.title }}</h2> | ||
<div class="row marketing"> | ||
{% if not error %} | ||
<div style="background-color: #eceeef;border-radius: 3px; padding: 20px" class="col-lg-12"> | ||
<p class="lead"> {{ video.description }}</p> | ||
<video id="my-video" class="video-js js-default-skin vjs-16-9" controls width="200px" poster="{{ asset('assets/dist/image/video-poster.png') }}" data-setup="{}"> | ||
<source src="{{ absolute_url(path('stream_download_hls_file',{'id':video.id,'frameSize': frameSize,'file': 'index.m3u8'} )) }}" type="application/x-mpegURL"> | ||
</video> | ||
<form action=""> | ||
<select data-placeholder="{% trans %}framesize.switcher{% endtrans %}" class="form-control chosen-select quality-selector" tabindex="1"> | ||
<option value=""></option> | ||
{% set frameSizes = ['720x480', '1280x720'] %} | ||
{% for frameSize in frameSizes %} | ||
{% if app.request.uri != absolute_url(path('stream_video',{'id':video.id,'frameSize': frameSize} )) %} | ||
{% set label='framesize.'~frameSize|raw %} | ||
<option value="{{ absolute_url(path('stream_video',{'id':video.id,'frameSize': frameSize} )) }}">{{ label|trans }}</option> | ||
{% endif %} | ||
{% endfor %} | ||
</select> | ||
</form> | ||
<a class="btn btn-primary" href="{{ path('video_index') }}">{% trans from "common" %}back{% endtrans %}</a> | ||
{% else %} | ||
<img class="img-centered" src="{{ asset('assets/dist/image/tv-broken.png') }}" width="250px" alt=""> | ||
{% endif %} | ||
</div> | ||
{% endblock %} | ||
|
||
{% block javascripts%} | ||
<script> | ||
$('.quality-selector').on('change', function(evt, params) { | ||
console.log( params.selected); | ||
if(window.location.href !== params.selected){ | ||
window.location= params.selected; | ||
} | ||
}); | ||
{% if error %} | ||
setTimeout(function() { window.location=window.location;},10000); | ||
{% endif %} | ||
</script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.