Thursday, August 6, 2009

Hd Flash Player With Source

Hd Flash Player With Source

It plays YouTube streaming videos! and any kind of video file that Flash Player supports ( FLV / H.264 encoded video and/or HE-AAC audio such as MP4, M4V, M4A, MOV, Mp4v, F4V). The code is very clean and it's easy to customize the player's design.

H.264 video and/or HE-AAC audio
Supports MPEG-4 standard container files that contain video and audio data encoded using H.264 video and/or HE-AAC audio including MP4, M4V, M4A, MOV, Mp4v, F4V, FLV.

YouTube videos
It plays YouTube streaming videos; all that you need to do is to copy the YouTube address into XML file.

You don't need to worry to reposition the controls, all that you need to do is to place on stage an instance of the VideoPlayer movieclip and the components will reposition automatically.

FullScreen button; you can show/hide FullScreen button from the XML file.

Preview Image
You can set an image for video that will be displayed when the video is stopped and if showPreviewImage = "true"

Big play button in the middle of the video
If you want to display a big play button in the middle on the video, when the video is paussed or stopped, you need to set showMiddlePlayButton = "true"

Link to this video - you can provide a link to the page where you put the video player
Embed this video - it will generate code lines that visitators can use it for embed the player on other sites
Send To A Friend (STAF) - the visitators may send an email to a provided email address; the email can be html and you can edit the template used for this email

Sometimes, when you play a video from another site (i.e. YouTube), it's a good idea to display a watermark; you can find some options in the XML file for watermark.

Space key listener
You can use Space key for play/pause the video.

Click listener
You can click on the video to play/pause the video.

OOP based code, clean and easy for maintenance.

Options set in xml file
autoResize = "true" // if you set this option to true than the player will be displayed on whole stage
playerWidth="" playerHeight="" // use these options if you want to not use whole stage

flv = "video file path goes here"
previewImage = "preview image file path goes here"
stafImage = "image file path that will be used for send to a friend goes here"

autoPlay = "false"
loop = "true"

volume = "50"
controlsPadding = "10"
keepAspectRatio = "true"

showPreviewImage = "true"
showShare = "true"
showFullScreenButton = "true"
showMiddlePlayButton = "true"

spaceKeyListener = "true"
clickListener = "true"

showWatermark = "true"
watermarkPath = "watermark file path goes here"
watermarkLink = "link to the a page when whatermark is pressed goes here"

aspectRatio = "4:3" // you need to use this if metaData is not available and if you want to keep aspect ratio
totalTime = "158" // you need to use this if metaData is not available