Commit d6439f2ed54a1c5dd0f28a94042069c1fb1531e6

Authored by ww
1 parent 18ee5481

fix: 修复视频列表预览rtsp播放未携带token

... ... @@ -11,7 +11,7 @@ export type VideoCancelModalParamsType = {
11 11 channelId?: string;
12 12 id?: string;
13 13 playerProps?: Recordable;
14   - getPlayUrl: () => Promise<Record<'url' | 'type', string>>;
  14 + getPlayUrl: () => Promise<Record<'url' | 'type', string> & { withToken?: string }>;
15 15 };
16 16
17 17 //视频通道权限标识枚举
... ...
... ... @@ -30,12 +30,13 @@
30 30 playUrl.value = null;
31 31 options.value = null;
32 32 setModalProps({ loading: true, loadingTip: '视频加载中...' });
33   - const { url, type } = await record.getPlayUrl();
  33 + const { url, type, withToken } = await record.getPlayUrl();
34 34 playUrl.value = url;
35 35 options.value = record;
36 36 options.value.playerProps = {
37 37 ...(options.value?.playerProps || {}),
38 38 streamType: type,
  39 + withToken: withToken,
39 40 };
40 41 } catch (error) {
41 42 } finally {
... ...