Create a media NAP service handler with navigator.mediaSession integration.
Implements the 5 napplet->shell media.* request types defined in
@napplet/nap/media. Only media.session.create produces a reply
envelope (media.session.create.result) — the remaining four
(session.update, session.destroy, state, capabilities) are
fire-and-forget per the NAP spec.
Unknown media.* actions produce a <type>.error envelope so
napplets are never left hanging on a malformed request.
Optional host callbacks for session lifecycle + state, plus
mediaSessionTarget and documentTarget for test injection, and an optional
hostBridge for native-OS media backend delegation.
Create a media NAP service handler with navigator.mediaSession integration.
Implements the 5 napplet->shell media.* request types defined in
@napplet/nap/media. Onlymedia.session.createproduces a reply envelope (media.session.create.result) — the remaining four (session.update,session.destroy,state,capabilities) are fire-and-forget per the NAP spec.Unknown
media.*actions produce a<type>.errorenvelope so napplets are never left hanging on a malformed request.