i am unable to share screen on mobile device (android and ios) is anyone help me for the same ?
The getDisplayMedia
API is supported exclusively on desktop environments and is not available on mobile devices. For more details, refer to the browser compatibility section here: MDN Web Docs - getDisplayMedia.
It can be done in react native to make native mobile app, but only video. For audio, need to fork the library and add native code from there to support.
1 Like
Not all devices support this feature, there’s some fun work arounds though like utilizing canvas and utilizing the recording functions/etc associated with it.
I’ve seen entire apps canvas based and a custom screen share mechanism. It is costly on the CPU but careful coding you’re in good hands.
If it works I'd like to try it!