Recording does not work on iOS 15
See original GitHub issueDescription
Unable to record a video from a device on iOS 15. This is reliably reproducible when recording a video that has a length of about 1.5-2 minutes.
I believe the issue lies in the RecordRTC library as I have tested it on webrtc-experiment and it doesn’t work too. I added some more logs on https://github.com/muaz-khan/RecordRTC/issues/782#issuecomment-986439163 If you guys have any ideas on how to use the library for iOS devices considering the caveats in RecordRTC I would appreciate to hear it. Please feel free to contact me if more info is needed, thanks!
Steps to reproduce
- Set up this repo for local development
- Update the
maxLength
in https://github.com/collab-project/videojs-record/blob/a36ba88e74ecadbf765c2bf191fb094e724a75b2/examples/audio-video.html to ~360
for testing more long-lasting videos - Host it locally via HTTPS (need to update the
start
script withhttps
key:npm run build && webpack serve --config ./build-config/webpack.dev.main.js --https
) - Proceed to the local network address of your PC from an iOS device
- Try recording a video for about 1.5-2 min.
Results
Expected
The replay via online-player should be working and the file should not be 0 bytes in length.
Actual
It both can’t be replayed in the online player or to be downloaded and played since the file is broken. Also, the error below is thrown.
Error output
"ERROR:" – "(CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED)" – "The media could not be loaded, either because the server or network failed or because the format is not supported."
Additional Information
versions
videojs
7.14.3
recordrtc
5.6.2
browsers
- Safari 15
- Chrome 96
OSes
iOS 15.1.1
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:5
Top GitHub Comments
For anyone looking (including @markitosgv), I was able to fix the issue by monkey-patching the bitrate of the video on iOS devices (as far as I understood,
videojs-record
doesn’t provide an API to do that properly):you save my day @chernodub