Skip to content

Commit

Permalink
enhance responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
benIT committed Jan 31, 2018
1 parent 6a8d54f commit edfbbc0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ APP_ABOUT='Welcome to this app. e-media video streaming'

#x_sendfile_mode configuration
#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.
USE_X_SENDFILE_MODE=false
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
Expand Down
4 changes: 2 additions & 2 deletions app/Resources/views/home/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
{% if latestVideos %}
<h2><span class="slabtext">{% trans %}lastest_videos{% endtrans %}</span></h2>
{% for video in latestVideos %}
<div class="col-md-4">
<div class="col-md-4 col-sm-4">
<em><a href="{{ path('video_show', {'id':video.id}) }}">{{ video.title |slice(0,20)}}</a></em>
<video id="my-video" class="video-js" controls preload="none" width="200px"
<video id="my-video" class="video-js js-default-skin vjs-16-9" controls preload="none" width="200px"
poster="{{ asset('assets/dist/image/video-poster.png') }}"
data-setup="{}">
<source src="{{ path('video_download',{'id':video.id}) }}" type='video/mp4'>
Expand Down
2 changes: 1 addition & 1 deletion app/Resources/views/video/show.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="row marketing">
<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" controls preload="auto" width="640" height="264"
<video id="my-video" class="video-js js-default-skin vjs-16-9" controls preload="auto" width="640" height="264"
poster="{{ asset('assets/dist/image/video-poster.png') }}"
data-setup="{}">
<source src="{{ path('video_download',{'id':video.id}) }}" type='video/mp4'>
Expand Down
2 changes: 1 addition & 1 deletion src/AppBundle/Tests/Controller/VideoControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class VideoControllerTest extends WebTestCase
/*
public function testCompleteScenario()
{
// Create a new client to browse the application
// Create a new client to browse the applicationq
$client = static::createClient();
// Create a new entry in the database
Expand Down

0 comments on commit edfbbc0

Please sign in to comment.