[mirotalksfu] - add handle media error

هذا الالتزام موجود في:
Miroslav Pejic
2024-03-15 19:18:51 +01:00
الأصل 4a888505ce
التزام 542325b1e5
4 ملفات معدلة مع 78 إضافات و6 حذوفات

عرض الملف

@@ -9,7 +9,7 @@
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.3.94
* @version 1.3.95
*
*/
@@ -1087,6 +1087,10 @@ class RoomClient {
const producer = await this.producerTransport.produce(params);
if (!producer) {
throw new Error('Producer not found!');
}
console.log('PRODUCER', producer);
this.producers.set(producer.id, producer);
@@ -1182,6 +1186,8 @@ class RoomClient {
} catch (err) {
console.error('Produce error:', err);
handleMediaError(type, err);
if (!audio && !screen && videoQuality.selectedIndex != 0) {
videoQuality.selectedIndex = this.videoQualitySelectedIndex;
this.sound('alert');