Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
T
Tidal
  • Overview
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • PLN
  • Tidal
  • Repository

Switch branch/tag
  • Tidal
  • armada
  • serve.py
Find file
BlameHistoryPermalink
  • PLN (Algolia)'s avatar
    fix(foundry,armada): sound audio streaming — HTTP/1.1, show duration, offer the original · 7c3154a4
    PLN couldn't hear the Loituma stems and wanted the original too. The bytes/format
    were fine (PCM_16/44.1k, audio/x-wav, 206 Range all verified) — the problems were
    presentation + protocol:
    
    - Both audio servers defaulted to HTTP/1.0, which closes the connection after each
      response. <audio> seeking fires many small Range requests, so HTTP/1.0 makes
      playback/seek flaky in real browsers. Set protocol_version="HTTP/1.1" on the
      Foundry Handler and armada RangeHandler (every response sets an exact
      Content-Length, so keep-alive is safe). Reliable streaming + seeking now.
    - The stem players used preload="none", so they showed a misleading "0:00 / 0:00"
      until play — easy to read as "broken". Now preload="metadata": durations load and
      display (verified 164s on all five).
    - The ORIGINAL is now offered on separated cards too (an "original" row), not just on
      raw catches — so PLN can A/B the source against each stem.
    
    Verified end to end in Chromium: original + all 4 stems load 164s duration and
    currentTime advances on play, no errors.
    PLN (Algolia) authored Jun 25, 2026
    7c3154a4
serve.py 7.24 KB
EditWeb IDE
×

Replace serve.py

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.