Package com.avaya.clientservices.call
Interface MediaChannel
-
- All Known Implementing Classes:
VideoChannel
public interface MediaChannel
Base interface representing the methods that can be invoked on a media channel (e.g., audio or video).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getChannelId()
Return the media channel ID, which is informational data not to be used for specific processing.MediaDirection
getNegotiatedDirection()
MediaDirection
getRequestedDirection()
void
setRequestedDirection(MediaDirection direction)
Set the desired media direction (transmit and/or receive, or none).
-
-
-
Method Detail
-
setRequestedDirection
void setRequestedDirection(MediaDirection direction)
Set the desired media direction (transmit and/or receive, or none). In order to stop media transmission while keepting media receipt, the direction of the media needs to be set to RECEIVE_ONLY. In order to shut down media bidirectionally, the direction needs to be set to INACTIVE.- Parameters:
direction
- Direction of the media.- See Also:
MediaDirection
-
getRequestedDirection
MediaDirection getRequestedDirection()
- Returns:
- Locally desired media direction (transmit only, receive only, or transmit and receive).
- See Also:
MediaDirection
-
getNegotiatedDirection
MediaDirection getNegotiatedDirection()
- Returns:
- Actual media direction (transmitting, receiving, or both).
- See Also:
MediaDirection
-
getChannelId
int getChannelId()
Return the media channel ID, which is informational data not to be used for specific processing.- Returns:
- the unique media channel ID assigned by the SDK.
-
-