kernl API
    Preparing search index...

    Function createKernlMedia

    • The media service under the person's media settings (D-063). kehto keeps the sessions, plays what an applet asks the shell to play, and mirrors the current one to the operating system; this decides what may play at once, whether a session may start on its own, and what a hidden window does. A session the shell pauses on its own is paused with focus-lost, never user, and only a session it paused that way is resumed, with focus-gained.

      Parameters

      • options: KernlMediaOptions

        Storage for the settings, the playback backend and the OS bridge.

      Returns KernlMedia

      The service and the player's view of it.

      const media = createKernlMedia({ storage, playback: createBrowserMediaPlayback({ resource }), isFocused: (windowId) => wm.isFocused(windowId) });
      registry.media = media.handler;
      media.sessions$.subscribe((sessions) => draw(sessions));