diff --git a/src/EngineEntrance.js b/src/EngineEntrance.js
index e51b44a..4a965a3 100644
--- a/src/EngineEntrance.js
+++ b/src/EngineEntrance.js
@@ -62,7 +62,7 @@ export default class MessageEntrance extends Emiter {
   constructor() {
     super();
     //sdk 信息
-    GlobalConfig.sdkVersion = "v2.18.10.20171019";
+    GlobalConfig.sdkVersion = "v2.18.14.20171020";
     loger.warn("sdkVersion:" + GlobalConfig.sdkVersion);
 
     //设置
@@ -1226,8 +1226,8 @@ export default class MessageEntrance extends Emiter {
 
     //主讲人和老师可以设置旁录
     if(GlobalConfig.appId&&!GlobalConfig.openFlash){
-      //加入之前先设置旁录地址,只有直播支持旁路
-      if(_webRtc&&GlobalConfig.isTeachOrAssistant){
+      //加入之前先设置旁录地址,只有直播支持旁路(1路流)
+      if(_webRtc&&GlobalConfig.isTeachOrAssistant&&GlobalConfig.maxMediaChannels==1){
         let curTimestamp = new Date().getTime();
         let streamId=GlobalConfig.siteId+"_"+GlobalConfig.classId+"_"+GlobalConfig.userId+"_"+curTimestamp;
         //传入固定的流Id
diff --git a/src/apes/WebRtcApe.js b/src/apes/WebRtcApe.js
index 79f35fe..5a86d01 100644
--- a/src/apes/WebRtcApe.js
+++ b/src/apes/WebRtcApe.js
@@ -12,6 +12,10 @@ var AgoraRTC = require('../AgoraRTCSDK-1.14.0');
 let loger = Loger.getLoger('WebRtcApe');
 const SIZE_480=480;
 const SIZE_360=360;
+const SIZE_320=320;
+const SIZE_240=240;
+const SIZE_160=160;
+const SIZE_120=120;
 class WebRtcApe extends Emiter {
   constructor() {
     super();
@@ -47,8 +51,10 @@ class WebRtcApe extends Emiter {
     this.pFrameRate=30;
     this.pBitrate=500;
 
-    this.videoResolution = "360P_8";//480x360	30	490
-    //this.videoResolution = "240P";//
+    //120P	0	160x120	15	65
+    //240P	20	320x240	15	200
+    //360P_8	37	480x360	30	490
+    this.videoResolution = "240P";
     this.isOpenVideo = true;
 
     this.isPublish = false;//当前是否正在推流
@@ -346,7 +352,21 @@ class WebRtcApe extends Emiter {
     this.info = _params.info || "";
     this.channelKey = _params.channelKey || null;
 
-    loger.log("开始加入视频通话频道->channelId:" + this.channelId, "uid:" + this.uid);
+    //根据不同身份设置不同的分辨率
+    if(GlobalConfig.isTeachOrAssistant){
+      if(GlobalConfig.maxMediaChannels==2){
+        //1v1时使用标清
+        this.videoResolution="240P";
+      }else {
+        this.videoResolution="360P_8";
+      }
+    }if(GlobalConfig.isInvisible){
+      this.videoResolution="120P";
+    }else {
+      this.videoResolution="240P";
+    }
+
+    loger.log("开始加入视频通话频道->channelId:" + this.channelId, "uid:" + this.uid,"videoResolution:"+this.videoResolution);
     this.client.join(this.channelKey, "" + this.channelId, this.uid, (uid)=> {
       this.uid = uid;
       loger.log("加入视频通话频道->成功->channelId:" + this.channelId, "uid:" + this.uid);
@@ -712,20 +732,16 @@ class WebRtcApe extends Emiter {
       for (let i = 0; i < devices.length; i++) {
         let device = devices[i];
         //{"deviceId":"default","kind":"audiooutput","label":"默认","groupId":"cf49a03ca26700235629fc13d3e6630bd34407c66438d157056a34dd3ae03ef5"}
-        if (device.kind == 'audioinput') {
-          if (!device.label) {
-            device.label = "麦克风_" + i;
-          }
-          this.microphones.push(device);
-          GlobalConfig.microphones.push(device.label);
-        } else if (device.kind == 'videoinput') {
-          if (!device.label) {
-            device.label = "摄像头_" + i;
+        if(device){
+          if (device.kind == 'audioinput') {
+            this.microphones.push(device);
+            GlobalConfig.microphones.push(device.label);
+          } else if (device.kind == 'videoinput') {
+            this.cameras.push(device);
+            GlobalConfig.cameras.push(device.label);
+          } else {
+            loger.warn('其他设备: ', device);
           }
-          this.cameras.push(device);
-          GlobalConfig.cameras.push(device.label);
-        } else {
-          loger.warn('其他设备: ', device);
         }
       }
       let _deviceData = {cameras: GlobalConfig.cameras, microphones: GlobalConfig.microphones};