@flashphoner/websdk 2.0.207 → 2.0.208

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.
@@ -1,4 +1,4 @@
1
- Web SDK - 2.0.207
1
+ Web SDK - 2.0.208
2
2
 
3
3
  [Download builds](https://docs.flashphoner.com/display/WEBSDK2EN/Web+SDK+release+notes)
4
4
 
@@ -62,12 +62,9 @@ function init_page() {
62
62
  localVideo = document.getElementById("localVideo");
63
63
  remoteVideo = document.getElementById("remoteVideo");
64
64
 
65
- if(!Browser.isChrome() && !Browser.isFirefox()) {
65
+ if(Browser.isAndroid() || Browser.isiOS()) {
66
66
  $('#screenShareForm').hide();
67
67
  }
68
- if (!Browser.isFirefox()) {
69
- $('#mediaSourceForm').hide();
70
- }
71
68
 
72
69
  Flashphoner.getMediaDevices(null, true, MEDIA_DEVICE_KIND.OUTPUT).then(function (list) {
73
70
  list.audio.forEach(function (device) {
@@ -644,7 +641,7 @@ function switchToScreen() {
644
641
  if (publishStream) {
645
642
  $('#switchBtn').prop('disabled', true);
646
643
  $('#videoInput').prop('disabled', true);
647
- publishStream.switchToScreen($('#mediaSource').val()).catch(function () {
644
+ publishStream.switchToScreen($('#mediaSource').val(), true).catch(function () {
648
645
  $("#screenShareToggle").removeAttr("checked");
649
646
  $('#switchBtn').prop('disabled', false);
650
647
  $('#videoInput').prop('disabled', false);
@@ -29,7 +29,7 @@
29
29
  <h2 class="modal-title text-center text-danger">Warning!</h2>
30
30
  </div>
31
31
  <div class="modal-body text-center">
32
- <h2 class="text-primary">Screen sharing works only in Chrome and Firefox browsers on PC</h2>
32
+ <h2 class="text-primary">Screen sharing works only in desktop browsers</h2>
33
33
  </div>
34
34
  <div class="modal-footer">
35
35
  <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
@@ -16,7 +16,7 @@ function init_page() {
16
16
  }
17
17
 
18
18
  var interval;
19
- if (Browser.isFirefox()) {
19
+ if (Browser.isFirefox() && !Browser.isAndroid() && !Browser.isiOS()) {
20
20
  $("#installExtensionButton").show();
21
21
  interval = setInterval(function() {
22
22
  if (Flashphoner.firefoxScreenSharingExtensionInstalled) {
@@ -10144,7 +10144,7 @@ var createSession = function createSession(options) {
10144
10144
  mediaProviders: Object.keys(MediaProvider),
10145
10145
  keepAlive: keepAlive,
10146
10146
  authToken: authToken,
10147
- clientVersion: "2.0.207",
10147
+ clientVersion: "2.0.208",
10148
10148
  clientOSVersion: window.navigator.appVersion,
10149
10149
  clientBrowserVersion: window.navigator.userAgent,
10150
10150
  msePacketizationVersion: 2,
@@ -13640,7 +13640,7 @@ var createConnection = function createConnection(options) {
13640
13640
  clonedConstraints.video.mediaSource = source;
13641
13641
  }
13642
13642
 
13643
- if (window.chrome && woExtension) {
13643
+ if (woExtension) {
13644
13644
  getScreenDeviceIdWoExtension(clonedConstraints).then(function (screenSharingConstraints) {
13645
13645
  navigator.mediaDevices.getDisplayMedia(screenSharingConstraints).then(function (stream) {
13646
13646
  processScreenStream(stream, resolve);