Skip to content

Commit edfbbc0

Browse files
committed
enhance responsiveness
1 parent 6a8d54f commit edfbbc0

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ APP_ABOUT='Welcome to this app. e-media video streaming'
3232

3333
#x_sendfile_mode configuration
3434
#set the following variable to true, if you want to use webserver to stream file instead of php. But you must [configure your webserver](https://github.com/benIT/e-media/wiki/Webserver) to use it.
35-
USE_X_SENDFILE_MODE=false
35+
USE_X_SENDFILE_MODE=true
3636

3737
#set the following variable to the nginx location for serving large files. [see configure your webserver](https://github.com/benIT/e-media/wiki/Webserver)
3838
NGINX_LOCATION_X_SEND_FILE=stream-files

app/Resources/views/home/index.html.twig

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
{% if latestVideos %}
1010
<h2><span class="slabtext">{% trans %}lastest_videos{% endtrans %}</span></h2>
1111
{% for video in latestVideos %}
12-
<div class="col-md-4">
12+
<div class="col-md-4 col-sm-4">
1313
<em><a href="{{ path('video_show', {'id':video.id}) }}">{{ video.title |slice(0,20)}}</a></em>
14-
<video id="my-video" class="video-js" controls preload="none" width="200px"
14+
<video id="my-video" class="video-js js-default-skin vjs-16-9" controls preload="none" width="200px"
1515
poster="{{ asset('assets/dist/image/video-poster.png') }}"
1616
data-setup="{}">
1717
<source src="{{ path('video_download',{'id':video.id}) }}" type='video/mp4'>

app/Resources/views/video/show.html.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="row marketing">
66
<div style="background-color: #eceeef;border-radius: 3px; padding: 20px" class="col-lg-12">
77
<p class="lead"> {{ video.description }}</p>
8-
<video id="my-video" class="video-js" controls preload="auto" width="640" height="264"
8+
<video id="my-video" class="video-js js-default-skin vjs-16-9" controls preload="auto" width="640" height="264"
99
poster="{{ asset('assets/dist/image/video-poster.png') }}"
1010
data-setup="{}">
1111
<source src="{{ path('video_download',{'id':video.id}) }}" type='video/mp4'>

src/AppBundle/Tests/Controller/VideoControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class VideoControllerTest extends WebTestCase
99
/*
1010
public function testCompleteScenario()
1111
{
12-
// Create a new client to browse the application
12+
// Create a new client to browse the applicationq
1313
$client = static::createClient();
1414
1515
// Create a new entry in the database

0 commit comments

Comments
 (0)