feat: add uniapp match live stream switching
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user