Class MediaSource
Definition
- Namespace:
- Tizen.Multimedia.Remoting
- Assembly:
- Tizen.Multimedia.Remoting.dll
MediaSource is a base class for Web
public abstract class MediaSource
- Inheritance
-
objectMedia
Source
- Derived
Constructors
View SourceMediaSource()
Initializes a new instance of the Media
Declaration
protected MediaSource()
MediaSource(MediaType)
Initializes a new instance of the Media
Declaration
protected MediaSource(MediaType mediaType)
Parameters
Type | Name | Description |
---|---|---|
Media |
mediaType |
Properties
View SourceEncoderBitrate
Gets or sets the encoder bitrate of the current media source.
Declaration
public int EncoderBitrate { get; set; }
Property Value
Type | Description |
---|---|
int | A value that specifies the encoder bitrate. |
Remarks
This API is not supported in Media
Exceptions
Type | Condition |
---|---|
System. |
EncoderBitrate is less than or equal to zero. |
System. |
MediaSource is not attached yet. |
System. |
The WebRTC has already been disposed. |
MediaType
Gets the type of MediaSource.
Declaration
protected MediaType MediaType { get; }
Property Value
View SourceMute
Gets or sets the mute status of the current media source.
Declaration
public bool Mute { get; set; }
Property Value
Type | Description |
---|---|
bool | A value that specifies the mute status. |
Remarks
This API is not supported in Media
Exceptions
Type | Condition |
---|---|
System. |
MediaSource is not attached yet. |
System. |
The WebRTC has already been disposed. |
Pause
Gets or sets the pause status of current media source.
Declaration
public bool Pause { get; set; }
Property Value
Type | Description |
---|---|
bool | A value that specifies the pause status. |
Exceptions
Type | Condition |
---|---|
System. |
MediaSource is not attached yet. |
System. |
The WebRTC has already been disposed. |
See Also
View SourceSupportedTransceiverCodecs
Retrieves the supported transceiver codecs.
Declaration
public ReadOnlyCollection<TransceiverCodec> SupportedTransceiverCodecs { get; }
Property Value
Type | Description |
---|---|
System. |
The transceiver codecs. |
Remarks
This API is not supported in Media
If user want to get supported codecs for each audio or video in Media
Exceptions
Type | Condition |
---|---|
System. |
This MediaSource is not supported type of MediaSource. |
System. |
The WebRTC has already been disposed. |
See Also
View SourceTransceiverCodec
Gets or sets the transceiver codec of current media source.
Declaration
public TransceiverCodec TransceiverCodec { get; set; }
Property Value
Type | Description |
---|---|
Transceiver |
The transceiver codec. |
Remarks
This API is not supported in Media
If Media
The WebRTC must be in the Idle state when transceiver codec is set.
Exceptions
Type | Condition |
---|---|
System. |
MediaSource is not attached yet. |
System. |
The WebRTC has already been disposed. |
See Also
View SourceTransceiverDirection
Gets or sets the transceiver direction of current media source.
Declaration
public TransceiverDirection TransceiverDirection { get; set; }
Property Value
Type | Description |
---|---|
Transceiver |
A Transceiver |
Remarks
The default value is Send
If user want to set each audio, video direction in Media
In Media
Exceptions
Type | Condition |
---|---|
System. |
MediaSource is not attached yet. |
System. |
The WebRTC has already been disposed. |
See Also
View SourceVideoFrameRate
Gets or sets the video frame rate of the current media source.
Declaration
public int VideoFrameRate { get; set; }
Property Value
Type | Description |
---|---|
int | A value that specifies the video frame rate. |
Remarks
This API is only supported in video media source, especially Media
Exceptions
Type | Condition |
---|---|
System. |
VideoFrameRate is less than or equal to zero. |
System. |
MediaSource is not attached yet. |
System. |
The WebRTC has already been disposed. |
VideoResolution
Gets or sets the video resolution of the current media source.
Declaration
public Size VideoResolution { get; set; }
Property Value
Type | Description |
---|---|
Size | A value that specifies the video resolution. |
Exceptions
Type | Condition |
---|---|
System. |
MediaSource is not attached yet. |
System. |
The WebRTC has already been disposed. |
Methods
View SourceEnableAudioLoopback(AudioStreamPolicy)
Enables the audio loopback. The local audio will be played with policy
.
Declaration
public MediaStreamTrack EnableAudioLoopback(AudioStreamPolicy policy)
Parameters
Type | Name | Description |
---|---|---|
Audio |
policy | The Audio |
Returns
Type | Description |
---|---|
Media |
Remarks
Media
Supported types are Media, Voip,
Media
Exceptions
Type | Condition |
---|---|
System. |
|
System. |
MediaSource is not attached yet. |
System. |
Audio |
System. |
|
EnableVideoLoopback(Display)
Enables the video loopback. The local video will be diaplayed in display
.
Declaration
public MediaStreamTrack EnableVideoLoopback(Display display)
Parameters
Returns
Type | Description |
---|---|
Media |
Exceptions
Type | Condition |
---|---|
System. |
The required feature is not supported. |
System. |
The display has already been assigned to another. |
System. |
|
System. |
MediaSource is not attached yet. |
System. |
The WebRTC has already been disposed. |
GetPayloadType(TransceiverCodec)
Gets the RTP payload type of given codec
.
Declaration
public uint GetPayloadType(TransceiverCodec codec)
Parameters
Type | Name | Description |
---|---|---|
Transceiver |
codec | The transceiver codec. |
Returns
Type | Description |
---|---|
uint | The RTP payload type. |
Exceptions
Type | Condition |
---|---|
System. |
MediaSource is not attached yet. |
System. |
The WebRTC has already been disposed. |
See Also
View SourceSetPayloadType(TransceiverCodec, uint)
Sets the RTP payload type of given codec
.
Declaration
public void SetPayloadType(TransceiverCodec codec, uint payloadType)
Parameters
Type | Name | Description |
---|---|---|
Transceiver |
codec | The transceiver codec. |
uint | payloadType | The RTP payload type. |
Remarks
payloadType
should be greater than or equal to 96 and less than or equal to 127.
Exceptions
Type | Condition |
---|---|
System. |
MediaSource is not attached yet. |
System. |
The WebRTC has already been disposed. |
System. |
|