Browse Source

Handles videoType from last received presence.

Handles the case where we can receive the presence with the video type before we have received and created the remote track.
master
damencho 9 years ago
parent
commit
11f0cef3a3
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      modules/xmpp/ChatRoom.js

+ 5
- 0
modules/xmpp/ChatRoom.js View File

@@ -800,6 +800,11 @@ ChatRoom.prototype.remoteTrackAdded = function(data) {
800 800
             mutedNode = filterNodeFromPresenceJSON(pres, "audiomuted");
801 801
         } else if (mediaType === MediaType.VIDEO) {
802 802
             mutedNode = filterNodeFromPresenceJSON(pres, "videomuted");
803
+            var videoTypeNode = filterNodeFromPresenceJSON(pres, "videoType");
804
+            if(videoTypeNode
805
+                && videoTypeNode.length > 0
806
+                && videoTypeNode[0])
807
+                data.videoType = videoTypeNode[0]["value"];
803 808
         } else {
804 809
             logger.warn("Unsupported media type: " + mediaType);
805 810
             data.muted = null;

Loading…
Cancel
Save