Using JWPlayer for HTML5 (for IPad) with Flash as a fallback with AVPlayer
Posted: Tue Nov 23, 2010 2:47 am
				
				I have recieved quite a few request for IPad support in AVPlayer, so
Since JW Player has started to support HTML5 and video can be presented for the IPad/Iphone and Ipod as well as using Flash for a fallback for other Browsers , I thought I would setup a new "Player" for AVPlayer (http://dev.cmsmadesimple.org/projects/avplayer)
1.Download the new JW Player : http://www.longtailvideo.com/players/jw-flv-player/
2.Upload it to your webserver somewhere like "uploads/jwplayer
3.Add it as a "player" in avplayer.
4.Too add parameters, see: http://www.longtailvideo.com/support/jw ... tup-wizard
Optional:
Download skins for JW Player here: http://www.longtailvideo.com/addons/skins
And add the skin as a parameter, IE: &skin=uploads/jwplayer/skins/beelden.zip
in AVPlayer (prior to 1.3) as a final_template :
in AVPlayer 1.3 final template:
the above template is making use of the "Userdefined1" field to hold the name of the skin.
Using the MP4 file format, this has been tested to work with: IE8,Firefox 3.08, Ipad,IPod,IPhone.
for other browsers refer to : http://camendesign.com/code/video_for_e ... /test.html
I have uploaded a "how to" pdf in the AVPlayer file area.
sorry I should have mentioned: This has been tested on CMSMS version 1.8.6 and version 1.9
			Since JW Player has started to support HTML5 and video can be presented for the IPad/Iphone and Ipod as well as using Flash for a fallback for other Browsers , I thought I would setup a new "Player" for AVPlayer (http://dev.cmsmadesimple.org/projects/avplayer)
1.Download the new JW Player : http://www.longtailvideo.com/players/jw-flv-player/
2.Upload it to your webserver somewhere like "uploads/jwplayer
3.Add it as a "player" in avplayer.
4.Too add parameters, see: http://www.longtailvideo.com/support/jw ... tup-wizard
Optional:
Download skins for JW Player here: http://www.longtailvideo.com/addons/skins
And add the skin as a parameter, IE: &skin=uploads/jwplayer/skins/beelden.zip
in AVPlayer (prior to 1.3) as a final_template :
Code: Select all
<video
    src="{root_url}/uploads{$item->mediafile}"
    height="{$item->parent_object->height}"
   width="{$item->parent_object->width}"
    id="container"
    poster="{root_url}/uploads{$item->picture}"
    skin="{root_url}/uploads/jwplayer/skins/beelden.zip" >
   <!-- flash fallback -->
   <embed
   src="{root_url}/{$item->parent_object->location}" 
   width="{$item->parent_object->width}"
   height="{$item->parent_object->height}"
   allowscriptaccess="always"
   allowfullscreen="true"
   id="player1"
   name="player1"
   flashvars="file={root_url}/uploads{$item->mediafile}{$item->parent_object->parameters}"/>
</video>
Code: Select all
{if $item->parent_object->userdefined1_namevalue!=""}
{assign var="skin" value="uploads/jwplayer/skins/"}
{/if}
<video controls width="{$item->parent_object->width}"
height="{$item->parent_object->height}"
poster="uploads{$item->picture->filepath}"
skin="{$skin}{$item->parent_object->userdefined1_namevalue}">  
<source src="{root_url}/uploads{$item->mediafile->filepath}" type="video/mp4" />  
<!--flash fallback -->
<embed
   src="{$item->parent_object->location}" 
   width="{$item->parent_object->width}"
   height="{$item->parent_object->height}"
   allowscriptaccess="always"
   allowfullscreen="true"
   id="player1"
   name="player1"
   flashvars="file={root_url}/uploads{$item->mediafile->filepath}{$item->parent_object->parameters}&skin={root_url}/{$skin}{$item->parent_object->userdefined1_namevalue}"/>
 </video>  
Using the MP4 file format, this has been tested to work with: IE8,Firefox 3.08, Ipad,IPod,IPhone.
for other browsers refer to : http://camendesign.com/code/video_for_e ... /test.html
I have uploaded a "how to" pdf in the AVPlayer file area.
sorry I should have mentioned: This has been tested on CMSMS version 1.8.6 and version 1.9
