1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00
This commit is contained in:
Daniel Neto 2025-01-10 19:19:03 -03:00
parent 9463511337
commit 311a63c4e9

View file

@ -62,10 +62,12 @@ function sendStreamToServer(stream) {
var mediaRecorder;
try {
mediaRecorder = new MediaRecorder(stream, options);
avideoToastSuccess(`MediaRecorder with options`);
} catch (error) {
avideoToastError(`Failed to initialize MediaRecorder with options: ${error}`);
try {
mediaRecorder = new MediaRecorder(stream);
avideoToastSuccess(`MediaRecorder NO options`);
} catch (error) {
avideoToastError(`Failed to initialize MediaRecorder: ${error}`);
}