feat: add uniapp match live stream switching

This commit is contained in:
hajimi
2026-06-21 12:46:53 +08:00
parent 750ef91e29
commit 5f2e2e6c00
4 changed files with 496 additions and 1 deletions
+34
View File
@@ -1,5 +1,39 @@
import request from '@/utils/request'
export interface MatchLiveStreamOption {
title?: string
name?: string
label?: string
source_name?: string
quality?: string
url?: string
play_url?: string
play_url_m3u8?: string
default_play_url?: string
live_url?: string
[key: string]: any
}
export interface MatchLiveLineItem {
title?: string
name?: string
label?: string
live_tag?: string
source_name?: string
status?: string | number
status_text?: string
status_desc?: string
update_time?: string | number
updated_at?: string | number
source_url?: string
default_play_url?: string
play_url_m3u8?: string
play_url?: string
live_url?: string
stream_options?: MatchLiveStreamOption[]
[key: string]: any
}
export function getMatchList(data?: Record<string, any>) {
return request.get({ url: '/match/lists', data: data }, { withToken: false })
}