GitShow/Rich-Harris/phonograph
Rich-Harris

phonograph

๐Ÿ”Š Stream large audio files without the dreaded 'DOMException: play() can only be initiated by a user gesture' error.

by Rich-Harris
Star on GitHubForknpm

TypeScript

212 stars12 forks1 contributorQuiet ยท 4y agoSince 2017

Meet the team

See all 1 on GitHub โ†’
Rich-Harris
Rich-Harris85 contributions

Languages

View on GitHub โ†’
TypeScript96.2%
HTML2.5%
JavaScript1.3%

Commit activity

Last 12 weeks ยท 0 commits

Full graph โ†’

Community health

1 of 6 standards met

Community profile โ†’
28
โœ“READMEโ—‹Licenseโ—‹Contributingโ—‹Code of Conductโ—‹Issue Templateโ—‹PR Template

Recent PRs & issues

Quiet ยท 8 in progress ยท Last activity 4y ago
See all on GitHub โ†’
weepy
doesn't always work in safari OpenIssue

Hi I'm running the demo on a recent mac. The demo.html seems to work fine in chrome, but only works intermittently in safari ... clicking play causes no sound to play, although it does seem to think it's playing.

weepy ยท 3y ago
weepy
install errorOpenIssue

hiya when I download this and run npm i, i get the following error Am I doing something wrong ?

weepy ยท 3y ago
TaToTanWeb
Gapless playback between consecutive audiosOpenIssue

Hi, first of all thank you for the amazing work. So far unfortunately I haven't been able (probably because of my inexperience) to play two songs consecutively without hearing a gap between them, which I would like to avoid, for example when listening to live albums. Here's my simple attempt: Do you have any idea on how this can be done? Thanks :)

TaToTanWeb ยท 3y ago

Recent fixes

View closed PRs โ†’
nlicitra
"decode" Event CallbackMergedPR

For audio visualizations, such as rendering a waveform, its helpful to have access to the raw, decoded audio data. I poked around the source a bit but didn't see a clear way to access that decoded data so I added this event. I wanted to get this change in front of you and get your thoughts. Thanks!

nlicitra ยท 5y ago
weepy
Only plays first tiny bitClosedIssue

I replaced "deeptone.mp3" with "https://przm.app/munasbNenOzonJ74pW.mp3" and I can see that it downloads the whole mp3 in the network activity, and then is buffered. However it only plays the first 300ms or so of the song before stopping. any ideas ?

weepy ยท 6y ago
Structured data for AI agents

Repository: Rich-Harris/phonograph. Description: ๐Ÿ”Š Stream large audio files without the dreaded 'DOMException: play() can only be initiated by a user gesture' error. Stars: 212, Forks: 12. Primary language: TypeScript. Languages: TypeScript (96.2%), HTML (2.5%), JavaScript (1.3%). Open PRs: 8, open issues: 9. Last activity: 4y ago. Community health: 28%. Top contributors: Rich-Harris.

ยท@ofershap

Replace github.com with gitshow.dev