00:00 / 00:00

Chatterbox

Audio-Only Mode

LAPLACE Chatterbox gives bilibili web live rooms the "Audio Only" switch the official web player lacks. Turning it on stops the native HLS video stream from being pulled and requests an only_audio=1 audio-only stream (FLV container, AAC) through bilibili's official app API, played in the background by mpegts.js

Useful when you leave a stream running only to listen, want to save data, or want to keep a high-bitrate picture off your GPU and bandwidth

Features

  • Audio-only stream: measured at about 180 kbps against roughly 1700 kbps for the original 1080P video stream, a saving of about 90% of the bandwidth, rather than merely muting or hiding the video
  • Three playback modes: a playback mode picker is injected next to the "Live Assistant" floating button, switching between "Video", "Audio Only", and "Adaptive Audio"
  • Adaptive Audio: switches to audio only 3 seconds after the page goes to the background and restores video the moment it returns to the foreground, so briefly switching away never interrupts the picture
  • Seamless switching: the new audio or video stream is prepared in the background and takes over only once it actually starts playing, avoiding a moment of silence during the switch
  • Volume sync: the switch inherits the native player's volume and mute state, and returning to video carries back any volume changes made during audio-only playback
  • Volume control: during audio-only playback, a mute button and an inline volume slider appear inside the status bar fold group and collapse or expand together with streamer info items via the fold button (Collapse Streamer Info and Volume / Expand Streamer Info and Volume); when a narrow viewport collapses the status bar to icon-only mode, hovering, focusing, or tapping the mute button reveals a vertical volume slider above it
  • Lossless quality restore: restoring video calls the native reload(), which restores the quality level you had selected
  • Guard mechanism: when another script (BLTH's automatic quality module, for example) reactivates the native player, it is stopped again automatically so that audio and video streams never download at the same time
  • Low-viewer rooms and CDN failover: supports low-viewer rooms without server-side video transcodes, walks all available codec slots, and fails over automatically to backup CDN hosts when the primary edge fails or times out
  • Automatic reconnect: when the audio stream drops (the streamer restarts the stream, for example), it reconnects automatically at increasing intervals of 2 / 4 / 8 / 15 / 30 seconds, up to 20 retries; the stream URL refreshes every 50 minutes so its signature never expires
  • On-demand mpegts.js loading: pulled from a CDN only the first time you switch to audio-only playback (about 120 KB), so anyone who never uses it pays no extra loading cost
  • Persistent state: the selected playback mode survives a page refresh and restores itself the next time you enter a live room
  • Graceful degradation: on a load failure, an API error, or a room that is not live, the native player is restored and a notice is logged

Usage

Switch Playback Mode

  • Enter a bilibili live room and wait for the native player to start playing
  • Click the playback mode button (showing the current mode's name) next to the "Live Assistant" button in the lower right corner of the page, then pick a mode from the list that pops up
  • After switching to audio only, the picture hides and a "🎧 LAPLACE Chatterbox - Audio-Only Mode" notice appears
  • Open the list again and choose "Video" to resume native video playback

Playback Modes

ModeDescription
VideoPlays the live picture normally (default)
Audio OnlyPlays audio only, saving about 90% of bandwidth
Adaptive AudioSwitches to audio only after the page has been in the background for 3 seconds and restores video the moment it returns to the foreground

Status Indicator

Button ColorState
GrayVideo is currently playing (including "Adaptive Audio" mode while the page is in the foreground)
PinkCurrently playing audio only

Notes

  • The audio-only stream comes from a bilibili app-side API, and a few rooms (encrypted rooms, rooms that are not live, carousel playback) may not offer one; the switch fails there and the native video is kept
  • Restoring video reloads the native player first and stops the audio stream only once video starts playing, so both streams may download briefly during the switch
  • Alongside another script that takes over the player (automatic quality switching, for example), this feature's guard checks every 1.5 seconds and stops the native video again
  • Some anti-idle scripts fake the page's visibility state; "Adaptive Audio" reads the browser's real visibility state and is unaffected by them
  • The audio-only bitrate is fixed by bilibili (about 180 kbps, mono AAC), so audio quality cannot be adjusted by hand
  • If startup fails (the mpegts.js CDN is unreachable, the API returns an error, autoplay policy blocks playback), the script rolls back to native video and logs the reason
  • If all 20 automatic reconnect attempts fail, switch back to "Video" manually and then choose audio only again
  • Audio-only mode applies to web live rooms only; it has no effect on VODs or other pages

Last updated on November 29, 2026

Tech otakus destroy the world