@techsee/techsee-media-service 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -311,8 +311,10 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
311
311
 
312
312
  var browser = require('detect-browser').detect();
313
313
 
314
+ var WebRTCProxy = require('./lib/WebRTCProxy.js');
315
+
314
316
  //If it is not internet exploer, do nothign
315
- if (browser.name === 'ie') {
317
+ if (browser.name === 'ie' && WebRTCProxy) {
316
318
 
317
319
  //Helper functions to check video nodes
318
320
  var checkNewNode = function checkNewNode(node) {
@@ -373,7 +375,6 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
373
375
  };
374
376
 
375
377
  // Add objects to global
376
- var WebRTCProxy = require('./lib/WebRTCProxy.js');
377
378
  var MediaDevices = require('./lib/MediaDevices.js');
378
379
  var VideoRenderer = require('./lib/VideoRenderer.js');
379
380
  navigator.mediaDevices = new MediaDevices();
@@ -1232,12 +1233,12 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1232
1233
 
1233
1234
  /*
1234
1235
  interface MediaDevices : EventTarget {
1235
- attribute EventHandler ondevicechange;
1236
- Promise<sequence<MediaDeviceInfo>> enumerateDevices();
1236
+ attribute EventHandler ondevicechange;
1237
+ Promise<sequence<MediaDeviceInfo>> enumerateDevices();
1237
1238
  }
1238
- partial interface MediaDevices {
1239
- MediaTrackSupportedConstraints getSupportedConstraints();
1240
- Promise<MediaStream> getUserMedia(optional MediaStreamConstraints constraints);
1239
+ partial interface MediaDevices {
1240
+ MediaTrackSupportedConstraints getSupportedConstraints();
1241
+ Promise<MediaStream> getUserMedia(optional MediaStreamConstraints constraints);
1241
1242
  }
1242
1243
  */
1243
1244
  var MediaDevices = function MediaDevices() {
@@ -1320,8 +1321,8 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1320
1321
  void removeTrack(MediaStreamTrack track);
1321
1322
  MediaStream clone();
1322
1323
  readonly attribute boolean active;
1323
- attribute EventHandler onaddtrack;
1324
- attribute EventHandler onremovetrack;
1324
+ attribute EventHandler onaddtrack;
1325
+ attribute EventHandler onremovetrack;
1325
1326
  };
1326
1327
  */
1327
1328
  var count = 0;
@@ -1453,23 +1454,23 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1453
1454
  readonly attribute DOMString kind;
1454
1455
  readonly attribute DOMString id;
1455
1456
  readonly attribute DOMString label;
1456
- attribute boolean enabled;
1457
+ attribute boolean enabled;
1457
1458
  readonly attribute boolean muted;
1458
- attribute EventHandler onmute;
1459
- attribute EventHandler onunmute;
1459
+ attribute EventHandler onmute;
1460
+ attribute EventHandler onunmute;
1460
1461
  readonly attribute MediaStreamTrackState readyState;
1461
- attribute EventHandler onended;
1462
+ attribute EventHandler onended;
1462
1463
  MediaStreamTrack clone();
1463
1464
  void stop();
1464
1465
  MediaTrackCapabilities getCapabilities();
1465
1466
  MediaTrackConstraints getConstraints();
1466
1467
  MediaTrackSettings getSettings();
1467
1468
  Promise<void> applyConstraints(optional MediaTrackConstraints constraints);
1468
- attribute EventHandler onoverconstrained;
1469
+ attribute EventHandler onoverconstrained;
1469
1470
  };
1470
1471
  partial interface MediaStreamTrack {
1471
1472
  readonly attribute boolean isolated;
1472
- attribute EventHandler onisolationchange;
1473
+ attribute EventHandler onisolationchange;
1473
1474
  };
1474
1475
  */
1475
1476
  var MediaStreamTrack = function MediaStreamTrack(track) {
@@ -1586,14 +1587,14 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1586
1587
  readonly attribute RTCPriorityType priority;
1587
1588
  readonly attribute RTCRTCDataChannelState readyState;
1588
1589
  readonly attribute unsigned long bufferedAmount;
1589
- attribute unsigned long bufferedAmountLowThreshold;
1590
- attribute EventHandler onopen;
1591
- attribute EventHandler onbufferedamountlow;
1592
- attribute EventHandler onerror;
1593
- attribute EventHandler onclose;
1590
+ attribute unsigned long bufferedAmountLowThreshold;
1591
+ attribute EventHandler onopen;
1592
+ attribute EventHandler onbufferedamountlow;
1593
+ attribute EventHandler onerror;
1594
+ attribute EventHandler onclose;
1594
1595
  void close();
1595
- attribute EventHandler onmessage;
1596
- attribute DOMString binaryType;
1596
+ attribute EventHandler onmessage;
1597
+ attribute DOMString binaryType;
1597
1598
  void send(USVString data);
1598
1599
  void send(Blob data);
1599
1600
  void send(ArrayBuffer data);
@@ -1997,15 +1998,15 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1997
1998
  Promise<RTCSessionDescriptionInit> createOffer(optional RTCOfferOptions options);
1998
1999
  Promise<RTCSessionDescriptionInit> createAnswer(optional RTCAnswerOptions options);
1999
2000
  Promise<void> setLocalDescription(RTCSessionDescriptionInit description);
2000
- readonly attribute RTCSessionDescription? localDescription;
2001
+ readonly attribute RTCSessionDescription? localDescription;
2001
2002
  readonly attribute RTCSessionDescription? currentLocalDescription;
2002
2003
  readonly attribute RTCSessionDescription? pendingLocalDescription;
2003
- Promise<void> setRemoteDescription(RTCSessionDescriptionInit description);
2004
- readonly attribute RTCSessionDescription? remoteDescription;
2004
+ Promise<void> setRemoteDescription(RTCSessionDescriptionInit description);
2005
+ readonly attribute RTCSessionDescription? remoteDescription;
2005
2006
  readonly attribute RTCSessionDescription? currentRemoteDescription;
2006
2007
  readonly attribute RTCSessionDescription? pendingRemoteDescription;
2007
- Promise<void> addIceCandidate((RTCIceCandidateInit or RTCIceCandidate) candidate);
2008
- readonly attribute RTCSignalingState signalingState;
2008
+ Promise<void> addIceCandidate((RTCIceCandidateInit or RTCIceCandidate) candidate);
2009
+ readonly attribute RTCSignalingState signalingState;
2009
2010
  readonly attribute RTCIceGatheringState iceGatheringState;
2010
2011
  readonly attribute RTCIceConnectionState iceConnectionState;
2011
2012
  readonly attribute RTCPeerConnectionState connectionState;
@@ -2014,7 +2015,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2014
2015
  RTCConfiguration getConfiguration();
2015
2016
  void setConfiguration(RTCConfiguration configuration);
2016
2017
  void close();
2017
- attribute EventHandler onnegotiationneeded;
2018
+ attribute EventHandler onnegotiationneeded;
2018
2019
  attribute EventHandler onicecandidate;
2019
2020
  attribute EventHandler onicecandidateerror;
2020
2021
  attribute EventHandler onsignalingstatechange;
@@ -2586,8 +2587,8 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2586
2587
  partial interface RTCPeerConnection {
2587
2588
  readonly attribute RTCSctpTransport? sctp;
2588
2589
  RTCDataChannel createDataChannel(USVString label,
2589
- optional RTCDataChannelInit dataChannelDict);
2590
- attribute EventHandler ondatachannel;
2590
+ optional RTCDataChannelInit dataChannelDict);
2591
+ attribute EventHandler ondatachannel;
2591
2592
  };
2592
2593
  */
2593
2594
  RTCPeerConnection.prototype.createDataChannel = function (label, dataChannelDict) {
@@ -2784,7 +2785,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2784
2785
  [SameObject]
2785
2786
  readonly attribute RTCRtpReceiver receiver;
2786
2787
  readonly attribute boolean stopped;
2787
- attribute RTCRtpTransceiverDirection direction;
2788
+ attribute RTCRtpTransceiverDirection direction;
2788
2789
  readonly attribute RTCRtpTransceiverDirection? currentDirection;
2789
2790
  void stop();
2790
2791
  void setCodecPreferences(sequence<RTCRtpCodecCapability> codecs);
@@ -2870,7 +2871,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2870
2871
  };
2871
2872
  dictionary RTCSessionDescriptionInit {
2872
2873
  required RTCSdpType type;
2873
- DOMString sdp = "";
2874
+ DOMString sdp = "";
2874
2875
  };
2875
2876
  */
2876
2877
 
@@ -3073,7 +3074,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
3073
3074
  try {
3074
3075
  WebRTCProxy = new ActiveXObject('Cosmo.WebRTCProxy.1');
3075
3076
  } catch (e) {
3076
- console.error('IE WebRTC Plugin not installed');
3077
+ console.error('TechSee WebRTC Plugin for IE is not installed');
3077
3078
  }
3078
3079
  }
3079
3080