The new API allows you to load movies via flashVars or XML. Playlist support through the XML method. Keep the amount of code to a minimum of about 10 lines and your code is done. I have posted documentation online of the API for reference here. This version of the documentation will have some small changes coming in the next day or two as the API has been updated since I uploaded the documentation. But the gist of it is correct.
To get your hands on the API, you have to purchase one of my video player products from FlashDen. I know alot of people probably are ready to go to a different page after reading that, but I think its fair for the amount of time I put into creating it. Also it's cheap, only $15. But since I'm a nice guy, I will be releasing a LITE version for free for other to play around with in the next coming weeks, even days actually. SO be on the lookout for that. I will be posting it up here once it's completed.
Here is a small sample of what the code looks like for a completed video player
var vControl:VideoControl = new VideoControl();
var panel:VideoPanel = new VideoPanel(movie, cBar.progress);
var assets:Array = [movie, panel, cBar.playB, cBar.muteB];
movie.addEventListener(Event.COMPLETE, setupMovie);
vControl.setupAssets(assets);
vControl.useXML();
function setupMovie(e:Event):void
{
vControl.setup();
}
This code creates a video player with a mute button, playPause button and progressbar.
Nice right =D
Well I will leave you all with that and some important links.
AS3 XML FlashVar VideoPlayer v1.0 w/ CG VideoPlayer API
kreativeBackground v1 - AS3 Video Background w/ CG VideoPlayer API
kreativeKING ViedoPlayer API Documentation
hello,
ReplyDeletei had a few questions before buying the code...
1. the design is fully customizable correct?
2. on the demo on flash den i did not see the ability to "scrub" or a slider for go back and forth through the video.
3. does it come with all of the as3 classes and the inital design assests?
i'm sorry if the questions seem stupid, but you know like any buyer i need to know ;)
take care,
steve
Hi, I understand, questions are always needed by buyers and I thank you for reaching out for answers.
ReplyDelete1 & 3) Yes the design is completely customizable and up to the buyer. The file on Flash Den do include the design in the preview as well as all of the classes included in the API.
2) I apologize, I didn't activate that feature in the preview,(I will update it today to include that) but you ARE able to scrub using the Seeker, I just didn't apply it to the preview file.
I hope I answered your questions and I thank you for asking them. Feel free to send an email or a comment on the blog and I will get back to you ASAP.
Happy Flashing.
thanks for the quick response! i am going to head over to flash den and purchase it now! i really appreciate the hardwork you put into it! after developing for a few years the value of finding good code that doesnt invlove losing an entire day of work to get in action makes all of the difference in the world.
ReplyDeleteagain thanks for the quick response, i'll post back with my experience as well. (if you're interested anyway ;)
No problem and please do post your results and any other questions related to the API. I plan on making a screencast demonstrating the usage, but I've been backed up lately and should hopefully have it up in the next coming weeks.
ReplyDeleteAlso thanks for the purchase =D. Once you download it, you may want to come back here and download the new XMLLoader class, version 3.0. Is right in the right sidebar on the main page under Free Downloads.
hahaha, i just bought it, opened it and tried to run it. and i got an error about the XMLloader class. just so you know out of the box this what was output:
ReplyDelete---------->
VideoWindow set for VideoControl Object
VideoPanel set for VideoControl Object
PlayPauseButton set for VideoControl Object
MuteButton set for VideoControl Object
Assests are ready...Setup is able to commence
Error: Loading Failed
at com.clementegomez.utils::XMLLoader/::onError()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()
Error: Loading Failed
at com.clementegomez.utils::XMLLoader/::onError()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()
<----------
ill try downloading the new class and see what works.
ok, downloaded. now i've got this:
ReplyDelete------------->
VideoWindow set for VideoControl Object
VideoPanel set for VideoControl Object
PlayPauseButton set for VideoControl Object
MuteButton set for VideoControl Object
Assests are ready...Setup is able to commence
XML file 'videos.xml' could not be loaded and skipped
XML file 'config.xml' could not be loaded and skipped
XML file 'undefined' could not be loaded and skipped
XML file 'undefined' could not be loaded and skipped
<--------------
the files are in their original locations and they have permissions to access the files. is there something i am missing? the only thing i have done is relocate the class files to my default location on my computer where i have all my other classes. does this mean i will have to change the xml file locations in the source code?
Send me your zip that you got from FlashDen, because I just checked and it works on mines. Relocating the classes shouldn't have broken anything. The XML files just need to be in the same directory as the SWF.
ReplyDeleteemail to : me@kreativeking.com
e-mail sent!
ReplyDelete