favicon
This commit is contained in:
parent
07fb6af869
commit
75eabfbf7a
@ -1,10 +1,10 @@
|
|||||||
# webRTC
|
# webRTC
|
||||||
webrtc 实现的 p2p 信道
|
webrtc 实现的 p2p 信道
|
||||||
|
|
||||||
- [ ] P2P通信
|
- [x] P2P通信
|
||||||
|
- [x] 音乐播放
|
||||||
- [ ] 集群分发
|
- [ ] 集群分发
|
||||||
- [ ] 下载加速
|
- [ ] 下载加速
|
||||||
- [ ] 音乐播放
|
|
||||||
- [ ] 即时通讯
|
- [ ] 即时通讯
|
||||||
|
|
||||||
- 能获取所有在线设备列表
|
- 能获取所有在线设备列表
|
||||||
|
BIN
public/favicon.ico
Normal file
BIN
public/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
@ -45,18 +45,6 @@
|
|||||||
if (buffer.byteLength >= item.size) {
|
if (buffer.byteLength >= item.size) {
|
||||||
console.log('音乐数据接收完毕')
|
console.log('音乐数据接收完毕')
|
||||||
item.arrayBuffer = buffer
|
item.arrayBuffer = buffer
|
||||||
//// 尝试直接播放音乐
|
|
||||||
//const audioContext = new AudioContext()
|
|
||||||
//audioContext.decodeAudioData(item.arrayBuffer, async audioBuffer => {
|
|
||||||
// const mediaStreamDestination = audioContext.createMediaStreamDestination()
|
|
||||||
// mediaStreamDestination.stream.getAudioTracks().forEach(function (track) {
|
|
||||||
// client.webrtc.addTrack(track, mediaStreamDestination.stream)
|
|
||||||
// })
|
|
||||||
// const audioSource = audioContext.createBufferSource()
|
|
||||||
// audioSource.buffer = audioBuffer
|
|
||||||
// audioSource.connect(mediaStreamDestination)
|
|
||||||
// audioSource.start()
|
|
||||||
//})
|
|
||||||
resolve()
|
resolve()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user