mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
Updatwe
This commit is contained in:
parent
9463511337
commit
311a63c4e9
1 changed files with 2 additions and 0 deletions
|
@ -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}`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue