How to know the end of file or play ending of flv file ?
TFlaashPlayerControl
When Load Stream and play follow the code example And How to know end of file or play ending of flv file ?
Thank.
ps. sorry for my english language.
Code: Select all
var netConn:NetConnection = new NetConnection();
netConn.connect(null);
var netStream:NetStream = new NetStream(netConn);
my_video.attachVideo(netStream);
Code: Select all
_root.netStream.play(url);
Code: Select all
_root.netStream.time;
Code: Select all
flashplayercontrol1.SetVariable('flv_url', '...URL here...');
Code: Select all
CurPos: Integer;
...
CurPos := StrToInt(flashplayercontrol1.GetVariable('flv_current_time'));
porny2 wrote:In Delphi. How to get count loop of play flv file ?
Thank in advanced.
flegel wrote:I got the flv to work this way (thus called from the swf), but
now I can only get the current time of the flv, I actually want the current frame AND the total number of frames of the flv, so I can compare those 2 to detect of the flv has ended.
Is this possible? How?
flegel wrote:Also other question:
Is it also possible to play / stream a flv immediately (instead of loading it in memory) because if I use big flv files, the loading takes too long. I actually want it to stream / play immediately, also on slow computers.
Code: Select all
flashplayercontrol1.SetVariable('flv_url', '...URL here...');
flegel wrote:If I only know the current time of the movie (and not the total time of the movie) then I still dont know if the movie is at its end.
I have to know either the current time and the total time of the movie or (preferable) the current frame and total number of frames of the movie.
HansvL wrote:Hi, I am trying to read time as suggested with GetVariable('flv_current_time') using the SWF as you provided.
However, I get "unspecified error" when try to read the variable.
I do not have Flash program but with hex viewer I can see that flv_current_time is defined in the flash, so I am using the correct SWF.
Do you have any suggestions please? Thanks!
Return to “Delphi / Builder / VCL Edition”
Users browsing this forum: No registered users and 18 guests