Class MediaSource
Definition
- Namespace:
- Tizen.Multimedia.Remoting
- Assembly:
- Tizen.Multimedia.Remoting.dll
MediaSource is a base class for WebRTC sources.
C#Copypublic abstract class MediaSource
- Inheritance
-
objectMediaSource
- Derived
-
Tizen.Multimedia.Remoting.MediaFileSourceTizen.Multimedia.Remoting.MediaFileSourceTizen.Multimedia.Remoting.MediaFileSourceTizen.Multimedia.Remoting.MediaFileSourceTizen.Multimedia.Remoting.MediaFileSourceTizen.Multimedia.Remoting.MediaNullSourceTizen.Multimedia.Remoting.MediaNullSourceTizen.Multimedia.Remoting.MediaNullSourceTizen.Multimedia.Remoting.MediaNullSourceTizen.Multimedia.Remoting.MediaNullSource
Constructors
Declaration
C#Copyprotected MediaSource(MediaType mediaType)
Parameters
| Type | Name | Description |
|---|---|---|
| MediaType | mediaType |
Properties
Declaration
C#Copyprotected MediaType MediaType { get; }
Property Value
| Type | Description |
|---|---|
| MediaType |
Declaration
C#Copypublic bool Mute { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | A value that specifies the mute status. |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | MediaSource is not attached yet. |
| System.ObjectDisposedException | The WebRTC has already been disposed. |
Declaration
C#Copypublic bool Pause { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | A value that specifies the pause status. |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | MediaSource is not attached yet. |
| System.ObjectDisposedException | The WebRTC has already been disposed. |
Declaration
C#Copypublic TransceiverDirection TransceiverDirection { get; set; }
Property Value
| Type | Description |
|---|---|
| TransceiverDirection | A TransceiverDirection that specifies the transceiver direction. |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | MediaSource is not attached yet. |
| System.ObjectDisposedException | The WebRTC has already been disposed. |
Declaration
C#Copypublic Size VideoResolution { get; set; }
Property Value
| Type | Description |
|---|---|
| Size | A value that specifies the mute status. |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | MediaSource is not attached yet. |
| System.ObjectDisposedException | The WebRTC has already been disposed. |
Methods
EnableAudioLoopback(AudioStreamPolicy)
Enables the audio loopback. The local audio will be played with policy.
Declaration
C#Copypublic MediaStreamTrack EnableAudioLoopback(AudioStreamPolicy policy)
Parameters
| Type | Name | Description |
|---|---|---|
| AudioStreamPolicy | policy | The AudioStreamPolicy to apply. |
Returns
| Type | Description |
|---|---|
| MediaStreamTrack |
Remarks
MediaSource does not support all AudioStreamType.
Supported types are Media, Voip,
MediaExternalOnly.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
| System.InvalidOperationException | MediaSource is not attached yet. |
| System.NotSupportedException | AudioStreamType of |
| System.ObjectDisposedException |
|
EnableVideoLoopback(Display)
Enables the video loopback. The local video will be diaplayed in display.
Declaration
C#Copypublic MediaStreamTrack EnableVideoLoopback(Display display)
Parameters
| Type | Name | Description |
|---|---|---|
| Display | display | The Display to apply. |
Returns
| Type | Description |
|---|---|
| MediaStreamTrack |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | The display has already been assigned to another. |
| System.ArgumentNullException |
|
| System.InvalidOperationException | MediaSource is not attached yet. |
| System.ObjectDisposedException | The WebRTC has already been disposed. |