aws / amazon-chime-sdk-js

A JavaScript client library for integrating multi-party communications powered by the Amazon Chime service.
Apache License 2.0
714 stars 473 forks source link

when sharing screen in ionic angular mobile app "TypeError: navigator.mediaDevices.getDisplayMedia is not a function" error is coming #2990

Closed idb-umangtyagi closed 16 hours ago

idb-umangtyagi commented 6 days ago

What happened and what did you expect to happen?

when calling this.meetingSession.audioVideo.startContentShareFromScreenCapture() for sharing screen in ionic angular mobile app, "TypeError: navigator.mediaDevices.getDisplayMedia is not a function" error is coming.

Have you reviewed our existing documentation?

Reproduction steps

when calling this.meetingSession.audioVideo.startContentShareFromScreenCapture() for sharing screen in ionic angular mobile app, "TypeError: navigator.mediaDevices.getDisplayMedia is not a function" error is coming.

Amazon Chime SDK for JavaScript version

3.22.0

What browsers are you seeing the problem on?

it's an andriod app with ionic angular

Browser version

it's an andriod app with ionic angular

Meeting and Attendee ID Information.

meetingId 7cddae98-ac17-4c10-bb7d-452e566e2713 attendeeId f68e7deb-c2a2-42a7-7a2e-46b4b07079d0

Browser console logs

TypeError: navigator.mediaDevices.getDisplayMedia is not a function

hensmi-amazon commented 5 days ago

getDisplayMedia is a WebAPI implemented by the browser. Mobile browsers currently do not support screen share, and thus do not implement that function. There is no workaround we currently can supply.