Pausing & stopping flv playback from stream

.NET Edition of the F-IN-BOX
keith jeram
Posts: 6
Joined: Wed Jan 09, 2008 4:03 pm

Pausing & stopping flv playback from stream

Postby keith jeram » Fri Jan 11, 2008 3:50 pm

Hi

You told me how to load an flv video directly from a memory stream, and it works very well. I now want to be able to pause/stop the video.

I appreaciate that it cannot be done using FlashMethod_Stop and I have been trying to do it as shown in Sample8_Advanced_FLV_Player, but I cannot get it to work, although I have copied the code there. Also I have not been able to expose the Play/Pause controls shown in that example, but I don't really want to show these controls, just to control the video from code.

Any help would be appreciated.

Keith

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

Postby Softanics » Fri Jan 11, 2008 6:00 pm

Thank you for your question.

FlashMethod_Stop doesn't work as exprected, because the movie has only single frame.

Please see this reply:
http://www.f-in-box.com/forum/viewtopic.php?p=1543#1543
and download files as wrote in the reply.

To play / pause use:

Code: Select all

FlashMethod_SetProperty("flv_pause", "any_value_here");
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

keith jeram
Posts: 6
Joined: Wed Jan 09, 2008 4:03 pm

Stopping/Pausing flv video loaded from memory stream in .net

Postby keith jeram » Mon Jan 14, 2008 8:39 am

But I cannot find the method FlashMethod_SetProperty.

It is not available in code and is not listed in F-in-box Help. Do you mean FlashMethod_TSetProperty, if so what are the parameters? There is no information in F-in-Box Help about using these methods.

I have been trying again but cannot stop/pause an flv video loaded from memory stream in C# .net. The forum reply referenced in http://www.f-in-box.com/forum/viewtopic.php?p=1543#1543 is not very helpful as it refers to Delphi.

A sample showing how to control an flv video that has been loaded from a memory stream using PutMovieFromStream would be very helpful.

Keith

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

Re: Stopping/Pausing flv video loaded from memory stream in

Postby Softanics » Mon Jan 14, 2008 3:04 pm

keith jeram wrote:But I cannot find the method FlashMethod_SetProperty.

It is not available in code and is not listed in F-in-box Help. Do you mean FlashMethod_TSetProperty, if so what are the parameters? There is no information in F-in-Box Help about using these methods.


Sorry... I mean FlashMethod_SetVariable...

keith jeram wrote:I have been trying again but cannot stop/pause an flv video loaded from memory stream in C# .net. The forum reply referenced in http://www.f-in-box.com/forum/viewtopic.php?p=1543#1543 is not very helpful as it refers to Delphi.

A sample showing how to control an flv video that has been loaded from a memory stream using PutMovieFromStream would be very helpful.


OK. I'll prepare it soon.
Best regards, Artem A. Razin,

F-IN-BOX support

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

keith jeram
Posts: 6
Joined: Wed Jan 09, 2008 4:03 pm

Pausing and stopping flv video

Postby keith jeram » Thu Jan 17, 2008 9:20 am

Hi Artem

Is there any progress on this please? I'm stuck at present as I cannot pause or stop an flv video loaded from a memory stream.

I have tried FlashMethod_SetProperty("flv_pause", "any_value_here") and FlashMethod_SetProperty("FLVPause", "any_value_here"), both of which are shown on the forum, but they do not work, nor does anything else.

I have downloaded and tried the latest version 3.11 but it does not solve the problem.

Regards

Keith

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

Postby Softanics » Thu Jan 17, 2008 11:28 am

Sorry for the delay...

Could you please try:

http://f-in-box.com/TEMP/1D54BDF8-E62D- ... ontrol.zip
Best regards, Artem A. Razin,

F-IN-BOX support

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

keith jeram
Posts: 6
Joined: Wed Jan 09, 2008 4:03 pm

Pausing and stopping flv video

Postby keith jeram » Fri Jan 18, 2008 8:35 am

Many thanks for quick response and support. Problem solved.

Keith


Return to “.NET Edition”

Who is online

Users browsing this forum: No registered users and 7 guests

cron