Package io.antmedia.webrtc.api
Interface IWebRTCAdaptor
- All Superinterfaces:
IScopeService
- All Known Implementing Classes:
MockWebRTCAdaptor
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
adaptStreamingQuality
(String streamId, IWebRTCClient webRTCClient, VideoCodec codec) Try to find the best bitrate for the clientboolean
forceStreamingQuality
(String streamId, IWebRTCClient webRTCClient, int streamHeight) Try to force defined stream quality for the clientint
Returns number of active live streamsint
Returns total number of viewersint
getNumberOfViewers
(String streamId) Returns total number of viewer of a specific streamgetStreamInfo
(String streamId) Returns the stream id in the WebRTCAdaptorgetWebRTCClientStats
(String streamId) Return webrtc client statsvoid
registerMuxer
(String streamId, IWebRTCMuxer webRTCMuxer) boolean
registerWebRTCClient
(String streamId, IWebRTCClient webRTCClusterClient, int resolutionHeight, VideoCodec codec) Register to specific resolution It is used in clusteringboolean
registerWebRTCClient
(String streamId, IWebRTCClient webRTCClient, VideoCodec codec) void
setExcessiveBandwidthAlgorithmEnabled
(boolean excessiveBandwidthAlgorithmEnabled) Enable or disable excessive bandwidth algorithmvoid
setExcessiveBandwidthCallThreshold
(int excessiveBandwidthCallThreshold) Sets the excessive bandwidth call threshold valuevoid
setExcessiveBandwidthValue
(int excessiveBandwidthValue) Sets the excessive bandwidth threshold valuevoid
setPacketLossDiffThresholdForSwitchback
(int packetLossDiffThresholdForSwitchback) Set packet loss threshold if packetLoss is bigger than this value in ExcessiveBandwidth algorithm, it switches back to lower quality without try every attemptssetTryCountBeforeSwitchback(int)
void
setRttMeasurementDiffThresholdForSwitchback
(int rttMeasurementDiffThresholdForSwitchback) Set rtt measurement threshold if rttMeasurement is bigger than this value in ExcessiveBandwidth algorithm, it switches back to lower quality without try every attemptssetTryCountBeforeSwitchback(int)
void
setTryCountBeforeSwitchback
(int tryCountBeforeSwitchback) Number of tries to switch back to lower quality in ExcessiveBandwidthboolean
streamExists
(String streamId) void
unRegisterMuxer
(String streamId, IWebRTCMuxer webRTCMuxer)
-
Field Details
-
BEAN_NAME
- See Also:
-
-
Method Details
-
registerMuxer
-
unRegisterMuxer
-
registerWebRTCClient
-
streamExists
-
getStreamInfo
-
adaptStreamingQuality
Try to find the best bitrate for the client- Parameters:
streamId
-webRTCClient
-
-
forceStreamingQuality
Try to force defined stream quality for the client- Parameters:
streamId
-webRTCClient
-streamHeight
-
-
registerWebRTCClient
boolean registerWebRTCClient(String streamId, IWebRTCClient webRTCClusterClient, int resolutionHeight, VideoCodec codec) Register to specific resolution It is used in clustering- Parameters:
streamId
-webRTCClusterClient
-resolutionHeight
-
-
getNumberOfLiveStreams
int getNumberOfLiveStreams()Returns number of active live streams- Returns:
-
getNumberOfTotalViewers
int getNumberOfTotalViewers()Returns total number of viewers- Returns:
-
getNumberOfViewers
Returns total number of viewer of a specific stream- Parameters:
streamId
-- Returns:
-
getWebRTCClientStats
Return webrtc client stats- Parameters:
streamId
-- Returns:
-
getStreams
Returns the stream id in the WebRTCAdaptor -
setExcessiveBandwidthValue
void setExcessiveBandwidthValue(int excessiveBandwidthValue) Sets the excessive bandwidth threshold value- Parameters:
excessiveBandwidthValue
-
-
setExcessiveBandwidthCallThreshold
void setExcessiveBandwidthCallThreshold(int excessiveBandwidthCallThreshold) Sets the excessive bandwidth call threshold value- Parameters:
excessiveBandwidthCallThreshold
-
-
setExcessiveBandwidthAlgorithmEnabled
void setExcessiveBandwidthAlgorithmEnabled(boolean excessiveBandwidthAlgorithmEnabled) Enable or disable excessive bandwidth algorithm- Parameters:
excessiveBandwidthAlgorithmEnabled
-
-
setPacketLossDiffThresholdForSwitchback
void setPacketLossDiffThresholdForSwitchback(int packetLossDiffThresholdForSwitchback) Set packet loss threshold if packetLoss is bigger than this value in ExcessiveBandwidth algorithm, it switches back to lower quality without try every attemptssetTryCountBeforeSwitchback(int)
- Parameters:
packetLossDiffThresholdForSwitchback
-
-
setRttMeasurementDiffThresholdForSwitchback
void setRttMeasurementDiffThresholdForSwitchback(int rttMeasurementDiffThresholdForSwitchback) Set rtt measurement threshold if rttMeasurement is bigger than this value in ExcessiveBandwidth algorithm, it switches back to lower quality without try every attemptssetTryCountBeforeSwitchback(int)
- Parameters:
rttMeasurementDiffThresholdForSwitchback
-
-
setTryCountBeforeSwitchback
void setTryCountBeforeSwitchback(int tryCountBeforeSwitchback) Number of tries to switch back to lower quality in ExcessiveBandwidth- Parameters:
tryCountBeforeSwitchback
-
-