|  | 
 
| 实现功能:在平台播放设备实时视频同时录像。 麻烦帮忙看下是哪里问题呢,平台能播放设备实时视频但是在进行录像的时候报错了,错误信息如下:
 
 
 实现代码如下:
 function openVideo() {
 if (!session) { return; }
 
 var chanel = session.swGetPuChanel(puid, 0);
 if (chanel) {
 var rc = chanel.swOpenEx({
 div:'id_show_video',
 prototype: prototype,
 media: jSW.MEDIADIR.VIDEORECV | jSW.MEDIADIR.AUDIORECV,
 callback: function (opt, response) {
 }
 });
 if (rc != jSW.RcCode.RC_CODE_S_OK) {
 iot.notify.error('视频获取失败!');
 } else {
 var pu = session.swGetPu(puid);
 if (pu) {
 pu.swSetPuManualrecord({
 istart: 1,
 ilength: -1,
 callback: function(options, response, data) {
 console.log('response = ' + JSON.stringify(response));
 }
 });
 }
 }
 } else {
 iot.notify.error('未获取到指定设备视频通道!');
 }
 }
 | 
 |