mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
refactor(packages): move feature presets to subpath exports (#633)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import type { AudioFeatures, BackgroundFeatures, VideoFeatures } from '../../media/types';
|
||||
import { bufferFeature } from './buffer';
|
||||
import { controlsFeature } from './controls';
|
||||
import { fullscreenFeature } from './fullscreen';
|
||||
@@ -10,6 +9,8 @@ import { textTrackFeature } from './text-track';
|
||||
import { timeFeature } from './time';
|
||||
import { volumeFeature } from './volume';
|
||||
|
||||
export { audioFeatures, backgroundFeatures, videoFeatures } from './presets';
|
||||
|
||||
// Short aliases
|
||||
export {
|
||||
bufferFeature as buffer,
|
||||
@@ -23,28 +24,3 @@ export {
|
||||
timeFeature as time,
|
||||
volumeFeature as volume,
|
||||
};
|
||||
|
||||
export const video: VideoFeatures = [
|
||||
playbackFeature,
|
||||
playbackRateFeature,
|
||||
volumeFeature,
|
||||
timeFeature,
|
||||
sourceFeature,
|
||||
bufferFeature,
|
||||
fullscreenFeature,
|
||||
pipFeature,
|
||||
controlsFeature,
|
||||
textTrackFeature,
|
||||
];
|
||||
|
||||
export const audio: AudioFeatures = [
|
||||
playbackFeature,
|
||||
playbackRateFeature,
|
||||
volumeFeature,
|
||||
timeFeature,
|
||||
sourceFeature,
|
||||
bufferFeature,
|
||||
];
|
||||
|
||||
// TODO: Add background video features (e.g., playback, source, buffer)
|
||||
export const background: BackgroundFeatures = [];
|
||||
|
||||
@@ -5,6 +5,7 @@ export * from './fullscreen';
|
||||
export * from './pip';
|
||||
export * from './playback';
|
||||
export * from './playback-rate';
|
||||
export * from './presets';
|
||||
export * from './source';
|
||||
export * from './text-track';
|
||||
export * from './time';
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
import type { AudioFeatures, BackgroundFeatures, VideoFeatures } from '../../media/types';
|
||||
import { bufferFeature } from './buffer';
|
||||
import { controlsFeature } from './controls';
|
||||
import { fullscreenFeature } from './fullscreen';
|
||||
import { pipFeature } from './pip';
|
||||
import { playbackFeature } from './playback';
|
||||
import { playbackRateFeature } from './playback-rate';
|
||||
import { sourceFeature } from './source';
|
||||
import { textTrackFeature } from './text-track';
|
||||
import { timeFeature } from './time';
|
||||
import { volumeFeature } from './volume';
|
||||
|
||||
export const videoFeatures: VideoFeatures = [
|
||||
playbackFeature,
|
||||
playbackRateFeature,
|
||||
volumeFeature,
|
||||
timeFeature,
|
||||
sourceFeature,
|
||||
bufferFeature,
|
||||
fullscreenFeature,
|
||||
pipFeature,
|
||||
controlsFeature,
|
||||
textTrackFeature,
|
||||
];
|
||||
|
||||
export const audioFeatures: AudioFeatures = [
|
||||
playbackFeature,
|
||||
playbackRateFeature,
|
||||
volumeFeature,
|
||||
timeFeature,
|
||||
sourceFeature,
|
||||
bufferFeature,
|
||||
];
|
||||
|
||||
// TODO: Add background video features (e.g., playback, source, buffer)
|
||||
export const backgroundFeatures: BackgroundFeatures = [];
|
||||
Reference in New Issue
Block a user