refactor(packages): move feature presets to subpath exports (#633)

This commit is contained in:
rahim
2026-02-27 17:06:36 -08:00
committed by GitHub
parent 40606ff188
commit c92a9f914f
63 changed files with 266 additions and 187 deletions
@@ -42,10 +42,11 @@ function VolumeSlider() {
<FrameworkCase frameworks={["html"]}>
```ts
import { createPlayer, features, MediaElement } from '@videojs/html';
import { createPlayer, MediaElement } from '@videojs/html';
import { videoFeatures } from '@videojs/html/video';
import { selectVolume } from '@videojs/core/dom';
const { PlayerController, context } = createPlayer({ features: features.video });
const { PlayerController, context } = createPlayer({ features: videoFeatures });
class VolumeSlider extends MediaElement {
#volume = new PlayerController(this, context, selectVolume);