-
-
-
- {{scope.row.StreamPath}} |
- {{scope.row.Type||"await"}} |
-
-
- |
- {{SoundFormat(scope.row.AudioInfo.SoundFormat)}} |
- {{SoundRate(scope.row.AudioInfo.SoundRate)}} |
- {{scope.row.AudioInfo.SoundType}} |
- {{CodecID(scope.row.VideoInfo.CodecID)}} |
- {{scope.row.VideoInfo.SPSInfo.Width}}x{{scope.row.VideoInfo.SPSInfo.Height}} |
- {{scope.row.AudioInfo.BPS}}/{{scope.row.VideoInfo.BPS}} |
- {{getSubscriberCount(scope.row)}} |
-
-
+
+
+ 预览
+
+
@@ -44,69 +29,6 @@ export default {
showPreview: false,
currentStream: null,
showSubscribers: false,
- columns: [
- {
- title: "房间",
- name: "StreamPath",
- sortable: true,
- align: "center",
-
- },
- {
- title: "类型",
- name: "Type",
- sortable: true,
- align: "center",
-
- },
- {
- title: "开始时间",
- name: "StartTime",
- sortable: true,
- align: "center",
-
- },
- {
- title: "音频格式",
- name: "AudioInfo",
- align: "center",
-
- },
- {
- title: "采样率",
- name: "AudioInfo",
- align: "center",
-
- },
- {
- title: "声道",
- name: "AudioInfo",
- align: "center",
-
- },
- {
- title: "视频格式",
- name: "VideoInfo",
- align: "center",
-
- },
- {
- title: "分辨率",
- name: "VideoInfo",
- align: "center",
-
- },
- {
- title: "码率Bps",
- align: "center",
-
- },
- {
- title: "订阅者",
- align: "center",
-
- }
- ]
};
},
computed: {
@@ -115,16 +37,7 @@ export default {
}
},
methods: {
- getSubscriberCount(item) {
- if (
- this.currentStream &&
- this.currentStream.StreamPath == item.StreamPath
- ) {
- this.currentStream = item;
- }
- return item.SubscriberInfo ? item.SubscriberInfo.length : 0;
- },
- preview(index, row, event) {
+ preview({row}) {
this.currentStream = row;
this.onPlay("ws://" + this.host + "/" + row.StreamPath);
},
diff --git a/ui/src/components/Subscribers.vue b/ui/src/components/Subscribers.vue
index f4587a6..476e303 100644
--- a/ui/src/components/Subscribers.vue
+++ b/ui/src/components/Subscribers.vue
@@ -5,7 +5,6 @@