refactor(mediabunny): [PKG-MB-08] finish typed media capability boundaries

This commit is contained in:
Harvey Zhao committed 2026-09-12 21:51:47 +08:00
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