Page 1 of 1

Pausing & stopping flv playback from stream

Posted: Fri Jan 11, 2008 3:50 pm
by keith jeram
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

Posted: Fri Jan 11, 2008 6:00 pm
by Softanics
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");

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

Posted: Mon Jan 14, 2008 8:39 am
by keith jeram
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

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

Posted: Mon Jan 14, 2008 3:04 pm
by Softanics
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.

Pausing and stopping flv video

Posted: Thu Jan 17, 2008 9:20 am
by keith jeram
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

Posted: Thu Jan 17, 2008 11:28 am
by Softanics
Sorry for the delay...

Could you please try:

http://f-in-box.com/TEMP/1D54BDF8-E62D- ... ontrol.zip

Pausing and stopping flv video

Posted: Fri Jan 18, 2008 8:35 am
by keith jeram
Many thanks for quick response and support. Problem solved.

Keith