mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 09:41:20 -08:00
refactor(mediabunny): [PKG-MB-08] finish typed media capability boundaries
This commit is contained in:
1 parent
5e28dfee95
commit
fb9fb23f53
25 files changed
+2698
-30
No files matched your search
@@ -1,9 +1,10 @@
|
||||
import type { Input } from 'mediabunny'
|
||||
import type { AudioBufferSink, CanvasSink, Input } from 'mediabunny'
|
||||
import type { ProxyOptions } from './engine-types'
|
||||
import type EventTarget from './EventTarget'
|
||||
import type { PlaybackMedia } from './media'
|
||||
|
||||
export interface AudioPort {
|
||||
readonly audioSink: AudioBufferSink | null
|
||||
cancelPending: () => void
|
||||
readonly currentTime: number
|
||||
duration: number
|
||||
@@ -19,6 +20,7 @@ export interface AudioPort {
|
||||
}
|
||||
|
||||
export interface VideoPort {
|
||||
readonly videoSink: CanvasSink | null
|
||||
cancelPending: () => void
|
||||
width: number
|
||||
height: number
|
||||
|
||||
Reference in new issue
Block a user