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

Unable to record for more than 1 minute in ios mobile safari browser #641

Open
pradeepaanumalla opened this issue Mar 8, 2022 · 5 comments
Labels
safari-mobile safari iOS browser issues

Comments

@pradeepaanumalla
Copy link

pradeepaanumalla commented Mar 8, 2022

Description

I tried to record for more than 1 min in "video/mp4" format in safari (version 15.2) using videojs and then used player.stop() methos to stop recording. Then its reloading the page automatically. If I record it for 30secs its working as expected.
Using videojs 7.5.5
videojs-record 4.5

Results

Expected

It should record for whatever the duration that we want to

Actual

Safari browser is reloading if we record for more than 1 minute and stops the recording using player.stop()

versions

videojs

7.5.5

videojs-record

4.5

browsers

Safari 15.2

OSes

ios device

@thijstriemstra
Copy link
Member

Safari browser is reloading if we record for more than 1 minute

Wow, that's bizarre.. What can I say, Safari is a strange browser 😞

@thijstriemstra thijstriemstra added the safari-mobile safari iOS browser issues label Mar 8, 2022
@thijstriemstra
Copy link
Member

thijstriemstra commented Mar 8, 2022

Could be related to 'significant' memory usage: https://discussions.apple.com/thread/252519170

When streaming a movie (happens every time on Disney Plus, not always but often on Netflix) Safari automatically refreshes the page due to it using "significant memory".

And stackoverflow:

I have a web application that uses the mediarecorder API to record and show video. For short videos, it works fine. For videos of 1 minute or more on IOS, the web page reloads (with a generic error message flashing right before it loads). There are no errors in the console.

@thijstriemstra
Copy link
Member

@pradeepaanumalla perhaps this helps: #627 (comment)

@pradeepaanumalla
Copy link
Author

@thijstriemstra This is also not working. Because I reduced the audiobytespersecond and videobytespersecond to 81920(1/10th) and recording it for 180 seconds. The browser freezes and unable to play what was recorded also.

@thijstriemstra
Copy link
Member

I would give up on iOS for now. Maybe someday Apple will invest some of their trillions in making Safari a good browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safari-mobile safari iOS browser issues
Projects
None yet
Development

No branches or pull requests

2 participants