public class RTCMediaStreamTrackStats extends RTCStats
Modifier | Constructor and Description |
---|---|
protected |
RTCMediaStreamTrackStats()
Default private constructor of RTCMediaStreamTrackStats for serialization with Jackson
|
|
RTCMediaStreamTrackStats(String id,
StatsType type,
double timestamp,
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
|
Modifier and Type | Method and Description |
---|---|
double |
getAudioLevel()
get Only valid for audio, and the value is between 0..1 (linear), where 1.0 represents 0 dBov.
|
double |
getEchoReturnLoss()
get Only present on audio tracks sourced from a microphone where echo cancellation is applied.
|
double |
getEchoReturnLossEnhancement()
get Only present on audio tracks sourced from a microphone where echo cancellation is applied.
|
long |
getFrameHeight()
get Only makes sense for video media streams and represents the height of the video frame for this SSRC.
|
long |
getFramesCorrupted()
get Only valid for video.
|
long |
getFramesDecoded()
get Only valid for video.
|
long |
getFramesDropped()
get Only valid for video.
|
double |
getFramesPerSecond()
get Only valid for video.
|
long |
getFramesReceived()
get Only valid for video and when remoteSource is set to true.
|
long |
getFramesSent()
get Only valid for video.
|
long |
getFrameWidth()
get Only makes sense for video media streams and represents the width of the video frame for this SSRC.
|
boolean |
getRemoteSource()
get true indicates that this is a remote source.
|
List<String> |
getSsrcIds()
get Synchronized sources.
|
String |
getTrackIdentifier()
get Represents the track.id property.
|
void |
setAudioLevel(double audioLevel)
set Only valid for audio, and the value is between 0..1 (linear), where 1.0 represents 0 dBov.
|
void |
setEchoReturnLoss(double echoReturnLoss)
set Only present on audio tracks sourced from a microphone where echo cancellation is applied.
|
void |
setEchoReturnLossEnhancement(double echoReturnLossEnhancement)
set Only present on audio tracks sourced from a microphone where echo cancellation is applied.
|
void |
setFrameHeight(long frameHeight)
set Only makes sense for video media streams and represents the height of the video frame for this SSRC.
|
void |
setFramesCorrupted(long framesCorrupted)
set Only valid for video.
|
void |
setFramesDecoded(long framesDecoded)
set Only valid for video.
|
void |
setFramesDropped(long framesDropped)
set Only valid for video.
|
void |
setFramesPerSecond(double framesPerSecond)
set Only valid for video.
|
void |
setFramesReceived(long framesReceived)
set Only valid for video and when remoteSource is set to true.
|
void |
setFramesSent(long framesSent)
set Only valid for video.
|
void |
setFrameWidth(long frameWidth)
set Only makes sense for video media streams and represents the width of the video frame for this SSRC.
|
void |
setRemoteSource(boolean remoteSource)
set true indicates that this is a remote source.
|
void |
setSsrcIds(List<String> ssrcIds)
set Synchronized sources.
|
void |
setTrackIdentifier(String trackIdentifier)
set Represents the track.id property.
|
getId, getTimestamp, getTimestampMillis, getType, setId, setTimestamp, setTimestampMillis, setType
protected RTCMediaStreamTrackStats()
public RTCMediaStreamTrackStats(String id, StatsType type, double timestamp, 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)
public String getTrackIdentifier()
public void setTrackIdentifier(String trackIdentifier)
public boolean getRemoteSource()
public void setRemoteSource(boolean remoteSource)
public long getFrameWidth()
public void setFrameWidth(long frameWidth)
public long getFrameHeight()
public void setFrameHeight(long frameHeight)
public double getFramesPerSecond()
public void setFramesPerSecond(double framesPerSecond)
public long getFramesSent()
public void setFramesSent(long framesSent)
public long getFramesReceived()
public void setFramesReceived(long framesReceived)
public long getFramesDecoded()
public void setFramesDecoded(long framesDecoded)
public long getFramesDropped()
public void setFramesDropped(long framesDropped)
public long getFramesCorrupted()
public void setFramesCorrupted(long framesCorrupted)
public double getAudioLevel()
public void setAudioLevel(double audioLevel)
public double getEchoReturnLoss()
public void setEchoReturnLoss(double echoReturnLoss)
public double getEchoReturnLossEnhancement()
public void setEchoReturnLossEnhancement(double echoReturnLossEnhancement)
Copyright © 2022 Kurento. All rights reserved.