feat(html): reorganize import paths by use case (#480)

This commit is contained in:
rahim
2026-02-09 20:49:42 +11:00
committed by GitHub
parent 5f5ffb9f0a
commit 870cbb77e4
18 changed files with 178 additions and 84 deletions
+5
View File
@@ -51,6 +51,11 @@ export type AudioFeatures = [
PlayerFeature<MediaBufferState>,
];
// TODO: Define background video features (e.g., playback, source, buffer)
export type BackgroundFeatures = [];
export type VideoPlayerStore = PlayerStore<VideoFeatures>;
export type AudioPlayerStore = PlayerStore<AudioFeatures>;
export type BackgroundPlayerStore = PlayerStore<BackgroundFeatures>;
@@ -1,4 +1,4 @@
import type { AudioFeatures, VideoFeatures } from '../../media/types';
import type { AudioFeatures, BackgroundFeatures, VideoFeatures } from '../../media/types';
import { bufferFeature } from './buffer';
import { fullscreenFeature } from './fullscreen';
import { pipFeature } from './pip';
@@ -29,3 +29,6 @@ export const video: VideoFeatures = [
];
export const audio: AudioFeatures = [playbackFeature, volumeFeature, timeFeature, sourceFeature, bufferFeature];
// TODO: Add background video features (e.g., playback, source, buffer)
export const background: BackgroundFeatures = [];