Child pages
  • Welcome to The VistA Extensions Hub2-28

Header Text

Skip to end of metadata
Go to start of metadata

## Macro title: HTML5 Video
## Macro has a body: N
##
## Output: HTML
##
## Developed by: David Simpson <david@davidsimpson.me>
## Date created: dd/mm/yyyy
## Installed by: My Name
##
## @param width:title=Width|type=string|required=false|desc=Video width
## @param height:title=Height|type=string|required=false|desc=Video height
## @param poster:title=Poster|type=string|required=false|desc=Set a placeholder image
## @param src:title=Source|type=string|required=true|desc=Attached video filename
##
## Tested on Google Chrome and Safari using mp4 files
## Does not work for mp4s on Firefox as Mozilla does not support mp4 files - lame
## Fail-back to Flash/Flow Player for old browsers -- Tested on Internet Explorer 8
##
## Usage: {html5video:src=myvideo.mp4|width=600|height=400}

#set ($attachment = $content.getAttachmentNamed($paramsrc)) 

<video controls="controls" 
	#if ($paramwidth)  width="$paramwidth"   #end
	#if ($paramheight) height="$paramheight" #end
	#if ($paramposter) poster="$paramposter" #end ## Set a placeholder image for the video
	>
	<source type="video/$attachment.getFileExtension()" src="$attachment.getDownloadPath()" />
	<object type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf"
		#if ($paramwidth)  width="$paramwidth"   #else width="640"  #end
		#if ($paramheight) height="$paramheight" #else height="360" #end
		>
		<param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" />
		<param name="allowFullScreen" value="true" />
		<param name="wmode" value="transparent" />
		<param name="flashVars" value="config={'playlist':[{'url':'$generalUtil.urlEncode("$action.getGlobalSettings().getBaseUrl()${attachment.getDownloadPath()}")','autoPlay':false}]}" />
		<span title="No video playback capabilities, please download the video below"></span>
	</object>
</video>
<p>
	<strong>Download video:</strong> <a href="$attachment.getDownloadPath()">$attachment.getFileExtension() format</a>
</p>

<script>
	## Remove the Firefox lameness and revert to the Flow Player embed
	if (jQuery.browser.mozilla) jQuery('source[type="video/mp4"]').unwrap();
</script>

## Big props to: http://sandbox.thewikies.com/vfe-generator/ 
## In response to: https://answers.atlassian.com/questions/171822/embedding-mp4-movie-screen-size

               


Latest News

VistA CAC/HIS User Group

The latest vxVistA release is available. Download it today!

 

 

New Extensions and Tools Added -  

 Mental Health Suite Products | DSS Patient Search Tool | PIMS EWD GTIVistA V1.0 | Axiom | VistACom&CCR | HealtheMe | Extensible M | MDWS port to Mono | Automated VistA Installation using Vagrant |GTI Practice Management | vxPatient Picture | vxImmunizations

 VistA Communities: 

vxVistA - OSEHRA - WorldVistA - OpenVistA - Underground Railroad Award

VistA Related Blog Posts

Blog stream

Create a blog post to share news and announcements with your team and company.

Upcoming Events

VistA Community Meeting

May 23, 2016

Days
Hours
Minutes
Seconds

 

 

 

 

  1. EDIT THE CALENDAR

    Customise the different types of events you'd like to manage in this calendar.

    #legIndex/#totalLegs
  2. RESTRICT THE CALENDAR

    Optionally, restrict who can view or add events to the team calendar.

    #legIndex/#totalLegs
  3. SHARE WITH YOUR TEAM

    Grab the calendar's URL and email it to your team, or paste it on a page to embed the calendar.

    #legIndex/#totalLegs
  4. ADD AN EVENT

    The calendar is ready to go! Click any day on the calendar to add an event or use the Add event button.

    #legIndex/#totalLegs
  5. SUBSCRIBE

    Subscribe to calendars using your favourite calendar client.

    #legIndex/#totalLegs

 

 

Nurturing the next generation of VistA Experts. Don't miss this opportunity!

We just released two recorded webinars created to enhance the experience with the new vxJourney Learning Management System.

As Instructors: Creating online training for your audience and enable learning in The Vista Extensions Hub

As Learners: Online learning within The Vista Extensions Hub 

 

 

Thank You
11 Medals
Life-Saver
2 Medals
Hero of the Day
17 Medals
Busy Bee
5 Medals
Great Time
2 Medals
Genius
4 Medals

Each user has the opportunity to award these medals to other users.
Hero of the Day
Busy Bee
Life-Saver
Genius
Thank You
Time-Saver
Great Time

Medal History
Hero of the Day
Thanks for updating all the add ons
Thank You
For all the great webinars you prepared and presented to the community :) !
Life-Saver
Thanks for supporting our efforts with The VistA Extensions Hub!
Hero of the Day
Thanks for your continuous Support!
Hero of the Day
Thanks for your presentation!
Hero of the Day
Thanks for your presentation!
Hero of the Day
Thanks for your presentation!
Hero of the Day
David, thanks for answering a question!
Thank You
Thanks for helping us with the vxVistA Open Source release
Great Time
Thanks for your perseverance :)
Busy Bee
Restless Warrior
Hero of the Day
Thanks for creating PAIDEIA and donate MUMPS Training to the VistA Community
Hero of the Day
Sam Thanks for preparing the MUMPS Training!
Hero of the Day
thanks for setting up the LMS!
Hero of the Day
Thanks for helping us with The VistA Extension Hub!
Life-Saver
Thanks for helping us with the VistA Extensions Hub. You are going to be a great Content Specialist!
Hero of the Day
Clifton, Thanks for presenting a webinar today!
Hero of the Day
Karen, thanks for presenting a webinar today!
Hero of the Day
thanks for preparing the VistA Training at University at Albany
Thank You
Thanks for Supporting The VistA Extensions Hub
Each user has the opportunity to award these medals to other users.
Hero of the Day
Busy Bee
Life-Saver
Genius
Thank You
Time-Saver
Great Time

  • No labels