李勇

1.增加会议模块的信息,记录当前会议状态的字段

@@ -73,7 +73,7 @@ return /******/ (function(modules) { // webpackBootstrap @@ -73,7 +73,7 @@ return /******/ (function(modules) { // webpackBootstrap
73 /******/ } 73 /******/ }
74 74
75 /******/ var hotApplyOnUpdate = true; 75 /******/ var hotApplyOnUpdate = true;
76 -/******/ var hotCurrentHash = "a3d78cdd8a1339c5b14c"; // eslint-disable-line no-unused-vars 76 +/******/ var hotCurrentHash = "5e0ae84f169d08ac1a6d"; // eslint-disable-line no-unused-vars
77 /******/ var hotCurrentModuleData = {}; 77 /******/ var hotCurrentModuleData = {};
78 /******/ var hotCurrentParents = []; // eslint-disable-line no-unused-vars 78 /******/ var hotCurrentParents = []; // eslint-disable-line no-unused-vars
79 79
@@ -809,7 +809,8 @@ return /******/ (function(modules) { // webpackBootstrap @@ -809,7 +809,8 @@ return /******/ (function(modules) { // webpackBootstrap
809 _this.leaveClass = _this._leaveClass; 809 _this.leaveClass = _this._leaveClass;
810 _this.getMcuClientStatus = _this._getMcuClientStatus; 810 _this.getMcuClientStatus = _this._getMcuClientStatus;
811 _this.getClassDetail = _this._getClassDetail; 811 _this.getClassDetail = _this._getClassDetail;
812 - _this.sendUpdaterClass = _this._sendUpdaterClass; 812 + _this.sendUpdaterClassInfo = _this._sendUpdaterClassInfo;
  813 + _this.sendUpdaterClassInfo1 = _this._sendUpdaterClassInfo1;
813 814
814 //chatApe 815 //chatApe
815 _this.sendChatMsg = _this._sendChatMsg; 816 _this.sendChatMsg = _this._sendChatMsg;
@@ -833,8 +834,6 @@ return /******/ (function(modules) { // webpackBootstrap @@ -833,8 +834,6 @@ return /******/ (function(modules) { // webpackBootstrap
833 _this.sendDocumentDeleteAll = _this._documentDeleteAll; //删除所有文档 834 _this.sendDocumentDeleteAll = _this._documentDeleteAll; //删除所有文档
834 _this.sendDocumentCommand = _this._sendDocumentCommand; //操作文档(翻页、缩放、滚动...) 835 _this.sendDocumentCommand = _this._sendDocumentCommand; //操作文档(翻页、缩放、滚动...)
835 836
836 - //debug  
837 - //this.setDebugData=this._setDebugData;  
838 return _this; 837 return _this;
839 } 838 }
840 839
@@ -1194,12 +1193,19 @@ return /******/ (function(modules) { // webpackBootstrap @@ -1194,12 +1193,19 @@ return /******/ (function(modules) { // webpackBootstrap
1194 //更新会议数据 1193 //更新会议数据
1195 1194
1196 }, { 1195 }, {
1197 - key: '_sendUpdaterClass',  
1198 - value: function _sendUpdaterClass(_param) { 1196 + key: '_sendUpdaterClassInfo',
  1197 + value: function _sendUpdaterClassInfo(_param) {
1199 if (_confer_ape) { 1198 if (_confer_ape) {
1200 _confer_ape.sendUpdaterClassInfo(_param); 1199 _confer_ape.sendUpdaterClassInfo(_param);
1201 } 1200 }
1202 } 1201 }
  1202 + }, {
  1203 + key: '_sendUpdaterClassStatus',
  1204 + value: function _sendUpdaterClassStatus(_param) {
  1205 + if (_confer_ape) {
  1206 + _confer_ape.sendUpdaterClassStatus(_param);
  1207 + }
  1208 + }
1203 1209
1204 //ChatApe 1210 //ChatApe
1205 // 发送聊天消息 1211 // 发送聊天消息
@@ -2372,7 +2378,8 @@ return /******/ (function(modules) { // webpackBootstrap @@ -2372,7 +2378,8 @@ return /******/ (function(modules) { // webpackBootstrap
2372 }; 2378 };
2373 } 2379 }
2374 } 2380 }
2375 - // 判断自己是否主持人角色 2381 +
  2382 + //当前的课堂状态的信息
