I definitely need a lecture about event handling in Freevo (if someone
is kind enough to explain this to me).

When playing movies (stored on the HDD, so no media-not-found problem
involved here) from a FXD file, I have the following structure:

DirItem (where from I start the playing)
  VideoItem_A (represents the thing I want to play)
    VideoItem_B (variant[0])
      VideoItem_C (file 1 in the variant)
      VideoItem_D (file 2 in the variant)

I designed the FXD so that "file 1" does not exist. So when the
VideoItem_C calls self.player.play(), the player returns an error
message, and VideoItem_C calls rc.post_event(PLAY_END).

This event is seen in the enventhandler of VideoItem_A, which passes it
to its parent (DirItem). But when the playing works properly (i.e. the
filename does exist), the player returns also a PLAY_END, but this one
is caught by VideoItem_B (which then starts to play VideoItem_D, which
is exactly what I expect).

So the big question is: who decides what eventhandler receives what
event? howcome the the PLAY_END is received by A and not by B in case
of an error?

Thanks for all help you can bring me.

Matthieu
-- 
 (~._.~)        Matthieu Weber - Université de Jyväskylä         (~._.~)
  ( ? )                email : [EMAIL PROTECTED]                  ( ? ) 
 ()- -()               public key id : 452AE0AD                  ()- -()
 (_)-(_)  "Humor ist, wenn man trotzdem lacht (Germain Muller)"  (_)-(_)


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to