summaryrefslogtreecommitdiff
path: root/indra/llwebrtc/llwebrtc_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llwebrtc/llwebrtc_impl.h')
-rw-r--r--indra/llwebrtc/llwebrtc_impl.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/llwebrtc/llwebrtc_impl.h b/indra/llwebrtc/llwebrtc_impl.h
index 1ad117c7f3..1670d10705 100644
--- a/indra/llwebrtc/llwebrtc_impl.h
+++ b/indra/llwebrtc/llwebrtc_impl.h
@@ -83,6 +83,7 @@ class LLWebRTCImpl : public LLWebRTCDeviceInterface,
~LLWebRTCImpl() {}
void init();
+ void terminate();
//
// LLWebRTCDeviceInterface
@@ -126,8 +127,11 @@ class LLWebRTCImpl : public LLWebRTCDeviceInterface,
//
// LLWebRTCAudioInterface
//
+ void setAudioObserver(LLWebRTCAudioObserver *observer) override;
+ void unsetAudioObserver(LLWebRTCAudioObserver *observer) override;
void setMute(bool mute) override;
void setSpeakerVolume(float folume) override; // range 0.0-1.0
+ void requestAudioLevel() override;
//
// LLWebRTCDataInterface
@@ -144,7 +148,7 @@ class LLWebRTCImpl : public LLWebRTCDeviceInterface,
void OnAddTrack(rtc::scoped_refptr<webrtc::RtpReceiverInterface> receiver,
const std::vector<rtc::scoped_refptr<webrtc::MediaStreamInterface>> &streams) override;
void OnRemoveTrack(rtc::scoped_refptr<webrtc::RtpReceiverInterface> receiver) override;
- void OnDataChannel(rtc::scoped_refptr<webrtc::DataChannelInterface> channel) override {}
+ void OnDataChannel(rtc::scoped_refptr<webrtc::DataChannelInterface> channel) override;
void OnRenegotiationNeeded() override {}
void OnIceConnectionChange(webrtc::PeerConnectionInterface::IceConnectionState new_state) override {};
void OnIceGatheringChange(webrtc::PeerConnectionInterface::IceGatheringState new_state) override;
@@ -171,7 +175,7 @@ class LLWebRTCImpl : public LLWebRTCDeviceInterface,
//
// DataChannelObserver implementation.
//
- void OnStateChange() override {}
+ void OnStateChange() override;
void OnMessage(const webrtc::DataBuffer& buffer) override;
protected:
@@ -200,6 +204,8 @@ class LLWebRTCImpl : public LLWebRTCDeviceInterface,
rtc::scoped_refptr<webrtc::PeerConnectionInterface> mPeerConnection;
+ std::vector<LLWebRTCAudioObserver *> mAudioObserverList;
+
std::vector<LLWebRTCDataObserver *> mDataObserverList;
rtc::scoped_refptr<webrtc::DataChannelInterface> mDataChannel;
};