Class MediaNullSource
Definition
- Namespace:
- Tizen.Multimedia.Remoting
- Assembly:
- Tizen.Multimedia.Remoting.dll
- API Level:
- 10
Represents a null source.
C#Copypublic sealed class MediaNullSource : MediaSource, IDisplayable<uint>
- Inheritance
Remarks
If you add this source, WebRTC only receives media stream.
TransceiverDirection is set RecvOnly by default.
Constructors
Declaration
C#Copypublic MediaNullSource()
Remarks
TransceiverCodec should be set to receive audio, video stream.
API Level: 10
Methods
Declaration
C#Copypublic ReadOnlyCollection<TransceiverCodec> GetSupportedTransceiverCodecs(MediaType type)
Parameters
Type | Name | Description |
---|---|---|
MediaType | type | The media type. |
Returns
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<TransceiverCodec> | The supported transceiver codecs. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The WebRTC has already been disposed. |
API Level: 10
Declaration
C#Copypublic TransceiverCodec GetTransceiverCodec(MediaType type)
Parameters
Type | Name | Description |
---|---|---|
MediaType | type | The media type. |
Returns
Type | Description |
---|---|
TransceiverCodec | The transceiver codec. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | MediaSource is not attached yet. |
ObjectDisposedException | The WebRTC has already been disposed. |
API Level: 10
View Source
SetTransceiverCodec(MediaType, TransceiverCodec)
Sets the transceiver codec for receiving media stream.
Declaration
C#Copypublic void SetTransceiverCodec(MediaType type, TransceiverCodec codec)
Parameters
Type | Name | Description |
---|---|---|
MediaType | type | The media type. |
TransceiverCodec | codec | The transceiver codec. |
Remarks
The WebRTC must be in the Idle state when transceiver codec is set.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | MediaSource is not attached yet. |
ObjectDisposedException | The WebRTC has already been disposed. |