All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.antmedia.rest.WebRTCClientStats Maven / Gradle / Ivy

Go to download

Ant Media Server supports RTMP, RTSP, MP4, HLS, WebRTC, Adaptive Streaming, etc.

There is a newer version: 2.10.0
Show newest version
package io.antmedia.rest;

import io.antmedia.statistic.type.WebRTCAudioSendStats;
import io.antmedia.statistic.type.WebRTCVideoSendStats;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value="WebRTCClientStats", description="The WebRTC Client Statistics class")
public class WebRTCClientStats {

	@ApiModelProperty(value = "the measured bitrate of the WebRTC Client")
	private int measuredBitrate;
	
	@ApiModelProperty(value = "the sent bitrate of the WebRTC Client")
	private int sendBitrate;
	
	@ApiModelProperty(value = "the video frame sent period of the WebRTC Client")
	private double videoFrameSendPeriod;
	
	@ApiModelProperty(value = "the audio frame send period of the WebRTC Client")
	private double audioFrameSendPeriod;

	@ApiModelProperty(value = "WebRTC Client Id which is basically hash of the object")
	private int clientId;

	@ApiModelProperty(value = "Number of video packets sent")
	private long videoPacketCount;

	@ApiModelProperty(value = "Number of audio packets sent")
	private long audioPacketCount;
	
	@ApiModelProperty(value = "Video sent low level stats")
	private WebRTCVideoSendStats videoSentStats;
	
	@ApiModelProperty(value = "Audio sent low level stats")
	private WebRTCAudioSendStats audioSentStats;

	public WebRTCClientStats(int measuredBitrate, int sendBitrate, double videoFrameSendPeriod, double audioFrameSendPeriod, 
			long videoPacketCount, long audioPacketCount, int clientId) {
		this.measuredBitrate = measuredBitrate;
		this.sendBitrate = sendBitrate;
		this.videoFrameSendPeriod = videoFrameSendPeriod;
		this.audioFrameSendPeriod = audioFrameSendPeriod;
		this.videoPacketCount = videoPacketCount;
		this.audioPacketCount = audioPacketCount;
		this.clientId = clientId;
	}

	public double getAudioFrameSendPeriod() {
		return audioFrameSendPeriod;
	}

	public void setAudioFrameSendPeriod(double audioFrameSendPeriod) {
		this.audioFrameSendPeriod = audioFrameSendPeriod;
	}

	public double getVideoFrameSendPeriod() {
		return videoFrameSendPeriod;
	}

	public void setVideoFrameSendPeriod(double videoFrameSendPeriod) {
		this.videoFrameSendPeriod = videoFrameSendPeriod;
	}

	public int getSendBitrate() {
		return sendBitrate;
	}

	public void setSendBitrate(int sendBitrate) {
		this.sendBitrate = sendBitrate;
	}

	public int getMeasuredBitrate() {
		return measuredBitrate;
	}

	public void setMeasuredBitrate(int measuredBitrate) {
		this.measuredBitrate = measuredBitrate;
	}

	public int getClientId() {
		return clientId;
	}

	public void setClientId(int clientId) {
		this.clientId = clientId;
	}

	public long getAudioPacketCount() {
		return audioPacketCount;
	}

	public void setAudioPacketCount(long audioPacketCount) {
		this.audioPacketCount = audioPacketCount;
	}

	public long getVideoPacketCount() {
		return videoPacketCount;
	}

	public void setVideoPacketCount(long videoPacketCount) {
		this.videoPacketCount = videoPacketCount;
	}

	public WebRTCAudioSendStats getAudioSentStats() {
		return audioSentStats;
	}

	public void setAudioSentStats(WebRTCAudioSendStats audioSentStats) {
		this.audioSentStats = audioSentStats;
	}

	public WebRTCVideoSendStats getVideoSentStats() {
		return videoSentStats;
	}

	public void setVideoSentStats(WebRTCVideoSendStats videoSentStats) {
		this.videoSentStats = videoSentStats;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy