intelligent/programmatic detection of sound and play/pause?

DLL Edition of the F-IN-BOX
bvwelch
Posts: 3
Joined: Wed Apr 18, 2007 1:11 pm

intelligent/programmatic detection of sound and play/pause?

Postby bvwelch » Wed Apr 18, 2007 3:41 pm

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

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Thu Apr 19, 2007 8:10 am

Thank you for your questions.

Do you mean that you would like to place the buttons (play, pause and so on) over a movie?
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

bvwelch
Posts: 3
Joined: Wed Apr 18, 2007 1:11 pm

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

Postby bvwelch » Fri Apr 20, 2007 5:23 pm

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

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Fri Apr 20, 2007 6:38 pm

You can create child windows of a f-in-box window with non-rectangle shapes (using regions). What do you think about that?
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html

bvwelch
Posts: 3
Joined: Wed Apr 18, 2007 1:11 pm

Postby bvwelch » Tue Apr 24, 2007 2:55 am

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

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Tue Apr 24, 2007 2:38 pm

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.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html


Return to “DLL Edition”

Who is online

Users browsing this forum: No registered users and 10 guests

cron