getDisplay method
dynamic
getDisplay()
Implementation
getDisplay() {
if (kIsWeb) {
navigator.mediaDevices.getDisplayMedia({}).then((stream) => {
print("thisis is local stream ${stream.id}"),
onLocalStream?.call(stream),
// _localStream = stream
});
} else {
Map<String, dynamic> mediaConstraints = {
'audio': true,
'video': true,
'appAudio': true
};
if (Platform.isAndroid) {
_startVdotokForegroundService().then((value) {
if (value) {
navigator.mediaDevices
.getDisplayMedia({"audio": true, "type": "screen"}).then(
(stream) => {
print("thisis is local stream ${stream.id}"),
onLocalStream?.call(stream),
// _localStream = stream
});
}
});
}
}
}