Represents stats collected from the connection. More...
Public Member Functions | |
| long | getAvailableOutgoingBitrate () |
| Gets the available outgoing bitrate. More... | |
| boolean | getDetached () |
| Gets if the media track is detached. More... | |
| String | getDirection () |
| Gets the direction the media is being sent. More... | |
| int | getFrameHeight () |
| Gets the height of the last encoded frame. More... | |
| double | getFrameRate () |
| Gets the number of encoded frames sent in the last second. More... | |
| int | getFrameWidth () |
| Gets the width of the last encoded frame. More... | |
| String | getMediaType () |
| Gets the type of media. More... | |
| boolean | getMuted () |
| Gets if the media track is muted. More... | |
| long | getNackCount () |
| Gets the NACK count. More... | |
| int | getPacketsLost () |
| Gets the total packets lost. More... | |
| double | getPercentLost () |
| Gets the percent of packets lost. More... | |
| long | getPliCount () |
| Gets the PLI count. More... | |
| fm.liveswitch.QualityLimitationDurations | getQualityLimitationDurations () |
| Gets the durations for which quality has been limited for bandwidth, cpu, none, other. More... | |
| String | getQualityLimitationReason () |
| Gets the the reason for quality limitation. More... | |
| long | getQualityLimitationResolutionChanges () |
| Gets the count of resolution changes due to quality limitation. More... | |
| boolean | getStopped () |
| Gets if the media track is stopped. More... | |
| int | getTargetBitrate () |
| Gets the target bitrate of the encoder. More... | |
| java.util.Date | getTimestamp () |
| Gets the timestamp when these stats were generated. More... | |
| void | setNackCount (long value) |
| Sets the NACK count. More... | |
| void | setPliCount (long value) |
| Sets the PLI count. More... | |
| String | toJson () |
| Serializes this to JSON. More... | |
Static Public Member Functions | |
| static fm.liveswitch.telemetry.MediaStats | createOutboundAudioStreamStats (fm.liveswitch.MediaStreamStats audioStreamStats) |
| Create outbound audio stats. More... | |
| static fm.liveswitch.telemetry.MediaStats | createOutboundVideoStats (fm.liveswitch.MediaStreamStats videoStreamStats) |
| Create outbound video stats. More... | |
| static fm.liveswitch.telemetry.MediaStats | fromJson (String mediaStatsJson) |
| Derializes media stats from JSON. More... | |
| static String | toJson (fm.liveswitch.telemetry.MediaStats outboundVideoStats) |
| Serializes outbound video stats to JSON. More... | |
Represents stats collected from the connection.
|
static |
Create outbound audio stats.
| audioStreamStats |
|
static |
Create outbound video stats.
| videoStreamStats |
|
static |
Derializes media stats from JSON.
| mediaStatsJson | The media stats JSON. |
| long fm.liveswitch.telemetry.MediaStats.getAvailableOutgoingBitrate | ( | ) |
Gets the available outgoing bitrate.
| boolean fm.liveswitch.telemetry.MediaStats.getDetached | ( | ) |
Gets if the media track is detached.
| String fm.liveswitch.telemetry.MediaStats.getDirection | ( | ) |
Gets the direction the media is being sent.
| int fm.liveswitch.telemetry.MediaStats.getFrameHeight | ( | ) |
Gets the height of the last encoded frame.
| double fm.liveswitch.telemetry.MediaStats.getFrameRate | ( | ) |
Gets the number of encoded frames sent in the last second.
| int fm.liveswitch.telemetry.MediaStats.getFrameWidth | ( | ) |
Gets the width of the last encoded frame.
| String fm.liveswitch.telemetry.MediaStats.getMediaType | ( | ) |
Gets the type of media.
| boolean fm.liveswitch.telemetry.MediaStats.getMuted | ( | ) |
Gets if the media track is muted.
| long fm.liveswitch.telemetry.MediaStats.getNackCount | ( | ) |
Gets the NACK count.
| int fm.liveswitch.telemetry.MediaStats.getPacketsLost | ( | ) |
Gets the total packets lost.
| double fm.liveswitch.telemetry.MediaStats.getPercentLost | ( | ) |
Gets the percent of packets lost.
| long fm.liveswitch.telemetry.MediaStats.getPliCount | ( | ) |
Gets the PLI count.
| fm.liveswitch.QualityLimitationDurations fm.liveswitch.telemetry.MediaStats.getQualityLimitationDurations | ( | ) |
Gets the durations for which quality has been limited for bandwidth, cpu, none, other.
| String fm.liveswitch.telemetry.MediaStats.getQualityLimitationReason | ( | ) |
Gets the the reason for quality limitation.
| long fm.liveswitch.telemetry.MediaStats.getQualityLimitationResolutionChanges | ( | ) |
Gets the count of resolution changes due to quality limitation.
| boolean fm.liveswitch.telemetry.MediaStats.getStopped | ( | ) |
Gets if the media track is stopped.
| int fm.liveswitch.telemetry.MediaStats.getTargetBitrate | ( | ) |
Gets the target bitrate of the encoder.
| java.util.Date fm.liveswitch.telemetry.MediaStats.getTimestamp | ( | ) |
Gets the timestamp when these stats were generated.
| void fm.liveswitch.telemetry.MediaStats.setNackCount | ( | long | value | ) |
Sets the NACK count.
| void fm.liveswitch.telemetry.MediaStats.setPliCount | ( | long | value | ) |
Sets the PLI count.
| String fm.liveswitch.telemetry.MediaStats.toJson | ( | ) |
Serializes this to JSON.
|
static |
Serializes outbound video stats to JSON.
| outboundVideoStats | The outbound video stats. |