Class RTCMediaStreamTrackStats
java.lang.Object
org.kurento.client.Stats
org.kurento.client.RTCStats
org.kurento.client.RTCMediaStreamTrackStats
Statistics related to the media stream.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault private constructor of RTCMediaStreamTrackStats for serialization with JacksonRTCMediaStreamTrackStats(String id, StatsType type, long timestampMillis, String trackIdentifier, boolean remoteSource, List<String> ssrcIds, long frameWidth, long frameHeight, double framesPerSecond, long framesSent, long framesReceived, long framesDecoded, long framesDropped, long framesCorrupted, double audioLevel, double echoReturnLoss, double echoReturnLossEnhancement) Create a RTCMediaStreamTrackStats -
Method Summary
Modifier and TypeMethodDescriptiondoubleget Only valid for audio, and the value is between 0..1 (linear), where 1.0 represents 0 dBov.doubleget Only present on audio tracks sourced from a microphone where echo cancellation is applied.doubleget Only present on audio tracks sourced from a microphone where echo cancellation is applied.longget Only makes sense for video media streams and represents the height of the video frame for this SSRC.longget Only valid for video.longget Only valid for video.longget Only valid for video.doubleget Only valid for video.longget Only valid for video and when remoteSource is set to true.longget Only valid for video.longget Only makes sense for video media streams and represents the width of the video frame for this SSRC.booleanget true indicates that this is a remote source.get Synchronized sources.get Represents the track.id property.voidsetAudioLevel(double audioLevel) set Only valid for audio, and the value is between 0..1 (linear), where 1.0 represents 0 dBov.voidsetEchoReturnLoss(double echoReturnLoss) set Only present on audio tracks sourced from a microphone where echo cancellation is applied.voidsetEchoReturnLossEnhancement(double echoReturnLossEnhancement) set Only present on audio tracks sourced from a microphone where echo cancellation is applied.voidsetFrameHeight(long frameHeight) set Only makes sense for video media streams and represents the height of the video frame for this SSRC.voidsetFramesCorrupted(long framesCorrupted) set Only valid for video.voidsetFramesDecoded(long framesDecoded) set Only valid for video.voidsetFramesDropped(long framesDropped) set Only valid for video.voidsetFramesPerSecond(double framesPerSecond) set Only valid for video.voidsetFramesReceived(long framesReceived) set Only valid for video and when remoteSource is set to true.voidsetFramesSent(long framesSent) set Only valid for video.voidsetFrameWidth(long frameWidth) set Only makes sense for video media streams and represents the width of the video frame for this SSRC.voidsetRemoteSource(boolean remoteSource) set true indicates that this is a remote source.voidsetSsrcIds(List<String> ssrcIds) set Synchronized sources.voidsetTrackIdentifier(String trackIdentifier) set Represents the track.id property.Methods inherited from class Stats
getId, getTimestampMillis, getType, setId, setTimestampMillis, setType
-
Constructor Details
-
RTCMediaStreamTrackStats
protected RTCMediaStreamTrackStats()Default private constructor of RTCMediaStreamTrackStats for serialization with Jackson -
RTCMediaStreamTrackStats
public RTCMediaStreamTrackStats(String id, StatsType type, long timestampMillis, String trackIdentifier, boolean remoteSource, List<String> ssrcIds, long frameWidth, long frameHeight, double framesPerSecond, long framesSent, long framesReceived, long framesDecoded, long framesDropped, long framesCorrupted, double audioLevel, double echoReturnLoss, double echoReturnLossEnhancement) Create a RTCMediaStreamTrackStats
-
-
Method Details
-
getTrackIdentifier
get Represents the track.id property. -
setTrackIdentifier
set Represents the track.id property. -
getRemoteSource
public boolean getRemoteSource()get true indicates that this is a remote source. false in other case. -
setRemoteSource
public void setRemoteSource(boolean remoteSource) set true indicates that this is a remote source. false in other case. -
getSsrcIds
-
setSsrcIds
-
getFrameWidth
public long getFrameWidth()get Only makes sense for video media streams and represents the width of the video frame for this SSRC. -
setFrameWidth
public void setFrameWidth(long frameWidth) set Only makes sense for video media streams and represents the width of the video frame for this SSRC. -
getFrameHeight
public long getFrameHeight()get Only makes sense for video media streams and represents the height of the video frame for this SSRC. -
setFrameHeight
public void setFrameHeight(long frameHeight) set Only makes sense for video media streams and represents the height of the video frame for this SSRC. -
getFramesPerSecond
public double getFramesPerSecond()get Only valid for video. It represents the nominal FPS value. -
setFramesPerSecond
public void setFramesPerSecond(double framesPerSecond) set Only valid for video. It represents the nominal FPS value. -
getFramesSent
public long getFramesSent()get Only valid for video. It represents the total number of frames sent for this SSRC. -
setFramesSent
public void setFramesSent(long framesSent) set Only valid for video. It represents the total number of frames sent for this SSRC. -
getFramesReceived
public long getFramesReceived()get Only valid for video and when remoteSource is set to true. It represents the total number of frames received for this SSRC. -
setFramesReceived
public void setFramesReceived(long framesReceived) set Only valid for video and when remoteSource is set to true. It represents the total number of frames received for this SSRC. -
getFramesDecoded
public long getFramesDecoded()get Only valid for video. It represents the total number of frames correctly decoded for this SSRC. -
setFramesDecoded
public void setFramesDecoded(long framesDecoded) set Only valid for video. It represents the total number of frames correctly decoded for this SSRC. -
getFramesDropped
public long getFramesDropped()get Only valid for video. The total number of frames dropped pre-decoding or dropped because the frame missed its display deadline. -
setFramesDropped
public void setFramesDropped(long framesDropped) set Only valid for video. The total number of frames dropped pre-decoding or dropped because the frame missed its display deadline. -
getFramesCorrupted
public long getFramesCorrupted()get Only valid for video. The total number of corrupted frames that have been detected. -
setFramesCorrupted
public void setFramesCorrupted(long framesCorrupted) set Only valid for video. The total number of corrupted frames that have been detected. -
getAudioLevel
public double getAudioLevel()get Only valid for audio, and the value is between 0..1 (linear), where 1.0 represents 0 dBov. -
setAudioLevel
public void setAudioLevel(double audioLevel) set Only valid for audio, and the value is between 0..1 (linear), where 1.0 represents 0 dBov. -
getEchoReturnLoss
public double getEchoReturnLoss()get Only present on audio tracks sourced from a microphone where echo cancellation is applied. Calculated in decibels. -
setEchoReturnLoss
public void setEchoReturnLoss(double echoReturnLoss) set Only present on audio tracks sourced from a microphone where echo cancellation is applied. Calculated in decibels. -
getEchoReturnLossEnhancement
public double getEchoReturnLossEnhancement()get Only present on audio tracks sourced from a microphone where echo cancellation is applied. -
setEchoReturnLossEnhancement
public void setEchoReturnLossEnhancement(double echoReturnLossEnhancement) set Only present on audio tracks sourced from a microphone where echo cancellation is applied.
-