Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions examples/sheet-music-server/src/mcp-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ const statusEl = document.getElementById("status")!;
const sheetMusicEl = document.getElementById("sheet-music")!;
const audioControlsEl = document.getElementById("audio-controls")!;

// =============================================================================
// Audio Session
// =============================================================================

// Declare this app's audio as media playback so the platform can handle it
// correctly: background audio, lock screen controls, Dynamic Island, and
// bypassing the iOS silent switch. See https://w3c.github.io/audio-session/
if ("audioSession" in navigator) {
(navigator.audioSession as { type: string }).type = "playback";
}

// =============================================================================
// ABC Rendering
// =============================================================================
Expand Down
Loading