mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(html): reorganize import paths by use case (#480)
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user