|
|
@@ -2,6 +2,7 @@ import AgoraRTC, {
|
|
|
IAgoraRTCClient,
|
|
|
IMicrophoneAudioTrack,
|
|
|
ICameraVideoTrack,
|
|
|
+ IRemoteAudioTrack,
|
|
|
UID,
|
|
|
} from 'agora-rtc-sdk-ng'
|
|
|
import { AGEventEmitter } from '../core/event-emitter'
|
|
|
@@ -77,7 +78,7 @@ export class RtcManagerAdapter extends AGEventEmitter<RtcEventMap> implements IR
|
|
|
})
|
|
|
|
|
|
// 加入频道
|
|
|
- await this._client.join(this._appId, channel, token || undefined, userId)
|
|
|
+ await this._client.join(this._appId, channel, token || null, userId)
|
|
|
|
|
|
this._joined = true
|
|
|
|
|
|
@@ -212,7 +213,7 @@ export class RtcManagerAdapter extends AGEventEmitter<RtcEventMap> implements IR
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- private _playAudio(audioTrack: IMicrophoneAudioTrack | undefined): void {
|
|
|
+ private _playAudio(audioTrack: IMicrophoneAudioTrack | IRemoteAudioTrack | undefined): void {
|
|
|
if (audioTrack && !audioTrack.isPlaying) {
|
|
|
audioTrack.play()
|
|
|
}
|