July 24, 2023 at 11:39 am #10790
I have been having some problems when I tried using the MediaRecorder element. We set up a server where we upload the audio files. On my end, I am able to run the experiment and see that they uploaded correctly to the server. However, when other people try running it, they get an error that it could not GET the address. I tried running it on a different browser and it didn’t work either. I can’t figure out why it would only upload the data from my computer. Are there any tips on how we should set up the Apache server and file ownership directories and protections? Any help would be appreciated.
ThanksJuly 24, 2023 at 2:09 pm #10791
In addition, can the data server where we upload the data use a self-signed certificate?July 24, 2023 at 9:57 pm #10792
Following up, we encountered some strange behavior when we tried to solve this issue — sometimes it would let other people successfully upload the data to our server, but we were only able to do it when their browser said that it did not trust the SSL certificate.
It is worth mentioning that we are using the PCIbex farm to run our experiments. Our server has a self signed certificate, which the browser flags as invalid. We are wondering if the Media Recorder element requires specific browser settings/configurations for Firefox and Chrome? I am always able to upload the audio files when I use Firefox on my computer, but can’t do it when I use Chrome. Other people are not able to do this even if they use Firefox. Any help would be greatly appreciated.
ThanksJuly 25, 2023 at 3:11 am #10793JeremyKeymaster
The MediaRecorder element does not place any constraints over transfer, it is the browser that requires CORS validation when sending a POST request from one domain (farm.pcibex.net) to a different domain (where your server is hosted). It could be that you somehow overrode the certificate’s invalidity in your instance of Firefox, but other browsers will just refuse to proceed with the POST request in the absence of a valid certificate
It is possible to use a self-signed certificate, but you’ll likely run into issues like the one you describe here. If possible, I recommend using certbot to automatically get letsencrypt certificates, which won’t necessitate manual approval
- You must be logged in to reply to this topic.