new Easyrtc_IframeCapture()
Provides a method for window/screen capture using an iframe.
This requires that your users install Muah Khans desktop extension.
Read the source code for more details.
Methods
(static) iframeUrl(successCallback, errorCallback, streamName, iframeUrl)
Create a local media stream for desktop capture.
This will fail if a desktop capture extension is not installed.
not granting permission.
Parameters:
Name | Type | Description |
---|---|---|
successCallback |
function | will be called with localmedia stream on success. |
errorCallback |
function | is called with an error code and error description. |
streamName |
String | an optional name for the media source so you can use multiple cameras and screen share simultaneously. |
iframeUrl |
String | an optional url for the iframe. The default is to use Muaz Khan's. |
Example
easyrtc.initMediaSource(
function(mediastream){
easyrtc.setVideoObjectSrc( document.getElementById("mirrorVideo"), mediastream);
},
function(errorCode, errorText){
easyrtc.showError(errorCode, errorText);
});