Authored by xiaofeng.yao@yoho.cn

Merge branch 'test' into release

@@ -485,13 +485,15 @@ @@ -485,13 +485,15 @@
485 | like_num | int|点赞数 485 | like_num | int|点赞数
486 | audience_num | int|正在观看人数 486 | audience_num | int|正在观看人数
487 | live_title | str|直播时的房间标题 487 | live_title | str|直播时的房间标题
488 -| live_start_time | int|直播开始时间(时间戳)  
489 -| live_end_time | int|直播结束时间(时间戳) 488 +| live_start_time | int|本次视频片段开始时间(时间戳)
  489 +| live_end_time | int|本次视频片段结束时间(时间戳)
490 | background_pic | str|房间背景图片url 490 | background_pic | str|房间背景图片url
491 | share_url | str|分享链接url 491 | share_url | str|分享链接url
492 | share_title | str|分享标题 492 | share_title | str|分享标题
493 | share_content | str|分享内容 493 | share_content | str|分享内容
494 494
  495 +###### notice:
  496 +回放视频时长自己播放器就能显示,不要用live_end_time-live_start_time。
495 497
496 # **获取回放弹幕** 498 # **获取回放弹幕**
497 499
@@ -153,17 +153,17 @@ @@ -153,17 +153,17 @@
153 153
154 // 文件上传过程中创建进度条实时显示。 154 // 文件上传过程中创建进度条实时显示。
155 uploader.on('uploadProgress', function(file, percentage) { 155 uploader.on('uploadProgress', function(file, percentage) {
156 - var $li = $('#' + file.id),  
157 - $percent = $li.find('.progress span');  
158 -  
159 - // 避免重复创建  
160 - if (!$percent.length) {  
161 - $percent = $('<p class="progress"><span></span></p>')  
162 - .appendTo($li)  
163 - .find('span');  
164 - }  
165 -  
166 - $percent.css('width', percentage * 100 + '%'); 156 + var $li = $( '#'+file.id ),
  157 + $percent = $li.find('.progress .progress-bar');
  158 + // 避免重复创建
  159 + if ( !$percent.length ) {
  160 + $percent = $('<div class="progress progress-striped active">' +
  161 + '<div class="progress-bar" role="progressbar" style="width: 0%">' +
  162 + '</div>' +
  163 + '</div>').appendTo($li).find('.progress-bar');
  164 + }
  165 + $li.find('p.state').text("上传中");
  166 + $percent.css( 'width', percentage * 100 + '%' );
167 }); 167 });
168 168
169 // 文件上传成功,给item添加成功class, 用样式标记上传成功。 169 // 文件上传成功,给item添加成功class, 用样式标记上传成功。
@@ -189,7 +189,7 @@ @@ -189,7 +189,7 @@
189 189
190 // 完成上传完了,成功或者失败,先删除进度条。 190 // 完成上传完了,成功或者失败,先删除进度条。
191 uploader.on('uploadComplete', function(file) { 191 uploader.on('uploadComplete', function(file) {
192 - $('#' + file.id).find('.progress').remove(); 192 + $('#' + file.id).find('.progress').remove();
193 }); 193 });
194 194
195 uploader.on('ready', function() { 195 uploader.on('ready', function() {