fix(html): discover media elements and attach store target via DOM (#481)

This commit is contained in:
rahim
2026-02-10 00:32:23 +11:00
committed by GitHub
parent 00fdf966ca
commit 5eab1dbb2f
11 changed files with 79 additions and 58 deletions
+4 -5
View File
@@ -83,14 +83,13 @@ export function createPlayer(config: CreatePlayerConfig<AnyPlayerFeature[]>): Cr
return createStore<PlayerTarget>()(slice);
}
const ctx = playerContext;
const PlayerMixin = createPlayerMixin<PlayerStore>(ctx, create);
const PlayerMixin = createPlayerMixin<PlayerStore>(playerContext, create);
const PlayerElement = PlayerMixin(MediaElement);
const ProviderMixin = createProviderMixin<PlayerStore>(ctx, create);
const ContainerMixin = createContainerMixin<PlayerStore>(ctx);
const ProviderMixin = createProviderMixin<PlayerStore>(playerContext, create);
const ContainerMixin = createContainerMixin<PlayerStore>(playerContext);
return {
context: ctx,
context: playerContext,
create,
PlayerController,
PlayerElement,