Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package com.bitmovin.api.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import com.bitmovin.api.sdk.model.EncodingOutput;
import com.bitmovin.api.sdk.model.Ignoring;
import com.bitmovin.api.sdk.model.Muxing;
import com.bitmovin.api.sdk.model.MuxingStream;
import com.bitmovin.api.sdk.model.StreamConditionsMode;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
/**
* PackedAudioMuxing
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = false, defaultImpl = PackedAudioMuxing.class)
public class PackedAudioMuxing extends Muxing {
@JsonProperty("segmentLength")
private Double segmentLength;
@JsonProperty("segmentNaming")
private String segmentNaming;
@JsonProperty("segmentNamingTemplate")
private String segmentNamingTemplate;
@JsonProperty("startOffset")
private Integer startOffset;
@JsonProperty("segmentsMuxed")
private Integer segmentsMuxed;
/**
* Duration of a segment, given in seconds (required)
* @return segmentLength
*/
public Double getSegmentLength() {
return segmentLength;
}
/**
* Duration of a segment, given in seconds (required)
*
* @param segmentLength
* Duration of a segment, given in seconds (required)
*/
public void setSegmentLength(Double segmentLength) {
this.segmentLength = segmentLength;
}
/**
* Segment naming policy. The required filename extension depends on the codec (e.g. '.aac' for AAC). Either this or *segmentNamingTemplate* must be set.
* @return segmentNaming
*/
public String getSegmentNaming() {
return segmentNaming;
}
/**
* Segment naming policy. The required filename extension depends on the codec (e.g. '.aac' for AAC). Either this or *segmentNamingTemplate* must be set.
*
* @param segmentNaming
* Segment naming policy. The required filename extension depends on the codec (e.g. '.aac' for AAC). Either this or *segmentNamingTemplate* must be set.
*/
public void setSegmentNaming(String segmentNaming) {
this.segmentNaming = segmentNaming;
}
/**
* Segment naming policy containing one or both of the following placeholders: - '{rand_chars:x}', which will be replaced by a random alphanumeric string of length x (default 32) on each (re)start of the encoding. The resulting string will be copied to the segmentNaming property. Intended to avoid re-use of segment names after restarting a live encoding. - '{segment_rand_chars:x}', which will be replaced by a random alphanumeric string of length x (default 32) for each different segment. This is intended to avoid guessing segment URLs by replacing segment numbers. If segmentNamingTemplate is set, segmentNaming must not be set. The required filename extension depends on the codec (e.g. '.aac' for AAC).
* @return segmentNamingTemplate
*/
public String getSegmentNamingTemplate() {
return segmentNamingTemplate;
}
/**
* Segment naming policy containing one or both of the following placeholders: - '{rand_chars:x}', which will be replaced by a random alphanumeric string of length x (default 32) on each (re)start of the encoding. The resulting string will be copied to the segmentNaming property. Intended to avoid re-use of segment names after restarting a live encoding. - '{segment_rand_chars:x}', which will be replaced by a random alphanumeric string of length x (default 32) for each different segment. This is intended to avoid guessing segment URLs by replacing segment numbers. If segmentNamingTemplate is set, segmentNaming must not be set. The required filename extension depends on the codec (e.g. '.aac' for AAC).
*
* @param segmentNamingTemplate
* Segment naming policy containing one or both of the following placeholders: - '{rand_chars:x}', which will be replaced by a random alphanumeric string of length x (default 32) on each (re)start of the encoding. The resulting string will be copied to the segmentNaming property. Intended to avoid re-use of segment names after restarting a live encoding. - '{segment_rand_chars:x}', which will be replaced by a random alphanumeric string of length x (default 32) for each different segment. This is intended to avoid guessing segment URLs by replacing segment numbers. If segmentNamingTemplate is set, segmentNaming must not be set. The required filename extension depends on the codec (e.g. '.aac' for AAC).
*/
public void setSegmentNamingTemplate(String segmentNamingTemplate) {
this.segmentNamingTemplate = segmentNamingTemplate;
}
/**
* Offset of MPEG-TS timestamps in seconds. E.g., first packet will start with PTS 900,000 for a 10 seconds offset (90,000 MPEG-TS timescale).
* @return startOffset
*/
public Integer getStartOffset() {
return startOffset;
}
/**
* Offset of MPEG-TS timestamps in seconds. E.g., first packet will start with PTS 900,000 for a 10 seconds offset (90,000 MPEG-TS timescale).
*
* @param startOffset
* Offset of MPEG-TS timestamps in seconds. E.g., first packet will start with PTS 900,000 for a 10 seconds offset (90,000 MPEG-TS timescale).
*/
public void setStartOffset(Integer startOffset) {
this.startOffset = startOffset;
}
/**
* Number of segments which have been encoded
* @return segmentsMuxed
*/
public Integer getSegmentsMuxed() {
return segmentsMuxed;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PackedAudioMuxing packedAudioMuxing = (PackedAudioMuxing) o;
return Objects.equals(this.segmentLength, packedAudioMuxing.segmentLength) &&
Objects.equals(this.segmentNaming, packedAudioMuxing.segmentNaming) &&
Objects.equals(this.segmentNamingTemplate, packedAudioMuxing.segmentNamingTemplate) &&
Objects.equals(this.startOffset, packedAudioMuxing.startOffset) &&
Objects.equals(this.segmentsMuxed, packedAudioMuxing.segmentsMuxed) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(segmentLength, segmentNaming, segmentNamingTemplate, startOffset, segmentsMuxed, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PackedAudioMuxing {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" segmentLength: ").append(toIndentedString(segmentLength)).append("\n");
sb.append(" segmentNaming: ").append(toIndentedString(segmentNaming)).append("\n");
sb.append(" segmentNamingTemplate: ").append(toIndentedString(segmentNamingTemplate)).append("\n");
sb.append(" startOffset: ").append(toIndentedString(startOffset)).append("\n");
sb.append(" segmentsMuxed: ").append(toIndentedString(segmentsMuxed)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}