Class MediaNullSource
Definition
- Namespace:
- Tizen.Multimedia.Remoting
- Assembly:
- Tizen.Multimedia.Remoting.dll
Represents a media source that only receives media streams from peer.
C#
Copy
public sealed class MediaNullSource : MediaSource
- Inheritance
Remarks
If you add this source, WebRTC only receives media stream.
Transceiver
Constructors
Declaration
C#
Copy
public MediaNullSource()
Remarks
TransceiverCodec should be set to receive audio, video stream.
Methods
GetSupportedTransceiverCodecs(MediaType)
Retrieves the supported transceiver codecs for receiving media stream.
Declaration
C#
Copy
public ReadOnlyCollection<TransceiverCodec> GetSupportedTransceiverCodecs(MediaType type)
Parameters
Type | Name | Description |
---|---|---|
Media |
type | The media type. |
Returns
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<T><Transceiver |
The supported transceiver codecs. |
Remarks
If you add this source, WebRTC only receives media stream.
Transceiver
Exceptions
Type | Condition |
---|---|
System. |
The WebRTC has already been disposed. |
See Also
Declaration
C#
Copy
public TransceiverCodec GetTransceiverCodec(MediaType type)
Parameters
Type | Name | Description |
---|---|---|
Media |
type | The media type. |
Returns
Type | Description |
---|---|
Transceiver |
The transceiver codec. |
Remarks
If you add this source, WebRTC only receives media stream.
Transceiver
Exceptions
Type | Condition |
---|---|
System. |
MediaSource is not attached yet. |
System. |
The WebRTC has already been disposed. |
SetTransceiverCodec(MediaType, TransceiverCodec)
Sets the transceiver codec for receiving media stream.
Declaration
C#
Copy
public void SetTransceiverCodec(MediaType type, TransceiverCodec codec)
Parameters
Type | Name | Description |
---|---|---|
Media |
type | The media type. |
Transceiver |
codec | The transceiver codec. |
Remarks
This method does not throw state exception anymore(Since API Level 12). It can be called in any state.
Exceptions
Type | Condition |
---|---|
System. |
MediaSource is not attached yet. |
System. |
The WebRTC has already been disposed. |