Search  

UNIVERSALFLVPLAYER

HomeBrowse CategoriesFlashApplications and UtilitiesuniversalFlvPlayer
Full_screen_preview

Universal Flv Player in AS3

universalFlvPlayer is a basic flv video player written in AS3 using Flex Builder. The player is quite straightforward and can be used within any site, implementation requires no actionscript knowledge. Also adjusting the player can be done without touching the actionscript, global settings are stored in a xml file that is used onload. To adjust the player while loaded a Javascript API can be used.

Features:

    fullscreen is not working here on FlashDen, because allowFullScreen is not enabled in HTML
  • Easy implementation
  • Elegant minimal design
  • Flexible Javascript API
  • XML driven alignment
  • Loadprogress indication
  • Fullscreen button
  • Double click fullscreen toggle
  • Mouse hide on fullscreen
  • Controller hide on inactivity
  • Controller lock
  • Volume control
  • Spacebar play/pause toggle
  • Seek with preview

Requirements

Implementation and fine-tuning

  • Adobe Flash Player 9
  • HTML /Javascript Editor
  • Basic HTML knowledge
  • Basic Javascript knowledge
Advanced editing
  • Adobe Flash CS3 (controller graphical adjustment)
  • Adobe Flex Builder (or Eclipse with Flex plugins)
  • Actionscript 3 and OOP knowledge
  • Basic HTML knowledge
  • Basic Javascript knowledge

Javascript controls:

videoHolder
  • playFlv(url) – Play a flv file by URL
  • setDimensions(width,height) – Set new video width and height
  • pause – Pause video
  • resume – Resume video
  • seek(time) – Seek in video (use seconds)
  • volume(value) – Set the volume
controller
  • lock – Lock the controller
  • hide – Hide controller
  • show – Show controller

Wanna make your own Javascript Controlls?

Check out this file:

Important info of non-Flex users

In the example, in order to make it work offline, add the swf to your allowed locations list.

If you would like to compile the player from Flash in stead of Flex download the simpleVideoPlayer.fla

When you do this you wont see any video after hitting the splash image because the flv is normally provided in the Flex generated index.template. So you can either watch it from the example.html (so that it is provided with the flv source) or add an else statement at line 49 in simpleVideoPlayer.as.

That would look like this:

if (root.loaderInfo.parameters.flvSrc!=null) { CanvasManager.videoCanvas.playFlv(root.loaderInfo.parameters.flvSrc); } else { CanvasManager.videoCanvas.playFlv("yourVideo.flv"); }

Other AS3 files by me:

Posted 11 months ago

bello! ;D

Posted 11 months ago

In the example, in order to make it work, add the swf to your allowed locations list

If you would like to compile the player from Flash in stead of Flex download the simpleVideoPlayer.fla

When you do this you wont see any video after hitting the splash image because the flv is normally provided in the Flex generated index.template. So you can either watch it from the example.html (so that it is provided with the flv source) or add an else statement at line 49 in simpleVideoPlayer.as.

That would look like this: if (root.loaderInfo.parameters.flvSrc!=null) { CanvasManager.videoCanvas.playFlv(root.loaderInfo.parameters.flvSrc); } else { CanvasManager.videoCanvas.playFlv("yourVideo.flv"); } Posted 11 months ago

too much it is complicated! I do not know to use it.

:-(

Posted 11 months ago

plz, tell me how you want to use it and what you don’ t get.

Posted 11 months ago

Hei, it is simple to install, only see the exaple.html file. It works well and it is is FINE !

Thank you

Alfonso

Posted 11 months ago

Great File! We need more great Flex/Air and AS3 Flash files on FD like this one.

Bringhurst

Posted 11 months ago

vorrei usarlo su un VIDEO importato in FLASH CS3 .

they are to the first experiences

tanks

Posted 11 months ago

sorry..

I would want to use it on a VIDEO imported in FLASH CS3 ;-)

Posted 11 months ago

