com.azure.communication.callautomation.models.MediaStreamingOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-communication-callautomation Show documentation
Show all versions of azure-communication-callautomation Show documentation
This package contains clients and data structures used to make call with Azure Communication Call Automation Service.
For this release, see notes - https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/communication/azure-communication-callautomation/README.md and https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/communication/azure-communication-callautomation/CHANGELOG.md.
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.communication.callautomation.models;
import com.azure.core.annotation.Fluent;
/** The MediaStreamingOptions model. */
@Fluent
public final class MediaStreamingOptions {
/*
* Transport URL for media streaming
*/
private final String transportUrl;
/*
* The type of transport to be used for media streaming, eg. Websocket
*/
private final MediaStreamingTransport transportType;
/*
* Content type to stream, eg. audio, audio/video
*/
private final MediaStreamingContent contentType;
/*
* Audio channel type to stream, eg. unmixed audio, mixed audio
*/
private final MediaStreamingAudioChannel audioChannelType;
/*
* The type of transport to be used for media streaming, eg. Websocket
*/
private final Boolean startMediaStreaming;
/*
* A value indicating whether bidirectional streaming is enabled.
*/
private Boolean enableBidirectional;
/*
* Specifies the audio format used for encoding, including sample rate and channel type.
*/
private AudioFormat audioFormat;
/**
* Creates a new instance of MediaStreamingConfiguration
* @param transportUrl - The Transport URL
* @param transportType - Transport type
* @param contentType - Content Type
* @param audioChannelType - Audio Channel Type
* @param startMediaStreaming - Start media streaming flag
*/
public MediaStreamingOptions(String transportUrl, MediaStreamingTransport transportType,
MediaStreamingContent contentType, MediaStreamingAudioChannel audioChannelType, Boolean startMediaStreaming) {
this.transportUrl = transportUrl;
this.transportType = transportType;
this.contentType = contentType;
this.audioChannelType = audioChannelType;
this.startMediaStreaming = startMediaStreaming;
}
/**
* Get the transportUrl property: Transport URL for media streaming.
*
* @return the transportUrl value.
*/
public String getTransportUrl() {
return this.transportUrl;
}
/**
* Get the transportType property: The type of tranport to be used for media streaming, eg. Websocket.
*
* @return the transportType value.
*/
public MediaStreamingTransport getTransportType() {
return this.transportType;
}
/**
* Get the contentType property: Content type to stream, eg. audio, audio/video.
*
* @return the contentType value.
*/
public MediaStreamingContent getContentType() {
return this.contentType;
}
/**
* Get the startMediaStreaming property: Enables intermediate results for the transcribed speech.
*
* @return the startMediaStreaming value.
*/
public Boolean isStartMediaStreamingEnabled() {
return this.startMediaStreaming;
}
/**
* Get the audioChannelType property: Audio channel type to stream, eg. unmixed audio, mixed audio.
*
* @return the audioChannelType value.
*/
public MediaStreamingAudioChannel getAudioChannelType() {
return this.audioChannelType;
}
/**
* Get the enableBidirectional property: A value indicating whether bidirectional streaming is enabled.
*
* @return the enableBidirectional value.
*/
public Boolean isEnableBidirectional() {
return this.enableBidirectional;
}
/**
* Set the enableBidirectional property: A value indicating whether bidirectional streaming is enabled.
*
* @param enableBidirectional the enableBidirectional value to set.
* @return the MediaStreamingOptions object itself.
*/
public MediaStreamingOptions setEnableBidirectional(Boolean enableBidirectional) {
this.enableBidirectional = enableBidirectional;
return this;
}
/**
* Get the audioFormat property: Specifies the audio format used for encoding, including sample rate and channel
* type.
*
* @return the audioFormat value.
*/
public AudioFormat getAudioFormat() {
return this.audioFormat;
}
/**
* Set the audioFormat property: Specifies the audio format used for encoding, including sample rate and channel
* type.
*
* @param audioFormat the audioFormat value to set.
* @return the MediaStreamingOptions object itself.
*/
public MediaStreamingOptions setAudioFormat(AudioFormat audioFormat) {
this.audioFormat = audioFormat;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy