title: rtcmulticonnection safari apple mac
body: <p>I have my own rtcmulticonnection server up and running</p>
  
  <p>I found this plugin <a href="https://github.com/muaz-khan/PluginRTC" rel="nofollow">https://github.com/muaz-khan/PluginRTC</a></p>
  
  <p>But it doesn't seems to work</p>
  
  <blockquote>
    <p>I get WebRTC 1.0 (RTCPeerConnection) API are NOT available in this
    browser.</p>
  </blockquote>
  
  <p>here my code (working in chrome and firefox but not in safari)</p>
  
  <pre><code>&lt;div id="videos-container"&gt;&lt;/div&gt;
  
  &lt;script src="js/rmc3.min.js').'"&gt;&lt;/script&gt;
  &lt;script src="js/socket.io.js').'"&gt;&lt;/script&gt;
  &lt;script src="js/Plugin.EveryWhere.js').'"&gt;&lt;/script&gt;
  
  &lt;script&gt;  
  
  var connection = new RTCMultiConnection();
  connection.socketURL = "https://__MyDomain.com:9000/";
  var roomid = "main_room";
  
  connection.session = {
      audio: true,
      video: true
  };
  
  connection.sdpConstraints.mandatory = {
      OfferToReceiveAudio: true,
      OfferToReceiveVideo: true
  };
  
  var videosContainer = document.getElementById("videos-container");
  connection.onstream = function(event) {
      videosContainer.appendChild(event.mediaElement);
      setTimeout(function() { event.mediaElement.play();  }, 5000);
  };
  
  connection.openOrJoin(roomid);
  
  // *** Plugin.EveryWhere.js [BEGIN]
  var Plugin = {};
  window.onPluginRTCInitialized = function(pluginRTCObject) {
      Plugin = pluginRTCObject;
      MediaStreamTrack      = Plugin.MediaStreamTrack;
      RTCPeerConnection     = Plugin.RTCPeerConnection;
      RTCIceCandidate       = Plugin.RTCIceCandidate;
      RTCSessionDescription = Plugin.RTCSessionDescription;
  };
  if (!!window.PluginRTC) window.onPluginRTCInitialized(window.PluginRTC);
  
  connection.onaddstream = function(event) {
      if (isPluginRTC) {
          var mediaElement = document.createElement("videos-container");
  
          var body = (document.body || document.documentElement);
          body.insertBefore(mediaElement, body.firstChild);
  
          setTimeout(function() {
              Plugin.attachMediaStream(mediaElement, event.stream);
  
              // here you can append "mediaElement" to specific container
              // specificContainer.appendChild(mediaElement);
          }, 3000);
      } else {
          // do chrome/Firefox relevant stuff with "event.stream"
      }
  };
  // *** Plugin.EveryWhere.js [END]
  
  &lt;/script&gt;
  </code></pre>
  
  <p>Is someone was able to make the plugin work ?
  If yes how or what step did I missed ?</p>
  
  <p>Thanks</p>