Talk:Flowplayer streamer php
From RMBwiki
HI ... When i am trying to run the code the file is being saves. Could any one please suggest where i have gone wrong
[edit] Joined FLV stream
Hi,
My issue is that I need to join more than one FLV file in the PHP stream. So I tried the following:
<? if($seekat1 != 0) {
print("FLV");
print(pack('C', 1 ));
print(pack('C', 1 ));
print(pack('N', 9 ));
print(pack('N', 9 ));
}
$fh1 = fopen("file1.flv", "rb") or exit("Could not open file1.flv"); fseek($fh1, $seekat1); while (!feof($fh1)) {
print (fread($fh1, 16384));
} fclose($fh1);
$fh2 = fopen("file2.flv", "rb") or exit("Could not open file2.flv"); fseek($fh2, $seekat2); while (!feof($fh2)) {
print (fread($fh2, 16384));
} fclose($fh2); ?>
But didn't work. It streamed the part of the first file "file1.flv" successfully then stopped without continuing streaming the part of the second file "file2.flv". Am I missing pack() that should be written between the 2 streams?
Appreciate your help.
Thanks, Raed Petro.
