Page 1 of 1

intelligent/programmatic detection of sound and play/pause?

Posted: Wed Apr 18, 2007 3:41 pm
by bvwelch
Greetings,

I've been evaluating the DLL edition of f-in-box, and I'm impressed.

However, I've run into a problem. I need to support some swf files supplied by a third party. Some of these have other swf and/or flv inside. Others are mostly static. Some have sound, some do not.

Is there a way to "intelligently" (programmatically) display buttons/controls for play/pause and also sound controls?

You might think it would be harmless to show the controls all the time, but in fact, in some cases, like with flashpaper swf, trying to "pause" them causes the swf to go crazy and produces wierd displays.

Thank you.

bvwelch

Posted: Thu Apr 19, 2007 8:10 am
by Softanics
Thank you for your questions.

Do you mean that you would like to place the buttons (play, pause and so on) over a movie?

Re: intelligent/programmatic detection of sound and play/pau

Posted: Fri Apr 20, 2007 5:23 pm
by bvwelch
bvwelch wrote:
Is there a way to "intelligently" (programmatically) display buttons/controls for play/pause and also sound controls?

You might think it would be harmless to show the controls all the time, but in fact, in some cases, like with flashpaper swf, trying to "pause" them causes the swf to go crazy and produces wierd displays.



The buttons are in a different window, separate from the flash window.

I'd like to intelligently enable/disable the buttons based on the current flash.

Sending FPCM_PLAY and FPCM_STOP messages to a FlashPaper swf makes the display go crazy.

And displaying a volume control when a swf has no sound, just looks dumb.

Thanks for any ideas!

bvwelch

Posted: Fri Apr 20, 2007 6:38 pm
by Softanics
You can create child windows of a f-in-box window with non-rectangle shapes (using regions). What do you think about that?

Posted: Tue Apr 24, 2007 2:55 am
by bvwelch
Greetings,

I don't seem to be making myself understood.

Is there any way I can find out if a given swf has sound or not?

I don't want to display a "volume control" button for a swf that doesn't have sound anyway.

Likewise, is there any way I can find out if a given swf can be "paused" and then resumed? For example, a "movie" can be "paused" and "resumed", but a still picture, or a swf which was made by a "print to swf" program such as "flashpaper", cannot be paused.

I don't want to display a "pause" button for a swf that cannot be paused.

thank you,

bvwelch

Posted: Tue Apr 24, 2007 2:38 pm
by Softanics
bvwelch wrote:Is there any way I can find out if a given swf has sound or not?


As soon as I know there is no any way to detect it.