From 69c888f168457e1407f56baedd059b2ddcbe4567 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 12 Apr 2026 19:47:37 +0000 Subject: [PATCH 1/3] Initial plan From 6ecb276a49b3a7c8f079e4ae8846c39eef4986ca Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 12 Apr 2026 19:59:25 +0000 Subject: [PATCH 2/3] Integrate Webxdc WebView audio with Android media session - Create WebxdcMediaSessionService: a MediaSessionService backed by a stub SimpleBasePlayer that posts the system media notification when webxdc apps play audio. Handles WEBXDC_AUDIO_STARTED/STOPPED/PAUSED/ RESUMED custom SessionCommands from WebxdcActivity and relays notification play/pause button presses back to the WebView via local broadcasts. - Modify WebxdcActivity: - Connect a MediaController to WebxdcMediaSessionService in onCreate - Add notifyAudioStarted/Stopped/Paused/Resumed JS interface methods in InternalJSApi (called from webxdc.js audio event listeners) - Register a BroadcastReceiver for notification pause/resume to call evaluateJavascript to pause/resume