Controlling FLV

F-IN-BOX for Delphi / Builder C++ / VCL
softtouch
Posts: 3
Joined: Tue May 06, 2008 4:50 am

Controlling FLV

Postby softtouch » Tue May 06, 2008 4:55 am

I am using currently the flashplayer.swf from the demo in my resource to play flv.

I need to play flv from stream, url and file, but I also need to STOP/PAUSE/RESUME playback anyhow.

I tried the posted flashvideoplayer.swf here from the forum, but it has controls. I do not need controls IN the player itself, I want to control it with buttons. How can I do that???

Also, I need to retrieve anyhow the dimension of the flv movie, to resize properly the delphi form...

Any suggestion?

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

Re: Controlling FLV

Postby Softanics » Tue May 06, 2008 8:22 am

Thank you for your questions.

softtouch wrote:I tried the posted flashvideoplayer.swf here from the forum, but it has controls. I do not need controls IN the player itself, I want to control it with buttons. How can I do that???


To hide controls:

Code: Select all

flashplayercontrol1.SetVariable('ShowControls', 'false');


softtouch wrote:Also, I need to retrieve anyhow the dimension of the flv movie, to resize properly the delphi form...

Any suggestion?


It seems the only way to retrieve dimension is to decode flv format...
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

softtouch
Posts: 3
Joined: Tue May 06, 2008 4:50 am

Postby softtouch » Wed May 07, 2008 2:22 am

This is working, thanks!

Now another question:

I can use 'FLVPlay' and 'FLVPause' to pause / resume the video, but how can I stop it and play it from beginning without reloading?

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

Postby Softanics » Wed May 07, 2008 6:12 am

softtouch wrote:I can use 'FLVPlay' and 'FLVPause' to pause / resume the video, but how can I stop it and play it from beginning without reloading?


Please try:

SetVariable('FLVPosition', '0');
Best regards, Artem A. Razin,

F-IN-BOX support

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

softtouch
Posts: 3
Joined: Tue May 06, 2008 4:50 am

Postby softtouch » Wed May 07, 2008 6:14 am

Softanics wrote:
softtouch wrote:I can use 'FLVPlay' and 'FLVPause' to pause / resume the video, but how can I stop it and play it from beginning without reloading?


Please try:

SetVariable('FLVPosition', '0');


Thank you, will try it.
Is there anywhere a list of variables I can set/use for the FlashVideoPlayer.swf?

I do not have macromedia flash installed, so I can't open the source etc.
I am just a Delphi programmer, not a flash guy...

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

Postby Softanics » Wed May 07, 2008 7:24 pm

softtouch wrote:Is there anywhere a list of variables I can set/use for the FlashVideoPlayer.swf?

I do not have macromedia flash installed, so I can't open the source etc.
I am just a Delphi programmer, not a flash guy...


Right now the only is to explore sample samples\C#\Sample08_Advanced_FLV_Player\ from .NET Edition.

We will include the same example to Delphi Edition soon.
Best regards, Artem A. Razin,

F-IN-BOX support

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


Return to “Delphi / Builder / VCL Edition”

Who is online

Users browsing this forum: No registered users and 16 guests

cron