Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo for RecordRTC-to-PHP not working on firefox 32.0.1 #281

Open
baraskar opened this issue Sep 26, 2014 · 12 comments
Open

Demo for RecordRTC-to-PHP not working on firefox 32.0.1 #281

baraskar opened this issue Sep 26, 2014 · 12 comments

Comments

@baraskar
Copy link

Error Screen shot link...

http://puu.sh/bN5kk/8f0c3e260b.png

http://puu.sh/bOihI/b9c2a76b87.png

@daryl3
Copy link

daryl3 commented Oct 4, 2014

I am also having a problem with RecordRTC-to-PHP working in newer versions of Firefox. I rolled back to Firefox 29 to test it, and it does work in it.

The problem I am experiencing does not happen with smaller files. It only happens when I record a video for approximately 10 seconds or longer.

Steps to duplicate:

  1. Go to the WebRTC-Experiment/RecordRTC/RecordRTC-to-PHP/ page.
  2. Select the record button.
  3. Wait at least 10 seconds.
  4. Press the Stop button.
    The AJAX Post will now spin and never post the blob to the save.php file. So the .webm file never gets created in the uploads folder.

When I open the the F12 Console in Firefox:

  1. The post to the WebRTC-Experiment/RecordRTC/RecordRTC-to-PHP/save.php file has a spinning wheel that spins and never completes.
  2. The "Response Headers" are never populated.
  3. The post does not contain the blob.
  4. The response is empty.

If you try the same steps for a few seconds it will save the file to the server. You can also see what the difference is in the "Response Headers" if you do a few second post instead of a 10 second or longer post.

If you need any further clarification on the steps to duplicate it, please let me know. I'd be happy to help.

@muaz-khan
Copy link
Owner

I just tested 2-minutes recordings and 21MB WAV was successfully uploaded to the server and it worked.

I added following .htaccess file:

<IfModule mod_php4.c>
php_value session.gc_maxlifetime 10800
php_value max_input_time 10800
php_value max_execution_time 10800
php_value upload_max_filesize 500M
php_value post_max_size 500M
</IfModule>

VPS-based solutions can directly modify php.ini instead of using .htaccess file.

BTW, because it is shared hosting----so upload may fail out of download-exceed-limit or burden over the puma.arvixe.com shared server.

Demo:

@daryl3
Copy link

daryl3 commented Oct 7, 2014

Hello Muaz-khan,

Thank you for your reply. I see that your demo is definitely working on your site.

My example on my own computer is not working. It makes me hopeful that I can get it working since your example is working on your site.

I tried updating all of the php values to be what you indicated, and they had no effect.

I created a simple ajax file post with a html file form and verified I was able to upload large files to the server and that I can upload large files..

Since it is my own machine, I don't have any download limits. The odd part is it seems to be any video recorded over 1MB that is not being uploaded. Any video under 1MB uploads using your demo on my computer without a problem. it seems only to be an issue with submitting the large blob files.

Any other ideas what would cause the small files to upload but not the large ones?

Daryl

@muaz-khan
Copy link
Owner

Such settings can be modified using following three methods:

  1. PHP_INI_USER: Entry can be set in user scripts (like with ini_set())
  2. PHP_INI_PERDIR: Entry can be set in php.ini, .htaccess, httpd.conf
  3. PHP_INI_SYSTEM: Entry can be set in php.ini or httpd.conf

php.ini solution always works.

You can verify these settings in phpinfo based PHP page:

<?php phpinfo(); ?>

Here is how to modify php.ini and other available options: #224 (comment) and PHP Upload Issues

@daryl3
Copy link

daryl3 commented Oct 8, 2014

Hi Muaz-khan,

Thank you again for your responses.

I finally found out what the problem was. The F12 Console that I had open made it so that large recordings did not work. If the F12 Console is open when you try to record a long video, it will not save to the server. I had to actually close the browser to get it to work again.

I'm not sure why it is a problem, but I thought I would let you know.

Thanks,

Daryl

@viveksatle
Copy link

save.php continue loadding on firefox and video not save on folder. please
issueff
any solotions?

@viveksatle
Copy link

i just run your demo.
http://localhost/RecordRTC-to-PHP/
but it's not working, request.upload.progress() function not call.please give me solution if you can.

screenshot:
firefoxissue

@daryl3
Copy link

daryl3 commented Nov 26, 2014

If you close the Console, the WebRTC example should work. I have no idea why, but the Console being open seems to generate errors. Hope that helps.

@viveksatle
Copy link

yes, no problem....Thanks @daryl3

@hiralprajapati064
Copy link

hello sir in your demo video of 25 second recorded but i cant record video of 30 second or more. even if i add .htaccess file and i m not opening console also, so how to fix it?

@lebedta
Copy link

lebedta commented Apr 10, 2015

Thanks @daryl3 , if console closed then it worked.
how to make that worked in a safari?

@viveksatle
Copy link

Hello,
when i recording than some noise is coming.so i want remove this noise.
please any solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants