Package io.antmedia.webrtc.api
Interface IWebRTCAdaptor
- All Superinterfaces:
IScopeService
- All Known Implementing Classes:
MockWebRTCAdaptor
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidadaptStreamingQuality(String streamId, IWebRTCClient webRTCClient, VideoCodec codec) Try to find the best bitrate for the clientbooleanforceStreamingQuality(String streamId, IWebRTCClient webRTCClient, int streamHeight) Try to force defined stream quality for the clientintReturns number of active live streamsintReturns total number of viewersintgetNumberOfViewers(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 statsvoidregisterMuxer(String streamId, IWebRTCMuxer webRTCMuxer) booleanregisterWebRTCClient(String streamId, IWebRTCClient webRTCClusterClient, int resolutionHeight, VideoCodec codec) Register to specific resolution It is used in clusteringbooleanregisterWebRTCClient(String streamId, IWebRTCClient webRTCClient, VideoCodec codec) voidsetExcessiveBandwidthAlgorithmEnabled(boolean excessiveBandwidthAlgorithmEnabled) Enable or disable excessive bandwidth algorithmvoidsetExcessiveBandwidthCallThreshold(int excessiveBandwidthCallThreshold) Sets the excessive bandwidth call threshold valuevoidsetExcessiveBandwidthValue(int excessiveBandwidthValue) Sets the excessive bandwidth threshold valuevoidsetPacketLossDiffThresholdForSwitchback(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)voidsetRttMeasurementDiffThresholdForSwitchback(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)voidsetTryCountBeforeSwitchback(int tryCountBeforeSwitchback) Number of tries to switch back to lower quality in ExcessiveBandwidthbooleanstreamExists(String streamId) voidunRegisterMuxer(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-
-