Authored by wuxiao

回放列表添加视频上传时间

编辑房间添加直播状态编辑(display:none)
... ... @@ -306,7 +306,8 @@
"pic": "http:///global?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"url": "qwe",
"live_title": "qwe",
"audience_num": 0
"audience_num": 0,
"create_time": 1472034199
},
{
"video_id": 3,
... ... @@ -317,7 +318,8 @@
"pic": "http:///global?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"url": "qwe",
"live_title": "qwe",
"audience_num": 0
"audience_num": 0,
"create_time": 1472034199
}
],
"timestamp": 1471339317,
... ... @@ -336,6 +338,7 @@
| url | str|回看腾讯视频连接
| live_title | str|直播时的房间标题
| audience_num | int|正在观看人数
| create_time | int|视频上传时间
# **直播房间详情**
... ...
... ... @@ -95,12 +95,12 @@ $this->registerJs($this->blocks['javascript'],View::POS_END)
</div>
</div>
<!--<div class="form-group">
<div class="form-group" style="display: none">
<label class="col-sm-3 control-label">直播状态: </label>
<div class="col-sm-2">
<?php echo Html::dropDownList('living', $model->living,Yii::$app->params['config']['room_living'], ['class' => 'form-control']);?>
</div>
</div>-->
</div>
<div class="form-group" id="uploader">
<label class="col-sm-3 control-label">头图: <span class="asterisk">*</span></label>
... ...
... ... @@ -159,6 +159,7 @@ class LivingController extends BaseController
'live_title'=>$model->live_title,
'live_room_id'=>(int)$model->room_id,
'audience_num'=>(int)($model->audience_num+$model->replay_num),
'create_time'=>(int)$model->create_time,
];
$ret[$k] = $row;
}
... ...