@flashphoner/websdk 2.0.211 → 2.0.212

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.211
1
+ Web SDK - 2.0.212
2
2
 
3
3
  [Download builds](https://docs.flashphoner.com/display/WEBSDK2EN/Web+SDK+release+notes)
4
4
 
@@ -329,9 +329,9 @@ function publishLocalStream(room) {
329
329
  }
330
330
  onMediaStopped(room);
331
331
  });
332
- return;
332
+ } else {
333
+ publishLocalMedia(room);
333
334
  }
334
- publishLocalMedia(room);
335
335
  }
336
336
 
337
337
  function muteConnectInputs() {
@@ -10149,7 +10149,7 @@ var createSession = function createSession(options) {
10149
10149
  mediaProviders: Object.keys(MediaProvider),
10150
10150
  keepAlive: keepAlive,
10151
10151
  authToken: authToken,
10152
- clientVersion: "2.0.211",
10152
+ clientVersion: "2.0.212",
10153
10153
  clientOSVersion: window.navigator.appVersion,
10154
10154
  clientBrowserVersion: window.navigator.userAgent,
10155
10155
  msePacketizationVersion: 2,
@@ -14631,7 +14631,9 @@ var playFirstVideo = function playFirstVideo(display, isLocal, src) {
14631
14631
  if (!getCacheInstance(display)) {
14632
14632
  var video = document.createElement('video');
14633
14633
  video.setAttribute("playsinline", "");
14634
- video.setAttribute("webkit-playsinline", "");
14634
+ video.setAttribute("webkit-playsinline", ""); //Mute video tag to prevent local audio playback in Safari #WCS-3430
14635
+
14636
+ video.muted = true;
14635
14637
  video.id = uuid_v1() + (isLocal ? LOCAL_CACHED_VIDEO : REMOTE_CACHED_VIDEO); //in WCS-1560 we removed video.play() call, because it triggers the “Unhandled Promise Rejection” exception in iOS Safari
14636
14638
  //in WCS-2160 we rolled back the changes made in WCS-1560 due to no audio on first playback in iOS Safari
14637
14639