elan-ev / opencast-studio

Web-based recording studio for Opencast
https://studio.opencast.org
MIT License
50 stars 47 forks source link

Define Recording Limit #1013

Closed HomerJayAllTheWay closed 1 year ago

HomerJayAllTheWay commented 1 year ago

Are there any recording limits for OpenCast Studio in terms of length or file size? If so, it would be nice if the Opencast Studio could define a limit to the length or size of the recording or give the user some indication of how long of a recording they can capture based on the available disk space of their device.

LukasKalbertodt commented 1 year ago

There are no limits imposed by Opencast Studio directly, but there are certainly ones imposed by the browser and/or your device. Because yeah, as you said, the video has to be stored somewhere on your device and your device has finite storage space.

However, I am pretty sure Opencast Studio cannot show any information about available disk space or recording limit as Studio cannot get access to that information. I cannot find any even remotely relevant web APIs. In fact, I can't even find a way to figure out whether a recording error is due to disk space exhaustion. So yeah, being something that runs in the browser, Opencast Studio is pretty limited in what it can do.

Will close this issue for now. If anyone brings up ideas how we could solve this, we can reopen.

HomerJayAllTheWay commented 1 year ago

Are there any known browser limitations? Not sure of all of the calls being used so I’m not sure where to look.Thanks for the lightening fast response.

LukasKalbertodt commented 1 year ago

I don't know of any artificial limitations by browsers. The only limitation I can think of is the exhaustion of disk space, which the browser can't really do anything about.

I assume you are a programmer; if that's not the case please correct me. Your GitHub profile is very empty, so it's hard to judge :) Under that assumption: the main API relevant here is MediaRecorder. We pass media streams into it acquired by getUserMedia and/or getDisplayMedia. But yeah, the actual recording is done by MediaRecorder. And I can't find any useful information about disk space exhaustion in the MDN docs or in the specification.