...
|
...
|
@@ -272,7 +272,7 @@ class Room extends \yii\db\ActiveRecord |
|
|
if ($status == 1){//启用
|
|
|
$ret = QcloudApiClient::self()->StartLVBChannel([$model->roomQchannel->channel_id]);
|
|
|
}elseif ($status == 0){//禁用
|
|
|
if ($model->videoRecording){
|
|
|
/*if ($model->videoRecording){
|
|
|
//停止正在录制的视频
|
|
|
if ($model->videoRecording->task_id){
|
|
|
if (QcloudApiClient::self()->StopRecord($model->roomQchannel->channel_id,$model->videoRecording->task_id)){
|
...
|
...
|
@@ -280,7 +280,7 @@ class Room extends \yii\db\ActiveRecord |
|
|
$model->videoRecording->save();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}*/
|
|
|
$ret = QcloudApiClient::self()->StopLVBChannel([$model->roomQchannel->channel_id]);
|
|
|
}
|
|
|
|
...
|
...
|
|