mega-php-client icon indicating copy to clipboard operation
mega-php-client copied to clipboard

Stream possibility for html5

Open neco198 opened this issue 11 years ago • 1 comments

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.

neco198 avatar Jun 13 '13 01:06 neco198

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 [email protected] 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.

yayscripting avatar Jul 07 '13 10:07 yayscripting