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:
@@ -40,11 +40,11 @@ export interface CreatePlayerResult<Store extends PlayerStore> {
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* import { features } from '@videojs/core/dom';
|
||||
* import { createPlayer, MediaElement } from '@videojs/html';
|
||||
* import { videoFeatures } from '@videojs/html/video';
|
||||
*
|
||||
* const { ProviderMixin, ContainerMixin, PlayerController, context } = createPlayer({
|
||||
* features: features.video,
|
||||
* features: videoFeatures,
|
||||
* });
|
||||
*
|
||||
* // Provider element: owns the store, provides context to descendants
|
||||
|
||||
Reference in New Issue
Block a user