2376 2383
2377 }, { 2384 }, {
2378 key: 'setDocListPrepare', 2385 key: 'setDocListPrepare',
@@ -2484,6 +2491,38 @@ return /******/ (function(modules) { // webpackBootstrap @@ -2484,6 +2491,38 @@ return /******/ (function(modules) { // webpackBootstrap
2484 return this.rsList; 2491 return this.rsList;
2485 } 2492 }
2486 }, { 2493 }, {
  2494 + key: 'classStatusInfo',
  2495 + get: function get() {
  2496 + return {
  2497 + "classStatusInfo": {
  2498 + "nodeId": this.nodeId, //mcu中的唯一ID
  2499 + "userId": this.userId, //
  2500 + "userName": this.userName,
  2501 +
  2502 + "siteId": this.siteId, //站点号
  2503 +
  2504 + "classId": this.classId,
  2505 + "className": this.className,
  2506 + "classType": this.classType, //课堂类型
  2507 + "classStatus": this.classStatus, //课堂的状态
  2508 + "classStartTime": this.classStartTime, //课堂点击开始时间
  2509 + "classEndTime": this.classEndTime, //最后一次的时间(点暂停或结束),每次发送数据都获取当前时间戳
  2510 + "classTimestamp": this.recordTimestamp, //相对于点开始课堂的时间戳
  2511 +
  2512 +
  2513 + "recordStatus": this.recordStatus, //当前录制状态
  2514 + "recordTimestamp": this.recordTimestamp, //相对于开始录制的时间戳
  2515 + "recordStreamName": this.recordStreamName, //录制的文件名
  2516 + "recordDownloadUrl": this.recordDownloadUrl, //下载地址
  2517 +
  2518 + "systemTimestamp": this.systemTimestamp //当前的系统时间戳
  2519 + }
  2520 + };
  2521 + },
  2522 + set: function set(_param) {}
  2523 + // 判断自己是否主持人角色
  2524 +
  2525 + }, {
2487 key: 'isHost', 2526 key: 'isHost',
2488 get: function get() { 2527 get: function get() {
2489 if (this.userRole == _ApeConsts2.default.host) { 2528 if (this.userRole == _ApeConsts2.default.host) {
@@ -2557,6 +2596,7 @@ return /******/ (function(modules) { // webpackBootstrap @@ -2557,6 +2596,7 @@ return /******/ (function(modules) { // webpackBootstrap
2557 2596
2558 GlobalConfig.userId = 0; 2597 GlobalConfig.userId = 0;
2559 GlobalConfig.userName = ""; 2598 GlobalConfig.userName = "";
  2599 +
2560 GlobalConfig.password = ""; 2600 GlobalConfig.password = "";
2561 GlobalConfig.userType = 8; 2601 GlobalConfig.userType = 8;
2562 GlobalConfig.h5Module = 0; 2602 GlobalConfig.h5Module = 0;
@@ -2581,16 +2621,20 @@ return /******/ (function(modules) { // webpackBootstrap @@ -2581,16 +2621,20 @@ return /******/ (function(modules) { // webpackBootstrap
2581 2621
2582 GlobalConfig.className = ""; // 课程名称 2622 GlobalConfig.className = ""; // 课程名称
2583 GlobalConfig.classId = ""; // 课程号 2623 GlobalConfig.classId = ""; // 课程号
  2624 + GlobalConfig.classType = _ApeConsts2.default.CLASS_TYPE_INTERACT; //1:互动课堂,2:直播课堂
  2625 + GlobalConfig.classStatus = _ApeConsts2.default.CLASS_STATUS_WAIT; // 0;//课堂还未开始 1;//直播中 2 //课间休息 3已经停止
  2626 +
  2627 +
2584 GlobalConfig.recordStartTime = ""; 2628 GlobalConfig.recordStartTime = "";
2585 GlobalConfig.recordStartTimestam = ""; 2629 GlobalConfig.recordStartTimestam = "";
2586 GlobalConfig.recordEndTimestamp = ""; 2630 GlobalConfig.recordEndTimestamp = "";
2587 GlobalConfig.recordTimestamp = ""; 2631 GlobalConfig.recordTimestamp = "";
  2632 +
2588 GlobalConfig.recordEndTime = ""; 2633 GlobalConfig.recordEndTime = "";
2589 GlobalConfig.recordPlayURL = ""; 2634 GlobalConfig.recordPlayURL = "";
2590 GlobalConfig.recordConfigFile = ""; // 录制脚本文件 2635 GlobalConfig.recordConfigFile = ""; // 录制脚本文件
2591 GlobalConfig.tickValues = {}; // 滚动条关键点,用于快进快退 2636 GlobalConfig.tickValues = {}; // 滚动条关键点,用于快进快退
2592 2637
2593 - GlobalConfig.classType = _ApeConsts2.default.CLASS_TYPE_INTERACT; //1:互动课堂,2:直播课堂  
2594 2638
2595 GlobalConfig.meetingParam = {}; //Sass直接返回的所有会议信息(最全) 2639 GlobalConfig.meetingParam = {}; //Sass直接返回的所有会议信息(最全)
2596 GlobalConfig.classDetail = {}; //Sass直接返回的当前课堂基本信息 2640 GlobalConfig.classDetail = {}; //Sass直接返回的当前课堂基本信息
@@ -2657,6 +2701,21 @@ return /******/ (function(modules) { // webpackBootstrap @@ -2657,6 +2701,21 @@ return /******/ (function(modules) { // webpackBootstrap
2657 } 2701 }
2658 } 2702 }
2659 2703
  2704 + //课堂状态
  2705 + ApeConsts.CLASS_STATUS_WAIT = 0; //课堂还未开始
  2706 + ApeConsts.CLASS_STATUS_STARTED = 1; //直播中
  2707 + ApeConsts.CLASS_STATUS_PAUSE = 2; //暂停
  2708 + ApeConsts.CLASS_STATUS_CLOSE = 3; //结束
  2709 +
  2710 + ApeConsts.CLASS_WAIT_START = "class.wait.start"; //课堂还未开始
  2711 + ApeConsts.CLASS_STARTING = "class.started"; //直播中
  2712 + ApeConsts.CLASS_PAUSING = "class.pause"; //暂停
  2713 + ApeConsts.CLASS_PAUSING = "class.closed"; //关闭
  2714 +
  2715 + //课堂类型
  2716 + ApeConsts.CLASS_TYPE_INTERACT = 1; // 互动课堂,通过MS转发音视频,不能进行H5观看
  2717 + ApeConsts.CLASS_TYPE_LIVE = 2; // 直播课堂,通过CDN转发音视频,不能进行音视频互动
  2718 +
2660 //角色身份 2719 //角色身份
2661 ApeConsts.NR_GUEST = 0; // 客人 2720 ApeConsts.NR_GUEST = 0; // 客人
2662 ApeConsts.NR_NORMAL = 1; // 普通与会者 2721 ApeConsts.NR_NORMAL = 1; // 普通与会者
@@ -2820,21 +2879,6 @@ return /******/ (function(modules) { // webpackBootstrap @@ -2820,21 +2879,6 @@ return /******/ (function(modules) { // webpackBootstrap
2820 ApeConsts.WBA_OPEN = 3; 2879 ApeConsts.WBA_OPEN = 3;
2821 ApeConsts.WBA_DOC_ANNOTATION = 4; 2880 ApeConsts.WBA_DOC_ANNOTATION = 4;
2822 ApeConsts.WBA_LASER_PEN = 5; 2881 ApeConsts.WBA_LASER_PEN = 5;
2823 -  
2824 - //class status  
2825 - ApeConsts.CLASS_WAIT_START_STATUS = 0; //课堂还未开始  
2826 - ApeConsts.CLASS_STARTING_STATUS = 1; //直播中  
2827 - ApeConsts.CLASS_PAUSING_STATUS = 2; //课间休息  
2828 -  
2829 - ApeConsts.CLASS_WAIT_START = "class.wait.start"; //课堂还未开始  
2830 - ApeConsts.CLASS_STARTING = "class.starting"; //直播中  
2831 - ApeConsts.CLASS_PAUSING = "class.pausing"; //课间休息  
2832 -  
2833 -  
2834 - //class type  
2835 - ApeConsts.CLASS_TYPE_INTERACT = 1; // 互动课堂,通过MS转发音视频,不能进行H5观看  
2836 - ApeConsts.CLASS_TYPE_LIVE = 2; // 直播课堂,通过CDN转发音视频,不能进行音视频互动  
2837 -  
2838 ; 2882 ;
2839 2883
2840 var _temp = function () { 2884 var _temp = function () {
@@ -14676,6 +14720,58 @@ return /******/ (function(modules) { // webpackBootstrap @@ -14676,6 +14720,58 @@ return /******/ (function(modules) { // webpackBootstrap
14676 this.sendUniform(adapterPdu, true); 14720 this.sendUniform(adapterPdu, true);
14677 } 14721 }
14678 14722
  14723 + //更新会议状态
  14724 +
  14725 + }, {
  14726 + key: 'sendUpdaterClassStatus',
  14727 + value: function sendUpdaterClassStatus(_param) {
  14728 + loger.log('sendUpdaterClassStatus----------');
  14729 + if (_param == null || _EngineUtils2.default.isEmptyObject(_param)) {
  14730 + loger.log('sendUpdaterClassInfo,参数错误');
  14731 + this._emit(_MessageTypes2.default.MCU_ERROR, _MessageTypes2.default.ERR_APE_INTERFACE_PARAM_WRONG);
  14732 + return;
  14733 + }
  14734 + itemIdx = _param.itemIdx;
  14735 + var whiteBoardModelPdu = this.packPdu(_param, itemIdx);
  14736 + console.log(whiteBoardModelPdu);
  14737 +
  14738 + if (whiteBoardModelPdu == null) {
  14739 + loger.log('sendUpdaterClassInfo,参数错误');
  14740 + this._emit(_MessageTypes2.default.MCU_ERROR, _MessageTypes2.default.ERR_APE_INTERFACE_PARAM_WRONG);
  14741 + return;
  14742 + }
  14743 +
  14744 + var tableItemPdu = new _pdus2.default['RCRegistryTableItemPdu']();
  14745 + tableItemPdu.itemIdx = itemIdx;
  14746 + tableItemPdu.owner = 0; //收到flash的是这个值,不清楚先写固定
  14747 + tableItemPdu.registerObjId = _ApeConsts2.default.CONFERENCE_OBJ_TABLE_ID;
  14748 + tableItemPdu.itemData = whiteBoardModelPdu.toArrayBuffer();
  14749 +
  14750 + //updater
  14751 + var whiteBoardUpdateItem = new _pdus2.default['RCRegistryTableUpdateItemPdu']();
  14752 + //optional RCPduType_E type = 1 [default = RCPDU_REG_TABLE_UPDATE_PDU];
  14753 + //repeated RCRegistryTableItemPdu items = 2;
  14754 + whiteBoardUpdateItem.type = _pdus2.default.RCPDU_REG_TABLE_UPDATE_PDU; //
  14755 + whiteBoardUpdateItem.items.push(tableItemPdu);
  14756 +
  14757 + var updateObjPdu = new _pdus2.default['RCRegistryUpdateObjPdu']();
  14758 + updateObjPdu.objId = _ApeConsts2.default.CONFERENCE_OBJ_TABLE_ID;
  14759 + updateObjPdu.subType = whiteBoardUpdateItem.type;
  14760 + updateObjPdu.userData = whiteBoardUpdateItem.toArrayBuffer();
  14761 +
  14762 + //同步
  14763 + var adapterItemPdu = new _pdus2.default['RCAdapterItemPdu']();
  14764 + adapterItemPdu.type = _pdus2.default.RCPDU_REG_UPDATE_OBJ;
  14765 + adapterItemPdu.itemData = updateObjPdu.toArrayBuffer();
  14766 +
  14767 + var adapterPdu = new _pdus2.default['RCAdapterPdu']();
  14768 + adapterPdu.type = _pdus2.default.RCPDU_REG_ADAPTER;
  14769 + adapterPdu.item.push(adapterItemPdu);
  14770 +
  14771 + console.log("会议发送更新数据111============");
  14772 + this.sendUniform(adapterPdu, true);
  14773 + }
  14774 +
14679 ///////白板数据的封包和解包///////////////////////////////////////// 14775 ///////白板数据的封包和解包/////////////////////////////////////////
14680 14776
14681 }, { 14777 }, {
@@ -97,7 +97,7 @@ export default class MessageEntrance extends Emiter { @@ -97,7 +97,7 @@ export default class MessageEntrance extends Emiter {
97 this.leaveClass=this._leaveClass; 97 this.leaveClass=this._leaveClass;
98 this.getMcuClientStatus=this._getMcuClientStatus; 98 this.getMcuClientStatus=this._getMcuClientStatus;
99 this.getClassDetail=this._getClassDetail; 99 this.getClassDetail=this._getClassDetail;
100 - this.sendUpdaterClass=this._sendUpdaterClass; 100 + this.sendUpdaterClassInfo=this._sendUpdaterClassInfo;
101 101
102 //chatApe 102 //chatApe
103 this.sendChatMsg=this._sendChatMsg; 103 this.sendChatMsg=this._sendChatMsg;
@@ -122,8 +122,6 @@ export default class MessageEntrance extends Emiter { @@ -122,8 +122,6 @@ export default class MessageEntrance extends Emiter {
122 this.sendDocumentDeleteAll= this._documentDeleteAll;//删除所有文档 122 this.sendDocumentDeleteAll= this._documentDeleteAll;//删除所有文档
123 this.sendDocumentCommand= this._sendDocumentCommand;//操作文档(翻页、缩放、滚动...) 123 this.sendDocumentCommand= this._sendDocumentCommand;//操作文档(翻页、缩放、滚动...)
124 124
125 - //debug  
126 - //this.setDebugData=this._setDebugData;  
127 } 125 }
128 126
129 127
@@ -443,11 +441,18 @@ export default class MessageEntrance extends Emiter { @@ -443,11 +441,18 @@ export default class MessageEntrance extends Emiter {
443 this._emit(msg.type, msg); 441 this._emit(msg.type, msg);
444 } 442 }
445 //更新会议数据 443 //更新会议数据
446 - _sendUpdaterClass(_param){ 444 + _sendUpdaterClassInfo(_param){
447 if(_confer_ape){ 445 if(_confer_ape){
448 _confer_ape.sendUpdaterClassInfo(_param); 446 _confer_ape.sendUpdaterClassInfo(_param);
449 } 447 }
450 } 448 }
  449 + _sendUpdaterClassStatus(_param){
  450 + if(_confer_ape){
  451 + _confer_ape.sendUpdaterClassStatus(_param);
  452 + }
  453 + }
  454 +
  455 +
451 456
452 457
453 //ChatApe 458 //ChatApe
@@ -11,6 +11,8 @@ class GlobalConfig { @@ -11,6 +11,8 @@ class GlobalConfig {
11 11
12 } 12 }
13 _currentStatus=null; 13 _currentStatus=null;
  14 +
  15 +
14 static setDebugData (_deBugData){ 16 static setDebugData (_deBugData){
15 this.isDebug=true; 17 this.isDebug=true;
16 this.deBugData=_deBugData; 18 this.deBugData=_deBugData;
@@ -69,6 +71,38 @@ class GlobalConfig { @@ -69,6 +71,38 @@ class GlobalConfig {
69 } 71 }
70 } 72 }
71 } 73 }
  74 +
  75 + //当前的课堂状态的信息
  76 + static get classStatusInfo(){
  77 + return {
  78 + "classStatusInfo":{
  79 + "nodeId":this.nodeId,//mcu中的唯一ID
  80 + "userId":this.userId,//
  81 + "userName":this.userName,
  82 +
  83 + "siteId":this.siteId,//站点号
  84 +
  85 + "classId":this.classId,
  86 + "className":this.className,
  87 + "classType":this.classType,//课堂类型
  88 + "classStatus":this.classStatus,//课堂的状态
  89 + "classStartTime":this.classStartTime,//课堂点击开始时间
  90 + "classEndTime":this.classEndTime,//最后一次的时间(点暂停或结束),每次发送数据都获取当前时间戳
  91 + "classTimestamp":this.recordTimestamp,//相对于点开始课堂的时间戳
  92 +
  93 +
  94 + "recordStatus":this.recordStatus,//当前录制状态
  95 + "recordTimestamp":this.recordTimestamp,//相对于开始录制的时间戳
  96 + "recordStreamName":this.recordStreamName,//录制的文件名
  97 + "recordDownloadUrl":this.recordDownloadUrl,//下载地址
  98 +
  99 + "systemTimestamp":this.systemTimestamp//当前的系统时间戳
  100 + }
  101 + }
  102 + }
  103 + static set classStatusInfo(_param){
  104 +
  105 + }
72 // 判断自己是否主持人角色 106 // 判断自己是否主持人角色
73 static get isHost(){ 107 static get isHost(){
74 if(this.userRole ==ApeConsts.host){ 108 if(this.userRole ==ApeConsts.host){
@@ -199,6 +233,7 @@ GlobalConfig.role=1; @@ -199,6 +233,7 @@ GlobalConfig.role=1;
199 233
200 GlobalConfig.userId=0; 234 GlobalConfig.userId=0;
201 GlobalConfig.userName=""; 235 GlobalConfig.userName="";
  236 +
202 GlobalConfig.password=""; 237 GlobalConfig.password="";
203 GlobalConfig.userType=8; 238 GlobalConfig.userType=8;
204 GlobalConfig.h5Module=0; 239 GlobalConfig.h5Module=0;
@@ -223,16 +258,21 @@ GlobalConfig.userIP="";//用户当前IP @@ -223,16 +258,21 @@ GlobalConfig.userIP="";//用户当前IP
223 258
224 GlobalConfig.className= ""; // 课程名称 259 GlobalConfig.className= ""; // 课程名称
225 GlobalConfig.classId= ""; // 课程号 260 GlobalConfig.classId= ""; // 课程号
  261 +GlobalConfig.classType=ApeConsts.CLASS_TYPE_INTERACT;//1:互动课堂,2:直播课堂
  262 +GlobalConfig.classStatus=ApeConsts.CLASS_STATUS_WAIT;// 0;//课堂还未开始 1;//直播中 2 //课间休息 3已经停止
  263 +
  264 +
226 GlobalConfig.recordStartTime= ""; 265 GlobalConfig.recordStartTime= "";
227 GlobalConfig.recordStartTimestam = ""; 266 GlobalConfig.recordStartTimestam = "";
228 GlobalConfig.recordEndTimestamp = ""; 267 GlobalConfig.recordEndTimestamp = "";
229 GlobalConfig.recordTimestamp= ""; 268 GlobalConfig.recordTimestamp= "";
  269 +
230 GlobalConfig.recordEndTime= ""; 270 GlobalConfig.recordEndTime= "";
231 GlobalConfig.recordPlayURL= ""; 271 GlobalConfig.recordPlayURL= "";
232 GlobalConfig.recordConfigFile = ""; // 录制脚本文件 272 GlobalConfig.recordConfigFile = ""; // 录制脚本文件
233 GlobalConfig.tickValues={}; // 滚动条关键点,用于快进快退 273 GlobalConfig.tickValues={}; // 滚动条关键点,用于快进快退
234 274
235 -GlobalConfig.classType=ApeConsts.CLASS_TYPE_INTERACT;//1:互动课堂,2:直播课堂 275 +
236 276
237 GlobalConfig.meetingParam={};//Sass直接返回的所有会议信息(最全) 277 GlobalConfig.meetingParam={};//Sass直接返回的所有会议信息(最全)
238 GlobalConfig.classDetail={};//Sass直接返回的当前课堂基本信息 278 GlobalConfig.classDetail={};//Sass直接返回的当前课堂基本信息
@@ -6,6 +6,21 @@ export default function ApeConsts(id) { @@ -6,6 +6,21 @@ export default function ApeConsts(id) {
6 } 6 }
7 } 7 }
8 8
  9 +//课堂状态
  10 +ApeConsts.CLASS_STATUS_WAIT= 0;//课堂还未开始
  11 +ApeConsts.CLASS_STATUS_STARTED= 1;//直播中
  12 +ApeConsts.CLASS_STATUS_PAUSE= 2;//暂停
  13 +ApeConsts.CLASS_STATUS_CLOSE= 3;//结束
  14 +
  15 +ApeConsts.CLASS_WAIT_START = "class.wait.start";//课堂还未开始
  16 +ApeConsts.CLASS_STARTING = "class.started";//直播中
  17 +ApeConsts.CLASS_PAUSING = "class.pause";//暂停
  18 +ApeConsts.CLASS_PAUSING = "class.closed";//关闭
  19 +
  20 +//课堂类型
  21 +ApeConsts.CLASS_TYPE_INTERACT= 1; // 互动课堂,通过MS转发音视频,不能进行H5观看
  22 +ApeConsts.CLASS_TYPE_LIVE= 2; // 直播课堂,通过CDN转发音视频,不能进行音视频互动
  23 +
9 //角色身份 24 //角色身份
10 ApeConsts.NR_GUEST = 0; // 客人 25 ApeConsts.NR_GUEST = 0; // 客人
11 ApeConsts.NR_NORMAL = 1;// 普通与会者 26 ApeConsts.NR_NORMAL = 1;// 普通与会者
@@ -169,19 +184,3 @@ ApeConsts.WBA_CHANGE = 2; @@ -169,19 +184,3 @@ ApeConsts.WBA_CHANGE = 2;
169 ApeConsts.WBA_OPEN = 3; 184 ApeConsts.WBA_OPEN = 3;
170 ApeConsts.WBA_DOC_ANNOTATION = 4; 185 ApeConsts.WBA_DOC_ANNOTATION = 4;
171 ApeConsts.WBA_LASER_PEN = 5; 186 ApeConsts.WBA_LASER_PEN = 5;
172 -  
173 -  
174 -  
175 -//class status  
176 -ApeConsts.CLASS_WAIT_START_STATUS= 0;//课堂还未开始  
177 -ApeConsts.CLASS_STARTING_STATUS= 1;//直播中  
178 -ApeConsts.CLASS_PAUSING_STATUS= 2;//课间休息  
179 -  
180 -ApeConsts.CLASS_WAIT_START = "class.wait.start";//课堂还未开始  
181 -ApeConsts.CLASS_STARTING = "class.starting";//直播中  
182 -ApeConsts.CLASS_PAUSING = "class.pausing";//课间休息  
183 -  
184 -  
185 -//class type  
186 -ApeConsts.CLASS_TYPE_INTERACT= 1; // 互动课堂,通过MS转发音视频,不能进行H5观看  
187 -ApeConsts.CLASS_TYPE_LIVE= 2; // 直播课堂,通过CDN转发音视频,不能进行音视频互动  
@@ -168,7 +168,7 @@ class ConferApe extends Ape { @@ -168,7 +168,7 @@ class ConferApe extends Ape {
168 //optional RCPduType_E type = 1 [default = RCPDU_REG_TABLE_UPDATE_PDU]; 168 //optional RCPduType_E type = 1 [default = RCPDU_REG_TABLE_UPDATE_PDU];
169 //repeated RCRegistryTableItemPdu items = 2; 169 //repeated RCRegistryTableItemPdu items = 2;
170 whiteBoardUpdateItem.type = pdu.RCPDU_REG_TABLE_UPDATE_PDU;// 170 whiteBoardUpdateItem.type = pdu.RCPDU_REG_TABLE_UPDATE_PDU;//
171 - whiteBoardUpdateItem.items.push(tableItemPdu); 171 + whiteBoardUpdateItem.items.push(tableItemPdu);
172 172
173 173
174 let updateObjPdu = new pdu['RCRegistryUpdateObjPdu']; 174 let updateObjPdu = new pdu['RCRegistryUpdateObjPdu'];
@@ -189,7 +189,56 @@ class ConferApe extends Ape { @@ -189,7 +189,56 @@ class ConferApe extends Ape {
189 this.sendUniform(adapterPdu,true); 189 this.sendUniform(adapterPdu,true);
190 } 190 }
191 191
  192 + //更新会议状态
  193 + sendUpdaterClassStatus(_param){
  194 + loger.log('sendUpdaterClassStatus----------');
  195 + if(_param==null||EngineUtils.isEmptyObject(_param)){
  196 + loger.log('sendUpdaterClassInfo,参数错误');
  197 + this._emit(MessageTypes.MCU_ERROR,MessageTypes.ERR_APE_INTERFACE_PARAM_WRONG);
  198 + return ;
  199 + }
  200 + itemIdx=_param.itemIdx;
  201 + let whiteBoardModelPdu = this.packPdu(_param,itemIdx);
  202 + console.log(whiteBoardModelPdu);
  203 +
  204 + if(whiteBoardModelPdu==null){
  205 + loger.log('sendUpdaterClassInfo,参数错误');
  206 + this._emit(MessageTypes.MCU_ERROR,MessageTypes.ERR_APE_INTERFACE_PARAM_WRONG);
  207 + return ;
  208 + }
  209 +
  210 + let tableItemPdu = new pdu['RCRegistryTableItemPdu'];
  211 + tableItemPdu.itemIdx=itemIdx;
  212 + tableItemPdu.owner = 0;//收到flash的是这个值,不清楚先写固定
  213 + tableItemPdu.registerObjId=ApeConsts.CONFERENCE_OBJ_TABLE_ID;
  214 + tableItemPdu.itemData =whiteBoardModelPdu.toArrayBuffer();
  215 +
  216 +
  217 + //updater
  218 + let whiteBoardUpdateItem = new pdu['RCRegistryTableUpdateItemPdu'];
  219 + //optional RCPduType_E type = 1 [default = RCPDU_REG_TABLE_UPDATE_PDU];
  220 + //repeated RCRegistryTableItemPdu items = 2;
  221 + whiteBoardUpdateItem.type = pdu.RCPDU_REG_TABLE_UPDATE_PDU;//
  222 + whiteBoardUpdateItem.items.push(tableItemPdu);
  223 +
  224 +
  225 + let updateObjPdu = new pdu['RCRegistryUpdateObjPdu'];
  226 + updateObjPdu.objId = ApeConsts.CONFERENCE_OBJ_TABLE_ID;
  227 + updateObjPdu.subType = whiteBoardUpdateItem.type;
  228 + updateObjPdu.userData = whiteBoardUpdateItem.toArrayBuffer();
192 229
  230 + //同步
  231 + let adapterItemPdu = new pdu['RCAdapterItemPdu'];
  232 + adapterItemPdu.type = pdu.RCPDU_REG_UPDATE_OBJ;
  233 + adapterItemPdu.itemData = updateObjPdu.toArrayBuffer();
  234 +
  235 + let adapterPdu = new pdu['RCAdapterPdu'];
  236 + adapterPdu.type = pdu.RCPDU_REG_ADAPTER;
  237 + adapterPdu.item.push(adapterItemPdu);
  238 +
  239 + console.log("会议发送更新数据111============");
  240 + this.sendUniform(adapterPdu,true);
  241 + }
193 242
194 ///////白板数据的封包和解包///////////////////////////////////////// 243 ///////白板数据的封包和解包/////////////////////////////////////////
195 packPdu(_param,_itemIdx){ 244 packPdu(_param,_itemIdx){