mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-30 03:51:25 -08:00
refactor(mediabunny): [PKG-MB-03] type inputs and cancel owned loads
This commit is contained in:
1 parent
03451c029b
commit
adba8a3d12
35 files changed
+11260
-3327
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import type { Input, InputAudioTrack, InputVideoTrack } from 'mediabunny'
|
||||
|
||||
export type TrackMode = 'auto' | 'manual'
|
||||
|
||||
export interface PlaybackMedia {
|
||||
input: Input
|
||||
videoTrack: InputVideoTrack | null
|
||||
audioTrack: InputAudioTrack | null
|
||||
duration: number
|
||||
isLive: boolean
|
||||
isHls: boolean
|
||||
videoMode: TrackMode
|
||||
audioMode: TrackMode
|
||||
}
|
||||
Reference in new issue
Block a user