smartinm / mega-php-client

MEGA PHP Client Library
102 stars 44 forks source link

Stream possibility for html5 #3

Open neco198 opened 11 years ago

neco198 commented 11 years ago

Hello You lib for php is very good and work prefect. Can you add support stream for html5 video sililar on this site http://megastreamer.net/ and also have on this http://code.google.com/p/mega-streamer/ javascript downloading file from and dencrypt ? Is on embed vlc plug but work with mediaelemests.js.

yayscripting commented 11 years ago

Are you sure your php script doesn't timeout? Please take a look at the max execution time.

Verstuurd vanaf mijn iPhone

Op 7 jul. 2013 om 04:13 heeft aoemaster notifications@github.com het volgende geschreven:

+1

I already tried to do it by myself by changing the class code but it only stream the first 5-10 seconds. I just changed this at line 632

// Decrypt encrypted chunk $chunk = mdecrypt_generic($td, $chunk); // if ($bytes = fwrite($dest, $chunk)) { // $ret += $bytes; // }

echo $chunk; $ret += $bytes; ob_flush(); flush(); And then just call $mega->public_file_save($ph, $key); and open the URL in VLC and it work but only for the first 5-10 seconds :/

I don't know why.

(Sorry for my english i'm french)

— Reply to this email directly or view it on GitHub.