Comments (3)
可以直接传bytes过来的,demo里面的服务端也是通过二进制传给前端的。前端可以直接通过websocket接收数据然后调用播放就好了。我demo里面给的就是通过websocket接收数据并播放。
websocket内的数据截图,你可以直接去我的在线demo网页里,按F12打开控制台查看。
from pcm-player.
from pcm-player.
我这能正常播放,这个报错看着像是没成功加载我的js文件(https://unpkg.com/pcm-player),你试试看这个文件能正常访问吗?如果不行就打开科学上网试试。
我主动拦截掉这个js文件能复现你的这个报错,多半是js资源加载失败导致的。
from pcm-player.
Related Issues (19)
- Call flush on destroy to make sure the buffer is played out
- 32768写成了327168 HOT 1
- safari for ios没有声音. HOT 1
- 您好,请问能处理音频降噪吗 HOT 5
- why the player is distorting the audio? HOT 1
- 音频效果对比 HOT 2
- A new feature - a callback function that is fired when audio is played out HOT 7
- 调用destroy方法会报错 HOT 1
- Not working on ios safari HOT 1
- Add download method for PCMPlayer class HOT 1
- 播放不连续呢? HOT 1
- typescript类型定义问题 HOT 2
- 可以添加一个从头播放的方法吗? HOT 2
- 无法播放ffmpeg编码s16be格式的pcm音频,s16le可以小端序字节可以 HOT 3
- 串流傳遞 PCM 會有延遲
- 建议添加analyser用于波形显式 HOT 2
- 底噪 HOT 1
- onended回调函数,在播放途中会多次触发 HOT 1
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 pcm-player.