io.antmedia.model.Endpoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of media-push Show documentation
Show all versions of media-push Show documentation
Media Push Plugin for Ant Media Server
package io.antmedia.model;
import io.antmedia.plugin.MediaPushPlugin;
public class Endpoint {
private String url;
private int width;
private int height;
private String jsCommand;
private String token;
//it can be mp4 or webm
private String recordType;
/**
* Comma-separated extra chrome switches. All switches are available below
* https://peter.sh/experiments/chromium-command-line-switches/
*
* Default switches are on {@link MediaPushPlugin#CHROME_DEFAULT_SWITHES}
*/
private String extraChromeSwitches;
public Endpoint() {
}
public Endpoint(String URL, int width, int height, String jsCommand, String token) {
this.setUrl(URL);
this.width = width;
this.height = height;
this.jsCommand = jsCommand;
this.token = token;
}
public String getJsCommand() {
return jsCommand;
}
public void setJsCommand(String jsCommand) {
this.jsCommand = jsCommand;
}
public int getWidth() {
return width;
}
public void setWidth(int width) {
this.width = width;
}
public int getHeight() {
return height;
}
public void setHeight(int height) {
this.height = height;
}
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getRecordType() {
return recordType;
}
public void setRecordType(String recordType) {
this.recordType = recordType;
}
public String getExtraChromeSwitches() {
return extraChromeSwitches;
}
public void setExtraChromeSwitches(String extraChromeSwitches) {
this.extraChromeSwitches = extraChromeSwitches;
}
}