Re: [FreeJ] Script to load a video is driving me nuts

dyne.org open discussions
Author: Josep Llodrà Grimalt
Date:  
To: FreeJ mailinglist
Subject: Re: [FreeJ] Script to load a video is driving me nuts
Thanks Robin,

got this to work, it was some sort of problem with the avi video file,
switched to mp4 and... voila

:)

On Wed, Nov 25, 2009 at 10:38 AM, Robin Gareus <robin@???> wrote:
> Josep Llodrà Grimalt wrote:
>> Here's my first script, I'm just trying to load a movie.
>> Using freej from command line works, i.e., freej kury.avi,
>> but when I try to load this script, I ONLY get the first frame on the window.
>> So the video is not running.
>> I'm using 0.10.
>>
>> movie = new MovieLayer("kury.avi");
>> movie.start();
>> add_layer(movie);
>>
>> Thanks in advance.
>>
>
> Here's what works for me. I don't recall how 'start()' differs from
> 'activate()' but that may just be what's wrong in your script :)
> or maybe you need 'start(true)' ?!
>
> audio = new AudioJack("freej", 1024, 48000);
> animation_file = "/path/to/file.ogg";
> anim = new MovieLayer(animation_file);
> anim.activate(true)
> add_layer(anim);
> audio.set_layer(anim);
>
> HTH,
> robin
> _______________________________________________
> Freej mailing list
> Freej@???
> http://mailinglists.dyne.org/mailman/listinfo/freej
>




--
Yours sincerely,
Josep Llodrà.