@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.
@@ -10532,7 +10532,7 @@ var createSession = function createSession(options) {
10532
10532
  mediaProviders: Object.keys(MediaProvider),
10533
10533
  keepAlive: keepAlive,
10534
10534
  authToken: authToken,
10535
- clientVersion: "2.0.211",
10535
+ clientVersion: "2.0.212",
10536
10536
  clientOSVersion: window.navigator.appVersion,
10537
10537
  clientBrowserVersion: window.navigator.userAgent,
10538
10538
  msePacketizationVersion: 2,
@@ -15014,7 +15014,9 @@ var playFirstVideo = function playFirstVideo(display, isLocal, src) {
15014
15014
  if (!getCacheInstance(display)) {
15015
15015
  var video = document.createElement('video');
15016
15016
  video.setAttribute("playsinline", "");
15017
- video.setAttribute("webkit-playsinline", "");
15017
+ video.setAttribute("webkit-playsinline", ""); //Mute video tag to prevent local audio playback in Safari #WCS-3430
15018
+
15019
+ video.muted = true;
15018
15020
  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
15019
15021
  //in WCS-2160 we rolled back the changes made in WCS-1560 due to no audio on first playback in iOS Safari
15020
15022