正在显示
2 个修改的文件
包含
38 行增加
和
30 行删除
| @@ -109,51 +109,51 @@ export default class MessageEntrance extends Emiter { | @@ -109,51 +109,51 @@ export default class MessageEntrance extends Emiter { | ||
| 109 | 109 | ||
| 110 | //公开外部调用的方法 | 110 | //公开外部调用的方法 |
| 111 | //class | 111 | //class |
| 112 | - this.init = this._init; | ||
| 113 | - this.joinClass = this._joinClass; | ||
| 114 | - this.leaveClass = this._leaveClass; | ||
| 115 | - this.getMcuClientStatus = this._getMcuClientStatus; | 112 | + this.init = this._init.bind(this); |
| 113 | + this.joinClass = this._joinClass.bind(this); | ||
| 114 | + this.leaveClass = this._leaveClass.bind(this); | ||
| 115 | + this.getMcuClientStatus = this._getMcuClientStatus.bind(this); | ||
| 116 | //this.getClassDetail = this._getClassDetail;//停用 | 116 | //this.getClassDetail = this._getClassDetail;//停用 |
| 117 | - this.getClassStatusInfo = this._getClassStatusInfo; | ||
| 118 | - this.sendStartClass = this._sendStartClass; | ||
| 119 | - this.sendPauseClass = this._sendPauseClass; | ||
| 120 | - this.sendCloseClass = this._sendCloseClass; | 117 | + this.getClassStatusInfo = this._getClassStatusInfo.bind(this); |
| 118 | + this.sendStartClass = this._sendStartClass.bind(this); | ||
| 119 | + this.sendPauseClass = this._sendPauseClass.bind(this); | ||
| 120 | + this.sendCloseClass = this._sendCloseClass.bind(this); | ||
| 121 | 121 | ||
| 122 | 122 | ||
| 123 | //chatApe | 123 | //chatApe |
| 124 | - this.sendChatMsg = this._sendChatMsg; | 124 | + this.sendChatMsg = this._sendChatMsg.bind(this); |
| 125 | 125 | ||
| 126 | //videoApe | 126 | //videoApe |
| 127 | - this.getVideoPlayPath = this._getVideoPlayPath; | ||
| 128 | - this.getVideoPublishPath = this._getVideoPublishPath; | ||
| 129 | - this.publishVideo = this._publishVideo; | ||
| 130 | - this.stopPublishVideo = this._stopPublishVideo; | ||
| 131 | - this.sendVideoBroadcastMsg=this._sendVideoBroadcastMsg; | 127 | + this.getVideoPlayPath = this._getVideoPlayPath.bind(this); |
| 128 | + this.getVideoPublishPath = this._getVideoPublishPath.bind(this); | ||
| 129 | + this.publishVideo = this._publishVideo.bind(this); | ||
| 130 | + this.stopPublishVideo = this._stopPublishVideo.bind(this); | ||
| 131 | + this.sendVideoBroadcastMsg=this._sendVideoBroadcastMsg.bind(this); | ||
| 132 | 132 | ||
| 133 | 133 | ||
| 134 | //audioApe | 134 | //audioApe |
| 135 | - this.getAudioPlayPath = this._getPlayAudioPath; | ||
| 136 | - this.getAudioPublishPath = this._getPublishAudioPath; | ||
| 137 | - this.publishAudio = this._publishAudio; | ||
| 138 | - this.stopPublishAudio = this._stopPublishAudio; | ||
| 139 | - this.sendAudioBroadcastMsg=this.sendAudioCommandMsg; | 135 | + this.getAudioPlayPath = this._getPlayAudioPath.bind(this); |
| 136 | + this.getAudioPublishPath = this._getPublishAudioPath.bind(this); | ||
| 137 | + this.publishAudio = this._publishAudio.bind(this); | ||
| 138 | + this.stopPublishAudio = this._stopPublishAudio.bind(this); | ||
| 139 | + this.sendAudioBroadcastMsg=this.sendAudioCommandMsg.bind(this); | ||
| 140 | 140 | ||
| 141 | //whiteBoradApe | 141 | //whiteBoradApe |
| 142 | - this.sendInsertAnnotaion = this._sendInsertAnnotaion; | 142 | + this.sendInsertAnnotaion = this._sendInsertAnnotaion.bind(this); |
| 143 | //this.sendDeleteAnnotaion=this._sendDeleteAnnotaion; | 143 | //this.sendDeleteAnnotaion=this._sendDeleteAnnotaion; |
| 144 | - this.sendDeleteAllAnnotation = this._sendDeleteAllAnnotation; | ||
| 145 | - this.sendDeleteCurPageAnnotation = this._sendDeleteCurPageAnnotation; | ||
| 146 | - this.sendGotoPrev = this._sendGotoPrev; | 144 | + this.sendDeleteAllAnnotation = this._sendDeleteAllAnnotation.bind(this); |
| 145 | + this.sendDeleteCurPageAnnotation = this._sendDeleteCurPageAnnotation.bind(this); | ||
| 146 | + this.sendGotoPrev = this._sendGotoPrev.bind(this); | ||
| 147 | 147 | ||
| 148 | //DocApe | 148 | //DocApe |
| 149 | - this.sendDocumentUpload = this._sendDocumentUpload;//上传文档 | ||
| 150 | - this.sendDocumentSwitchDoc = this._sendDocumentSwitchDoc; //切换文档 | ||
| 151 | - this.sendDocumentSwitchPage = this._sendDocumentSwitchPage;//翻页 | ||
| 152 | - this.sendDocumentDelete = this._sassDeleteDocument;//删除文档,先通过Sass删除,sass删除成功之后再同步mcu | 149 | + this.sendDocumentUpload = this._sendDocumentUpload.bind(this);;//上传文档 |
| 150 | + this.sendDocumentSwitchDoc = this._sendDocumentSwitchDoc.bind(this);; //切换文档 | ||
| 151 | + this.sendDocumentSwitchPage = this._sendDocumentSwitchPage.bind(this);;//翻页 | ||
| 152 | + this.sendDocumentDelete = this._sassDeleteDocument.bind(this);;//删除文档,先通过Sass删除,sass删除成功之后再同步mcu | ||
| 153 | //this.sendDocumentDeleteAll= this._documentDeleteAll;//删除所有文档 | 153 | //this.sendDocumentDeleteAll= this._documentDeleteAll;//删除所有文档 |
| 154 | - this.sendDocumentCommand = this._sendDocumentCommand;//操作文档(翻页、缩放、滚动...) | ||
| 155 | - this.getDocImageFullPath=this._getDocImageFullPath;//获取文档图片的完整路径 | ||
| 156 | - this.getDocPDFFullPath=this._getDocPDFFullPath;//获取文档的完整路径 | 154 | + this.sendDocumentCommand = this._sendDocumentCommand.bind(this);;//操作文档(翻页、缩放、滚动...) |
| 155 | + this.getDocImageFullPath=this._getDocImageFullPath.bind(this);;//获取文档图片的完整路径 | ||
| 156 | + this.getDocPDFFullPath=this._getDocPDFFullPath.bind(this);;//获取文档的完整路径 | ||
| 157 | } | 157 | } |
| 158 | 158 | ||
| 159 | 159 |
| @@ -105,6 +105,11 @@ MessageTypes.ERR_APE_INTERFACE_PARAM_WRONG=501;//APE鍦ㄦ帴鍙h皟鐢ㄦ椂鍙傛暟閿欒 | @@ -105,6 +105,11 @@ MessageTypes.ERR_APE_INTERFACE_PARAM_WRONG=501;//APE鍦ㄦ帴鍙h皟鐢ㄦ椂鍙傛暟閿欒 | ||
| 105 | MessageTypes.ERR_DOC_DELETE_FAILED=600;//删除文档失败 | 105 | MessageTypes.ERR_DOC_DELETE_FAILED=600;//删除文档失败 |
| 106 | MessageTypes.ERR_DOC_DELETE_FAILED_PARAM=601;//删除文档失败,参数错误 | 106 | MessageTypes.ERR_DOC_DELETE_FAILED_PARAM=601;//删除文档失败,参数错误 |
| 107 | 107 | ||
| 108 | + | ||
| 109 | +MessageTypes.ERR_SDK_FAILED=700;// sdk还没初始化 | ||
| 110 | +MessageTypes.ERR_INTERFACE_NONE=701;//调用的接口不存在 | ||
| 111 | +MessageTypes.ERR_INTERFACE_PARAMS_ERROR=702;//调用的接口,传递的参数不正确 | ||
| 112 | + | ||
| 108 | MessageTypes.ERR_NETWORK=10000;//网络错误 | 113 | MessageTypes.ERR_NETWORK=10000;//网络错误 |
| 109 | MessageTypes.ERR_UNKNOWN=10001;//未知错误 | 114 | MessageTypes.ERR_UNKNOWN=10001;//未知错误 |
| 110 | 115 | ||
| @@ -145,6 +150,9 @@ MessageTypes.ErrorReson[MessageTypes.ERR_APE_INTERFACE_PARAM_WRONG]="APE鍦ㄦ帴鍙 | @@ -145,6 +150,9 @@ MessageTypes.ErrorReson[MessageTypes.ERR_APE_INTERFACE_PARAM_WRONG]="APE鍦ㄦ帴鍙 | ||
| 145 | MessageTypes.ErrorReson[MessageTypes.ERR_DOC_DELETE_FAILED]="删除文档失败"; | 150 | MessageTypes.ErrorReson[MessageTypes.ERR_DOC_DELETE_FAILED]="删除文档失败"; |
| 146 | MessageTypes.ErrorReson[MessageTypes.ERR_DOC_DELETE_FAILED_PARAM]="删除文档失败,参数错误"; | 151 | MessageTypes.ErrorReson[MessageTypes.ERR_DOC_DELETE_FAILED_PARAM]="删除文档失败,参数错误"; |
| 147 | 152 | ||
| 153 | +MessageTypes.ErrorReson[MessageTypes.ERR_SDK_FAILED]="sdk还没初始化"; | ||
| 154 | +MessageTypes.ErrorReson[MessageTypes.ERR_INTERFACE_NONE]="调用的接口不存在"; | ||
| 155 | +MessageTypes.ErrorReson[MessageTypes.ERR_INTERFACE_PARAMS_ERROR]="调用的接口,传递的参数不正确"; | ||
| 148 | 156 | ||
| 149 | MessageTypes.ErrorReson[MessageTypes.ERR_NETWORK]="网络错误"; | 157 | MessageTypes.ErrorReson[MessageTypes.ERR_NETWORK]="网络错误"; |
| 150 | MessageTypes.ErrorReson[MessageTypes.ERR_UNKNOWN]="未知错误"; | 158 | MessageTypes.ErrorReson[MessageTypes.ERR_UNKNOWN]="未知错误"; |
-
请 注册 或 登录 后发表评论