Difference between revisions of "Using JWPlayer with Non Flash"

From TMM Wiki
Jump to navigationJump to search
(Created page with "{{CARMA1 Manual | show_video_content_admin_section = true | show_extras_section = true }} '''NOTE:''' If you have not followed our initial set up instructions for JW Player, ...")
 
Line 66: Line 66:
  
 
You would need to add a record for each file extension you intend to play with JW Player that is not an ".MP4" file.
 
You would need to add a record for each file extension you intend to play with JW Player that is not an ".MP4" file.
 +
 +
== Adjust the Code in view_clip ==
 +
 +
== Adding the Player to the Show_Video Template ==

Revision as of 18:14, 10 January 2014

CARMA
Video Content Admin
The Video Content Admin
Adding Content
Video Clips
Out of Order Video Thumbnails
Content Set Locations
Content Set Categories
Video Format
Flash Player
Generate Flash Videos
Using mp4 Videos
Video Content Names
Extras
The Support Admin
Admin Areas
CARMA Home
Pseudo Streaming
Flash Player
Using mp4 Videos
Zipping Content
Third Party Content
X-Sendfile
Xmoov-php
TMMid

NOTE: If you have not followed our initial set up instructions for JW Player, please visit our article Using JWPlayer

Using JW Player With Non-Flash Files

If you are using JW Player with Non-Flash files such as ".MP4" files in CARMA the below changes to your CARMA server and templates will allow these files to be played.

Setting up your CARMA server

JW Player requires direct access to your files if they are not a flash file. To allow for this you will first need to allow access to your CARMA cms_data directory in your site_scripts and tour_script directories. To allow this, you would set up a symbolic link from these directories by running the following commands from the root CARMA directory.

ln -s ../cms_data site_scripts/    
ln -s ../cms_data tour_scripts/    

Once these symbolic links are created you would need to edit the .htaccess file in your cmd_data directory. This file controls access to the files within that directory. When viewing the file you will see that it contains:

Deny all

Update this file to be:

#Deny all
Options -Indexes

This change will allow JW Player to access the files directly when the file information is provided to JW Player

Allowing Psuedo-Streaming With JW Player

Pseudo-Streaming will allow your users to jump to any point in your .MP4 video without the need for the entire file to be loaded

To allow this you would first need to download the "H264" Apache module found at http://h264.code-shop.com/trac/wiki and have it installed on your server.

Setting Handlers in .htaccess

If you are using a file with an extension that is not ".MP4" than you would need to update the .htaccess file in the cms_data directory to have the "H264" Apache Module interpret these files as ".MP4" files. In the .htaccess of your cms_data directory you should see this:

 
#Deny all
Options -Indexes

Update this file to have the following:

#Deny all
Options -Indexes
AddHandler h264-streaming.extensions .mp4 .xxx

Where ".xxx" is the extension that is being used by your files, as an example, if your files are ".m4v" files, the .htaccess file would look like this:

#Deny all
Options -Indexes
AddHandler h264-streaming.extensions .mp4 .m4v

You would need to add a record for each file extension you intend to play with JW Player that is not an ".MP4" file.

Adjust the Code in view_clip

Adding the Player to the Show_Video Template