diff --git a/.env b/.env index dd13bd3..613e17e 100644 --- a/.env +++ b/.env @@ -35,7 +35,7 @@ APP_ABOUT='Welcome to this app. e-media video streaming' USE_X_SENDFILE_MODE=true #set the following variable to the nginx location for serving large files. [see configure your webserver](https://github.com/benIT/e-media/wiki/Webserver) -NGINX_LOCATION_X_SEND_FILE=stream-files +NGINX_LOCATION_X_SEND_FILE=/video-xsendfile/ #the name of the hls playlist at format 'm3u8' generated by encoder HLS_PLAYLIST_NAME=index.m3u8 \ No newline at end of file diff --git a/Gruntfile.js b/Gruntfile.js index 9f27099..aa7abf4 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -52,6 +52,7 @@ module.exports = function (grunt) { 'node_modules/chosen-js/chosen.min.css', 'node_modules/slabText/css/slabtext.css', 'node_modules/videosjs-assets/dist/video-js.min.css', + 'node_modules/videojs-qualityselector/dist/videojs-qualityselector.css' ], 'web/assets/dist/css/app.min.css': [ 'web/assets/css/jumbotron-narrow.css', @@ -95,8 +96,8 @@ module.exports = function (grunt) { 'node_modules/videosjs-assets/dist/video.min.js', 'node_modules/slabText/js/jquery.slabtext.js', 'vendor/willdurand/js-translation-bundle/Resources/public/js/translator.min.js', - 'node_modules/videojs-contrib-hls/dist/videojs-contrib-hls.min.js' - + 'node_modules/videojs-contrib-hls/dist/videojs-contrib-hls.min.js', + 'node_modules/videojs-qualityselector/dist/videojs-qualityselector.js', ], dest: 'web/assets/dist/js/vendors.min.js' } diff --git a/app/Resources/translations/stream.fr.yml b/app/Resources/translations/stream.fr.yml index 8ebec62..ff08f5e 100644 --- a/app/Resources/translations/stream.fr.yml +++ b/app/Resources/translations/stream.fr.yml @@ -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 newline at end of file + 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) diff --git a/app/Resources/views/stream/hls.html.twig b/app/Resources/views/stream/hls.html.twig deleted file mode 100644 index f004d53..0000000 --- a/app/Resources/views/stream/hls.html.twig +++ /dev/null @@ -1,29 +0,0 @@ -{% extends 'base.html.twig' %} -{% trans_default_domain "video" %} -{% block body %} -

{{ video.title }}

-
-
-

{{ video.description }}

- {% if not error %} - - {% else %} - - {% endif %} -
- {% trans from "common" %}back{% endtrans %} -{% endblock %} -{% block javascripts%} - -{% endblock %} \ No newline at end of file diff --git a/app/Resources/views/stream/stream.html.twig b/app/Resources/views/stream/stream.html.twig new file mode 100644 index 0000000..515ac6f --- /dev/null +++ b/app/Resources/views/stream/stream.html.twig @@ -0,0 +1,43 @@ +{% extends 'base.html.twig' %} +{% trans_default_domain "stream" %} +{% block body %} +

{{ video.title }}

+
+ {% if not error %} +
+

{{ video.description }}

+ +
+ +
+ {% trans from "common" %}back{% endtrans %} + {% else %} + + {% endif %} +
+{% endblock %} + +{% block javascripts%} + +{% endblock %} \ No newline at end of file diff --git a/app/Resources/views/video/show.html.twig b/app/Resources/views/video/show.html.twig index 935f615..75bd569 100644 --- a/app/Resources/views/video/show.html.twig +++ b/app/Resources/views/video/show.html.twig @@ -1,32 +1,73 @@ {% extends 'base.html.twig' %} {% trans_default_domain "video" %} {% block body %} -

{{ video.title }}

-
-
-

{{ video.description }}

- - {% trans %}index.tag{% endtrans %} - {% for tag in video.tags %} - -
{{ tag.name }}
-
- {% endfor %} - {% trans %} index.created_by{% endtrans %} : {{ video.creator }} + +

Informations

+
+
+
+ {% trans %}index.video_title{% endtrans %} +
+
+ {{ video.title }} +
+
+
+ {% trans %}index.description{% endtrans %} +
+
+ {{ video.description }} +
+
+
+
+ {% trans %}index.tag{% endtrans %} +
+
+ {% for tag in video.tags %} + {{ tag.name }} + {% endfor %} +
+
+
+
+ {% trans %} index.created_by{% endtrans %} +
+ +
+
+
+ {% trans from "common" %}actions{% endtrans %} +
+ +
+
+
+ {% trans %}form_create.file{% endtrans %} +
+
+ - {% trans from "common" %}update{% endtrans %} - - {% trans from "common" %}share{% endtrans %} - +
+
{% trans from "common" %}back{% endtrans %}