Hey Shun,

This videoplayer supports flv (as displayed in example.html), not swf video. I don’t know if that is your problem, if not plz send me an email flashden[at]toybot.nl and describe your problem more detailed.

To all you guys/galls, thank you for purchasing and rating the file!

Posted 11 months ago

hi trepn, iIt is possible to do that the player begins the reprodcucción automatically on having loaded the page?

Thank you very much, i am very happy with your Universal Player

Alfonso

Posted 11 months ago

hei trepn, sorry, the answer for my cuestion it is in the documentation, for to automatic play only dont upload the splash.jpg file. OK:The documentation is very complete.

Congratulations for your videoplayer

Regards,

Alfonso

Posted 11 months ago

Nice player icons.

Posted 11 months ago

i had a question before i purchase this cause till no one knows what im talking about some flv player on some sites hav an advertising movie that plays(flv) before the listed movie plays (flv) . i need to know if i can place a specific movie (flv) as an advertising that will start before my persaonal video plays automatically… if so can you provide the coding , my e-mail is webmaster@bahijproductions..com or djbahij@hotmail.com… by the way i asked this question in a lot of places in FD and no one knows what im talking about or mostly they never respond..

thanks

Posted 10 months ago

trepn,

This file is certainly a great example of top-notch AS3 .

Bringhurst

Posted 10 months ago

Hello There Can You do Me a Huge favor here, I cannot seem to understand how you have compiled this in Flex, Can You send me an example flex project in a .zip? All I need is to see how You have compiled this in flex, Great work! Oh,and one more thing, How much would You charge me to setup a flash vars parameter ,so I can serve up the video via url,or post,etc. Can You please quote me on that, Thanks Brandon Web Tech Host support@webtechhost.net

Posted 10 months ago

Hello?

Posted 10 months ago

Hi,

I am glad I found something in AS3 !

I am already working on an AS2 file and loading multiple flvs into an flv player through xml files. But I am facing the below problem.

I want to load multiple xml files into the same list (container), linked through buttons.

Each xml file has different number of flvs. Now when I load one xml file with 10 flvs and then load 5 flvs through the other list, I can still see 10 flvs in the list instead of 5 new flvs. The list retains the previous bottom 5 flvs and the replaces the top 5 with new flvs. Do you think AS3 will resolve this matter? Would you suggest that your file can be manipulated to do something like this if I buy it? I am not a developer, but do know basic AS2 and AS3 .

Any help will be appreciated.

Thanks.

Posted 9 months ago

Support this player also mp4 video? If not can you provide such one? Please let me know on email: info@conaito.de

Posted 9 months ago

Does the javascript fix the IE 6 /7 problem with active content? (like swfobject?)

Posted 9 months ago

there is a bug in the timeparsing resulting in wrong display of time. Replace the parseTime function in Controller.as with the following to fix this:

private function parseTime(rawTime:Number):String { var seconds:String = String(Math.round(rawTime%60)); var minutes:String = String(Math.floor((rawTime%3600)/60)); var hours:String = String(Math.floor(rawTime/3600)); if(seconds.length == 1){seconds = 0+seconds;} if(minutes.length == 1){minutes = 0+minutes;} if(hours.length == 1){hours = 0+hours;} var time:String = isNaN(rawTime)?"":String(hours+":"+minutes+":"+seconds); return time; } Posted 8 months ago

Hi trepn,

If I purchase, can you add a button to unload the movieclip?

Thank you

Posted 8 months ago

Stunning file Trepn!!!

Posted 5 months ago

Howcome there is no mxml file?

Posted 4 months ago

It is an actionscript project not a Flex project

Posted 3 months ago

Sir would You mind sending me the flex project files? I simple cannot get this to work! I am an actionscript/flex savvy guy too! I tried the actionscript build bath. No Work!

please help Thx Brandon

Posted 3 months ago

Hi nice work does it play F4V ? does it play H.264 mov?

Posted 5 days ago