|
@@ -901,6 +901,9 @@ var LibJitsiMeet = {
|
901
|
901
|
isDeviceListAvailable: function () {
|
902
|
902
|
return RTC.isDeviceListAvailable();
|
903
|
903
|
},
|
|
904
|
+ isDeviceChangeAvailable: function () {
|
|
905
|
+ return RTC.isDeviceChangeAvailable();
|
|
906
|
+ },
|
904
|
907
|
enumerateDevices: function (callback) {
|
905
|
908
|
RTC.enumerateDevices(callback);
|
906
|
909
|
}
|
|
@@ -1985,10 +1988,21 @@ RTC.getVideoSrc = function (element) {
|
1985
|
1988
|
return RTCUtils.getVideoSrc(element);
|
1986
|
1989
|
};
|
1987
|
1990
|
|
|
1991
|
+/**
|
|
1992
|
+ * Returns true if retrieving the the list of input devices is supported and
|
|
1993
|
+ * false if not.
|
|
1994
|
+ */
|
1988
|
1995
|
RTC.isDeviceListAvailable = function () {
|
1989
|
1996
|
return RTCUtils.isDeviceListAvailable();
|
1990
|
1997
|
};
|
1991
|
1998
|
|
|
1999
|
+/**
|
|
2000
|
+ * Returns true if changing the camera / microphone device is supported and
|
|
2001
|
+ * false if not.
|
|
2002
|
+ */
|
|
2003
|
+RTC.isDeviceChangeAvailable = function () {
|
|
2004
|
+ return RTCUtils.isDeviceChangeAvailable();
|
|
2005
|
+}
|
1992
|
2006
|
/**
|
1993
|
2007
|
* Allows to receive list of available cameras/microphones.
|
1994
|
2008
|
* @param {function} callback would receive array of devices as an argument
|
|
@@ -2946,6 +2960,16 @@ var RTCUtils = {
|
2946
|
2960
|
}
|
2947
|
2961
|
return (MediaStreamTrack && MediaStreamTrack.getSources)? true : false;
|
2948
|
2962
|
},
|
|
2963
|
+ /**
|
|
2964
|
+ * Returns true if changing the camera / microphone device is supported and
|
|
2965
|
+ * false if not.
|
|
2966
|
+ */
|
|
2967
|
+ isDeviceChangeAvailable: function () {
|
|
2968
|
+ if(RTCBrowserType.isChrome() || RTCBrowserType.isOpera() ||
|
|
2969
|
+ RTCBrowserType.isTemasysPluginUsed())
|
|
2970
|
+ return true;
|
|
2971
|
+ return false;
|
|
2972
|
+ },
|
2949
|
2973
|
/**
|
2950
|
2974
|
* A method to handle stopping of the stream.
|
2951
|
2975
|
* One point to handle the differences in various implementations.
|