Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [inne][PHP][PHP cRUL] przewijanie filmu wideo, flv, streaming, curl, video
jasiokk
post
Post #1





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 18.06.2011

Ostrzeżenie: (0%)
-----


Witam, potrzebuje pomocy bo nie wiem co źle robię, otóż skrypt ładnie pobiera mi rozmiar pliku i wogóle pobiera się, jednak nie da się przewijać video oto kod, korzystam z flowplayera pseudostreaming:

  1. $position = (int)$_GET['start'];
  2. $filename = $_GET['pobierz'].".flv";
  3. $filesize = (int)sprawdz_wage($file);
  4.  
  5.  
  6.  
  7. $fp = fopen($file, 'rb');
  8.  
  9. header("HTTP/1.1 206 Partial Content");
  10. header("Content-Type: video/x-flv");
  11. header("Content-Disposition: attachment; filename=\"" . $filename . "\"");
  12. header("Accept-Ranges: bytes");
  13. header("Content-Range: bytes " . $position . "-" . ($filesize + $position) . "/" . ($filesize + $position) . "");
  14. header("Content-Length: " . $filesize . "");
  15.  
  16.  
  17. while (!feof($fp)) {
  18. print fread($fp, 4096);
  19. }
  20.  
  21.  
  22.  
  23.  
  24. ?>



Wydaję mi się ze jest ok jednak nie działa, moglby ktoś coś doradzić ?
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 12:32