Post by Phil / September 8th, 2009

AS3 open source VideoPlayer out now!!

We’re proud to announce our first open source project: the Apdev Videoplayer.

Apdev videoplayer

It’s an ActionScript 3.0 script-only videoplayer that we’re releasing under the MIT license. So you can do with it whatever you want – change it, skin it or just tear it apart and use some snippets of our code. It’s up to you.

Another videoplayer you may ask? Well, we know there are lots of them out there. But this is ours and we know, why we’re using it day in day out. It’s easy to understand and therefore easy to use (which leads to “easy to skin”) and creates no big overhead to the rest of your AS3 project. So if you need a flexible AS3 videoplayer (and you don’t have your own yet), have a look at this one. If you already have your own, we would appreciate you sharing your ideas with us.

Some of our player’s features are:

  • play/pause/autoplay
  • seek/scrub
  • change volume
  • fullscreen view
  • preview image
  • resizable
  • supports FLV, MOV, MP4 (h.264), …

And compared to Adobe’s FLVPlayback component our videoplayer super-small in size (11.5K to around 70-80K).

To better understand the videoplayer itself or how it is built, just take a look at the documentaion.

There is also a wrapper class for a player that can easily be embedded into html – embed example.

If you have any questions or even suggestions, don’t hesitate and contact us.

By the way, we’re cleaning up some of our code we have been using for the last years and I’m sure the videoplayer will get some open-source-company very soon ;)

Stay tuned.

1 Trackback

16 Comments

  1. Adrian ParrSeptember 8th, 2009 / 21:16 / #492

    Hi Aron and Philipp,

    Do you have an RSS feed for your blog which I could subscribe to?

    I can’t find a link to one on your homepage.

    Cheers,

    Adrian

  2. PhilSeptember 9th, 2009 / 08:40 / #502

    @adrian
    you can find the feed under: http://apdevblog.com/feed/
    we only added it to the sourcecode because most browsers will then show you the RSS button in the addressbar. but maybe that is not enough ;)

    *** edit ***
    just added the link to the sidebar

  3. Adrian ParrSeptember 9th, 2009 / 09:42 / #504

    Hi Phil,

    Thanks for the RSS link.

    To be honest, I’d never really noticed that RSS button in my Firefox address bar. Now you’ve pointed it out I can’t believe I haven’t used it before! Thanks.

    ;-)

  4. Philip KeiterSeptember 9th, 2009 / 22:03 / #506

    Thanks for sharing! Last month I had to spend 50 hours patching up Flex’s VideoDisplay control. I’m going to try yours ASAP as it should perform better since you started from scratch.

  5. adamSeptember 16th, 2009 / 22:10 / #551

    Is there an event to tell if the video is complete? I couldn’t find one in the source code. Great work this makes life with flash video much easier.

  6. PhilSeptember 17th, 2009 / 09:59 / #558

    @adam
    no, currently not … the videoplayer reacts on the internal event and rewinds the video but it doesn’t pass the event on. we’ll add this in the next release … but with fotb coming up this weekend, there is not so much time ;)

  7. adamSeptember 18th, 2009 / 06:24 / #564

    One other observation if a user clicks on the large play button it doesn’t fire the Toggle_Play_Pause event. This has been very useful. Enjoy FOTB!

  8. PhilSeptember 18th, 2009 / 10:06 / #565

    @adam
    thanks! wrote it down … will also come with the next release.

  9. JulienSeptember 21st, 2009 / 00:34 / #586

    Thank you !
    My wish would be that I can customize the behavior of the volume button, so that I don’t have to drag but only to press (or both), would be more natural :)
    Anyway, thank you for this code !

  10. PhilSeptember 27th, 2009 / 19:24 / #613

    hi guys.
    just uploaded the new version to google-code.
    check it out here: http://apdevblog.com/updated-our-as3-open-source-videoplayer/

    phil

  11. RossieJuly 23rd, 2011 / 10:42 / #1602

    Great player! Thank you very much!

    Btw, classes should contain protected functions instead of private to help create descendants therefore easier to extend functionallity by not changing the original source.
    Anyway it is excellent!

    Gergely Rossel.

  12. PhilJuly 23rd, 2011 / 17:38 / #1603

    good point. will maybe change this in the next days…

  13. EugeneOctober 5th, 2011 / 21:37 / #1625

    Dear Aron! Dear Philipp! Thank You Very Much for Your Work!!! If I refresh a site with the player in Internet Explorer, the player becomes very small. What does it depend on? Could I find a way to get rid of this?…

  14. EugeneOctober 6th, 2011 / 06:41 / #1626

    I mean: “Is there a way to correct this error?”. Thanks in advance!!!…

  15. EugeneOctober 6th, 2011 / 09:09 / #1627

    May be so? /*in Action Script IE Cache Problem umgehen*/
    setTimeout(function () {
    positionen();
    }, 1000);
    But I can’t unfortunately do this by myself…

  16. EugeneOctober 6th, 2011 / 09:13 / #1628

    /*to avoid IE Cache Problem in Action Script*/

Post a comment