同步播放
This commit is contained in:
parent
4e91f5989c
commit
eb744f66fa
@ -174,6 +174,10 @@
|
|||||||
audioSource.buffer = audioBuffer
|
audioSource.buffer = audioBuffer
|
||||||
audioSource.connect(mediaStreamDestination)
|
audioSource.connect(mediaStreamDestination)
|
||||||
audioSource.start()
|
audioSource.start()
|
||||||
|
// 创建本地音频播放器
|
||||||
|
const audioPlayer = new Audio()
|
||||||
|
audioPlayer.srcObject = mediaStreamDestination.stream
|
||||||
|
audioPlayer.play()
|
||||||
// 创建SDP offer并将其设置为本地描述, 发送给远程端
|
// 创建SDP offer并将其设置为本地描述, 发送给远程端
|
||||||
console.log('创建SDP offer并将其设置为本地描述, 发送给远程端')
|
console.log('创建SDP offer并将其设置为本地描述, 发送给远程端')
|
||||||
console.log('clients:', clients)
|
console.log('clients:', clients)
|
||||||
|
Loading…
Reference in New Issue
Block a user