Runtime + origin registry
A MediaProxy ready to route media.* envelopes
import { createMediaProxy, originRegistry, createShellBridge } from '@kehto/shell';
const bridge = createShellBridge(hooks);
const mediaProxy = createMediaProxy({
runtime: bridge.runtime,
originRegistry,
});
// Shell-UI-initiated media command:
mediaProxy.emit('win-player', {
type: 'media.command',
sessionId: 's1',
action: 'seek',
value: 120,
});
Factory for the canonical media-domain proxy.