Skip to content

feat: add beat preview player with 30-second clip #2

Description

@brightpixel-dev

Overview

Buyers need to preview beats before purchasing a license. Implement a 30-second audio preview player that streams from IPFS. The full untagged beat should only be accessible after a license purchase.

Acceptance Criteria

  • Audio plays in-card (no page navigation) on 'Preview' button click
  • Hard stop at 30 seconds
  • Play/pause toggle with keyboard support (spacebar)
  • Progress bar showing elapsed time
  • Only one preview plays at a time (pause others when a new one starts)
  • Works on mobile browsers

Technical Approach

Use the HTML5 <audio> element with a time-limit enforced via ontimeupdate. IPFS gateway URL from ipfs_cid field on the sample.

Branch: feat/audio-preview

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions