[mirotalksfu] - fix widget screen share button show

هذا الالتزام موجود في:
Miroslav Pejic
2025-08-08 19:36:44 +02:00
الأصل 00180ac310
التزام 62a43c1226

عرض الملف

@@ -226,10 +226,14 @@ class MiroTalkWidget {
const buttons = [ const buttons = [
{ action: 'startAudioCall', icon: this.getAudioIcon(), text: 'Start Audio Call' }, { action: 'startAudioCall', icon: this.getAudioIcon(), text: 'Start Audio Call' },
{ action: 'startVideoCall', icon: this.getVideoIcon(), text: 'Start Video Call' }, { action: 'startVideoCall', icon: this.getVideoIcon(), text: 'Start Video Call' },
{ action: 'startScreenShare', icon: this.getScreenIcon(), text: 'Start Screen Share' },
{ action: 'joinRoom', icon: this.getJoinIcon(), text: 'Join Room' }, { action: 'joinRoom', icon: this.getJoinIcon(), text: 'Join Room' },
]; ];
// Only show "Start Screen Share" if displayMedia is supported
if (navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia === 'function') {
buttons.push({ action: 'startScreenShare', icon: this.getScreenIcon(), text: 'Start Screen Share' });
}
return buttons return buttons
.map( .map(
(btn) => ` (btn) => `