streams.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <div>
  2. <div class="accordion">
  3. <div class="accordion-group">
  4. <div class="accordion-heading" sc-collapse="in">
  5. <a class="accordion-toggle" href="javascript:void(0)">
  6. 视频流(Streams)列表
  7. </a>
  8. </div>
  9. <div id="collapseOne" class="accordion-body collapse">
  10. <div class="accordion-inner">
  11. <table class="table table-striped table-bordered">
  12. <tr>
  13. <th>ID</th>
  14. <th>流名称</th>
  15. <th>URL</th>
  16. <th>Vhost</th>
  17. <th>状态</th>
  18. <th>在线人数</th>
  19. <th>入口带宽</th>
  20. <th>出口带宽</th>
  21. <th>视频信息</th>
  22. <th>音频信息</th>
  23. <th>管理</th>
  24. </tr>
  25. <tr ng-repeat="stream in streams">
  26. <td><a href="javascript:void(0)" ng-click="gogogo('/streams/' + stream.id)">{{stream.id}}</a></td>
  27. <td>{{stream.name| sc_filter_less}}</td>
  28. <td>{{stream |sc_filter_streamURL}}</td>
  29. <td><a href="javascript:void(0)" ng-click="gogogo('/vhosts/' + stream.vhost)">{{stream.owner.name}}</a></td>
  30. <td>{{stream.publish.active| sc_filter_has_stream}}</td>
  31. <td>{{stream.clients}}人</td>
  32. <td>{{stream.kbps.recv_30s| sc_filter_bitrate_k}}</td>
  33. <td>{{stream.kbps.send_30s| sc_filter_bitrate_k}}</td>
  34. <td><span ng-if="stream.video">{{stream.video| sc_filter_video}}</span></td>
  35. <td><span ng-if="stream.audio">{{stream.audio| sc_filter_audio}}</span></td>
  36. <td>
  37. <a ng-href="{{stream| sc_filter_preview_url}}" target="_blank">预览</a>
  38. <a ng-show="stream.publish.active" ng-click="kickoff(stream)" href="javascript:void(0)">踢流</a>
  39. <span ng-show="support_raw_api">
  40. <a href="javascript:void(0)" ng-click="dvr(stream)">录制</a>
  41. </span>
  42. </td>
  43. </tr>
  44. </table>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. </div>