Home > english, Programming > An Adobe Air Component for the Vimeo Moogaloop API

An Adobe Air Component for the Vimeo Moogaloop API

September 22nd, 2009 Leave a comment Go to comments

Vimeo Moogaloop API Picture Adobe Air
space50px
I have already mentioned it in an earlier blog post that I am still working on a vimeo component for the Adobe AIR environment. Now I have created version which is stable enough for a intensive testings.  So if you would like to use it for your Air Application, don't hesitate to use it. I would be very happy about some feedback messages from you.

Now I describe some special functionality compared to my FlexVimeo Player component. Because of the incompatible command Security.allowDomain() in the Adobe Air environment  (which is essential for working with the Vimeo Moogaloop API ), I had to create a seperate remote player. This remote player receives control message and send control messages via LocalConnection to the AirVimeoPlayer Component. So if you use my AirVimeoPlayer Component, you must always use my remote_vimeo.swf File for controlling the Vimeo Moogaloop API. It works in the same way as the youTube AS3 API Wrapper.

The other not so nice thing is that I ran in some perfomance issue because of sending to many messages via LocalConnection. So I had to put down the amount of update message for the PlayingState.Playing, but that should not be problem for you. In my cases it works fine.

Otherwise the API of the AirVimeoPlayer is almost the same as the FlexVimeo Player API. So I supported absolutely the same functionaltiy. You can listen to the Events:

space50px
For controlling the User Interface and the Vimeo Video, you can use these functions:

space50px
And the properties of the AirVimeoPlayer are still the same as the FlexVimeoPlayer Component, except the additional property remotePath:String, which defines the url where the remote player is.

space50px
I think this information is enough about this kind of component. You can download the testing vimeo app or the whole vimeo air package, which contains the air installation data and all needed source files.

Download the Vimeo Air Component Package


  1. Gozu
    July 30th, 2010 at 22:03 | #1

    nice component but unfortunately, I don’t succeed to use it with my AIR Application :/ Do you have documentation, tutorial or other like YoutubePlayer : http://code.google.com/intl/fr/apis/youtube/articles/tubeloc.html

    MainChromeless.as :

    public function MainChromeless()
    {
    stage.align = StageAlign.TOP_LEFT;
    stage.scaleMode = StageScaleMode.NO_SCALE;

    youtubeMovie = new VimeoPlayer(13530866, 551 , 310);
    youtubeMovie.addEventListener(VimeoEvent.PLAYER_LOADED, onPlayerReady);
    youtubeMovie.x = 10;
    youtubeMovie.y = 10;
    addChild(youtubeMovie);
    }

    private function onPlayerReady(event_p:VimeoEvent):void
    {
    youtubeMovie.width = 640;
    youtubeMovie.height = 480;
    youtubeMovie.loadVideo(13530866);
    }

    Thx

  2. Gozu
    July 30th, 2010 at 22:06 | #2

    I forgot :

    SecurityError: Error #3207: Application-sandbox content cannot access this feature.
    at flash.system::Security$/allowDomain()
    at de.derhess.video.vimeo::VimeoPlayer()[C:\Users\Gozu\Desktop\AIRProject\src\de\derhess\video\vimeo\VimeoPlayer.as:46]

  3. admin
    September 2nd, 2010 at 14:40 | #3

    Hi Gozu,

    sorry for my late response. I was on a long holiday trip. The vimeo team has changed some stuff on the vimeo API. So I don’t know what is the exact problem. In Flex & Air I created a special component for avoiding some Sandbox Problems…. Maybe you should check these code snippets and classes:

    Vimeo Air Application Code:
    http://code.google.com/p/derhess/source/browse/trunk/AS3/de/derhess/projects/air_vimeo_player/test_app_air_vimeo.mxml

    VimeoAir Component in Flex:
    http://code.google.com/p/derhess/source/browse/trunk/AS3/de/derhess/video/vimeo/AirVimeoPlayer.mxml

    I hope that helps…

  4. gr4
    November 29th, 2011 at 20:10 | #4

    @admin
    Hi, is there (after years as i see) any chance to run vimeo player on adobe air build in flash cs5 ?

    Vimeo api for as3 still doesn’t work because of System.allowDomain issue…

    SecurityError: Error #3207: Application-sandbox content cannot access this feature. at flash.system::Security$/allowDomain()

    Can somebody help with this nightmare ?

  1. No trackbacks yet.