Giter Site home page Giter Site logo

72lions / playingchunkedmp3-webaudioapi Goto Github PK

View Code? Open in Web Editor NEW
82.0 82.0 16.0 10.93 MB

Play a chunked MP3 with the Web Audio API without having to wait for all the pieces to be loaded.

License: MIT License

JavaScript 71.62% Shell 0.31% HTML 28.06%

playingchunkedmp3-webaudioapi's Introduction

Hi there ๐Ÿ‘‹

My name is Thodoris and I'm a Staff Engineer at Spotify. I'm also the creator of the Forecast weather app and I'm a hobbyist photographer.

Greek who lives in Sweden.

  • ๐Ÿ˜„ Pronouns: He/Him
  • ๐ŸŒฑ Iโ€™m currently learning Rust
  • ๐Ÿ“ซ How to reach me: [email protected] or @thodoris_tsrds on Twitter

playingchunkedmp3-webaudioapi's People

Contributors

72lions avatar davekc avatar khairulhasanmd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

playingchunkedmp3-webaudioapi's Issues

Demo not working

Hi thought you might like to know that the demo doesn't appear to be working. I'm on Chrome 62.

on iphone this doesn't work...

I was trying to replicate this behaviour and i succeed in getting it work on Android and pc, but on iphone when it swich the source buffer the sound just stops playing... no error no console warning... probable it wait an explicit user click of every sourcebuffer ?
Any idea on how to solve this ?

Live stream

Is it possible to modify the code to support a live stream instead of a file?
In a live stream, we won't need to keep buffers after they were played and decode everything on each incoming frame.

I tried to decode and play each buffer separately with a new audioSource instead of appending everything to a single buffer but I have timing issues. Sometimes new chunks are cut or plays too fast.

Can you please explain the following?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.