Search  

MINI FLV PLAYER (AS2.0)

HomeBrowse CategoriesFlashApplications and UtilitiesMini FLV Player (AS2.0)
Full_screen_preview

Modified as of April 12th 2008, if you downloaded it by now, please re-download – there was only a small fix for the fullscreen mode

I’ve put a lot of work into this player. I’ve experimented with quite a few interface designs looking for the right minimalist design that looks good, yet it integrates with any page design; that has a lot of features, yet it’s easy for everyone to use. This is what I’ve come up with.

Features (short version):
  • XML driven
  • Can override default xml path for multiple players on a single page
  • Fully resizable (mantains aspect ratio)
  • Just drag’n’drop in your own project
  • Fullscreen support
  • You can set to auto-play (or not)
  • Supports HD videos
  • Seekbar autohide option (can select number of seconds of inactivity for this feature
  • Logo placeholder
  • Control video smoothing from xml
Main features (long version):
  • XML driven
  • In case you have more than one player on your page and you wish to assign each one a different video, you can assign each one it’s separate xml file ( by setting the
    so.addVariable("VideoXmlPath","path/to/my.xml");

    variable when embedding the player, you can override the default path that the player looks for -> videodata.xml)

  • Resizable at any dimensions you wish from javascript (the same .swf you can use as 320×240 or 800×600, you don’t need Adobe Flash to resize it – just resize It when embedding in the html page like:
    so = new SWFObject("simplevideoplayer.swf", "sotester",
    "[desired width]", "[desired height]", "9,0,115", "#000000");

  • It doesn’t reference _root in any way so it’s safe to use it in your own projects. Also, it’s contained in a single MovieClip in the original project so it’s as easy as drag’n’drop. Also, when embedding, you can specify to take an exact size and not Stage width and height as default.
  • If you’re using the video player in your own project, you can defer using xml and just create an object (called VideoAsset) and pass it to the player to play.
  • High Definition videos are supported (any video encoded with H.264 codec -> mov, mp4, flv)
  • The movie keeps it’s aspect ratio no matter what size the player is (you can see this in the example page on flashden)
  • Fullscreen support
  • Autoplay on/off support (the movie starts automatically after it loads if it’s ON, and displays the play button & first screen image if it s OFF )
  • First screen image support (when autoplay is OFF , it appears centered/stretched)
  • Logo holder
  • You can control if/when the seekbar autohides (n seconds of user inactivity)
  • You can control video smoothing (when resizing a video, if the video smoothing is disabled, the movie looks pixilated, but then again, if the movie is very high res and when resized for fullscreen it might make the movie run at a slower framerate because smoothing uses CPU , this switch gives you the ability to choose the best solution for you)
  • You can set the background color when embedding the player with SWFObject (the last parameter is the background color of the flash object)



If you are interested in a more full-featured player complete with Deep Linking and Ad System, you might want to check out:


Posted 6 months ago

A real pro! Great job.

Posted 6 months ago

Nice presentation!

Posted 6 months ago

Thanks! It took me a few tries to get that one right… And it’s still a little rough. I’d do a lot of these video tutorials for users who are not as experienced as us trepn, but i don’t have where to place them. It would be cool to have a personal page, or tutorials section on FD…

Posted 6 months ago

Why not set up your own site? one.com offers hosting (unlimited traffic, fair use) for only € 30,- a year. I’ll be willing to contribute.

Posted 6 months ago

I do have one, alexpica.com on ixwebhosting.com with practically unlimited bandwidth and storage, but who’s going to find them? On FD there’s serious trafic. Money is no issue, but thank you very much for considering that.

Posted 6 months ago

I am going to give it a lot of thought though… it might be a good idea. Thank you for that.

Posted 6 months ago

nice file here

Posted 6 months ago

i got 1 problem, when i use it, inside another swf, how do i change the size? because the player gets the size of the swf, so its like full screen, and i needit little.

sorry im a newbie

Posted 5 months ago

One more thing, i didn’t tried with another movie, i i got one .mov and there’s no sound, how can i fix this?

hope you can help

Thanks

Posted 5 months ago
if you look in main.as, in the root directory of your project you will this line

this.Init();

just use

this.Init(400,400);

replace 400 and 400 with actual width and height you desire.

As for the sound issue, i think it might be from your project. By default the player leaves the sound of the movie at it’s default volume.

Posted 5 months ago

Flv player great , but please can anyone give me swf withouth LOGO ?

Posted 4 months ago

And please , its possible to disable seekbar ?

Posted 4 months ago

You just have to go into the player, open the “SimpleVideoPlayerObject” MovieClip, and you will see the “Logo” layer. Delete that layer to get rid of the logo, although i think it would be a good idea to replace it with your own logo.

I’m not sure what you mean by disabling seekbar, but if you mean removing the hiding feature, you just have to set seekbar_autohide_delay to 0 in the videodata.xml file. Like this:

<setting name="seekbar_autohide_delay" value="0"/>
Posted 4 months ago

Great player by the way, however I have a question…. When i use: so.addVariable(“VideoXmlPath”,”path/to/my.xml”;); I obviously get the video defined in the XML loaded and ready to play. However, I am writing this player into a component for my Joomla site and I need to get it to read XML output from a php file.

Getting the headers to come out are fine, and the output of the php is identical to the XML file (including headers) however the player doesn’t load the XML output and hence cannot play. Is there a way this can be changed or fixed?

E.G using: so.addVariable(“VideoXmlPath”,”/index.php?playlist=my”;); instead of so.addVariable(“VideoXmlPath”,”path/to/my.xml”;);

Posted 4 months ago

It should work as you said without any problems, as long as you pass the right headers. It doesn’t parse the url in any way before trying to access it. Could you paste me a link to a generated XML (e.g. www.yourdomain.com/index.php?playlist=my”;).?

Posted 4 months ago

Hi, I can not open the .fla file. “Unexpected format file” error appears. Im using Flash 8

Posted 3 months ago

This player uses some html command or it’s just configure the xml and execute the swt that will work?

Posted 3 months ago

just configure the xml. You have some flashVars you can set up in the html to change some stuff @see">(@see documentation) but by default it just works with the xml.

Posted 3 months ago

Hello- Looking to embed this into an XML /Flash template driven by a SWF call to more flexibly play video, especially MOV format. Beyond the videodata.xml file, how might I control size and scale of the video asset on playback? The template I’m using is ….XML Portfolio Template V1 and I can’t seem to connect the dots… playback works but I need to adjust scale of object it seems.

Sorry I’m new to much of this.

Posted 3 months ago

Hey,

To bascially init the player, you have to call the Init method. To resize the player at your specific dimensions just call:

  this.Init(400,400); //replace 400, 400 with your specific width and height
Posted 3 months ago

can this play videos from YouTube?

Posted 2 months ago