Newest Articles

MegaCombs
Flash Media Player
XML Driven Pie Chart
Base Defender
Hangman Game
8 Ball Pool


Popular Articles

3d Rotating Image Cube
True Fullscreen Flash Mode
Mp3 Player with XML Playlist
Infinitely Zooming Image
Catapult Game
Hangman Game


Random Articles

Image Slider
Image Color Tinting using Actionscript
Catapult Game
XML Driven Pie Chart
Space Shooter Game
Custom Right Click Menu


Links

Foundation-Flash
Reddit
Newgrounds
TWiT
Link to SwfSpot
Swf Spot

Contact me on Google+



rss feed

FLV Player

FLV Player
AddThis Social Bookmark Button
Description: FLV player allows users to input .flv urls to play
Author: John Bezanis
Added: October 19th 2007
Version: Flash 8


This FLV player allows users to input .flv urls to play. The source fla has line by line commenting explaining what is going on. The xhtml code of the embedded applet can be changed to allow a specified movie to load by default. The xhtml code is shown below with the blue text. If no default video is selected, a box pops up prompting the user to enter a flv to play.
Features of the player:
  • Fullscreen option
  • full volume control
  • ability to open another video
  • timer showing current progress as well as the video's length
  • progress slider that scales on player resize
  • progress slider shows percentage loaded
  • arrow keys allow user to update the volume, as well as the current play position
  • playpause button with alternating graphics
  • videos scale to fit the player at the best dimensions
  • control bar disappears after no mouse movement is detected after a set amount of time
  • customized right click menu
XHTML code with a starting video and autoplay specified:
<object data="http://www.bezzmedia.com/swfspot/resources/37-flvplayer.swf?video=http://www.helpexamples.com/flash/video/typing_short.flv&startvolume=100&autoplay=true"
type="application/x-shockwave-flash" width="480" height="360" >
<param name="movie" value="http://www.bezzmedia.com/swfspot/resources/37-flvplayer.swf?video=http://www.helpexamples.com/flash/video/typing_short.flv&startvolume=100&autoplay=true" />
<param name="allowfullscreen" value="true"/>
</object>
The starting video and starting volume are specified with the blue code.

XHTML code with no default video specified:
<object data="http://www.bezzmedia.com/swfspot/resources/37-flvplayer.swf"
type="application/x-shockwave-flash" width="480" height="360" >
<param name="movie" value="http://www.bezzmedia.com/swfspot/resources/37-flvplayer.swf" />
<param name="allowfullscreen" value="true"/>
</object>

Download the source file below:

Download Source File
Download The Built .swf
Comments Currently Disabled