Comments (3)
@himanshu31shr Hi~ The component current version use <audio preload="auto"/>
, so download the entire file as a result of initialization. that's so bad . i think should be remove preload
attribute
I'm try use Web Audio Api
suport stream , and download section in the next version .
from react-music-player.
@lijinke666 Sounds great! For now i managed to build api for streaming audio using node fs. Is there any other way around you know?
from react-music-player.
if you are use fs
module . I'dont know your context is server
? are you server rendering?
if it is client
, Should not be used fs
currently I'm still trying.
const reader = new FileReader()
reader.onload = (e) => {
const result = e.target.result
const audio = new AudioContext()
audio.decodeAudioData(result, (buffer) => {
const node = audio.createBufferSource()
node.buffer = buffer
node.connect(audio.destination)
node.start(0)
}, (err) => {
})
}
reader.readAsArrayBuffer(YOUR_DATA)
or use URL.createObjectURL
audio.src = window.URL.createObjectURL(BLOB);
in the feat-audio-stream
I have fixed some known bugs 。Audio loading has also become faster 。and I'm still trying something , We can also help each other。like pull a pr
👍
from react-music-player.
Related Issues (20)
- Play by index zero is not working
- Responsive is not working
- Is there a way to stop rotating image? HOT 1
- UNSAFE_componentWillReceiveProps error in strict mode HOT 1
- Songs restarting mid song
- AIFC Audio File Format Support
- How can i modify the default green color of the player?
- Property "remember: true," is not working.
- error - TypeError: _sortablejs.Swap is not a constructor HOT 4
- Mobile - only One UI Samsung - Need to touch multiple times to open main player from mini player
- Click delete audio lists, don't want to stop current playing track HOT 1
- 移动端页面音量调节支持?
- 写的啥啊
- NextJS HOT 4
- Disable Drag and Drop on Playlist HOT 3
- Unable to install (npm & yarn) HOT 2
- Media session does not load image
- Got this error : Cannot set properties of null (setting 'Sortable1685030262830') TypeError: Cannot set properties of null (setting 'Sortable1685030262830') HOT 3
- error in next Js 13 HOT 3
- Giving a null issue onDestroy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-music-player.