Class MediaPacketSource
Definition
- Namespace:
- Tizen.Multimedia.Remoting
- Assembly:
- Tizen.Multimedia.Remoting.dll
Represents a media packet source.
C#Copypublic sealed class MediaPacketSource : MediaSource
- Inheritance
Constructors
MediaPacketSource(AudioMediaFormat)
Initializes a new instance of the MediaPacketSource class with the specified AudioMediaFormat.
Declaration
C#Copypublic MediaPacketSource(AudioMediaFormat audioMediaFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| AudioMediaFormat | audioMediaFormat | The AudioMediaFormat for this source. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
| System.ArgumentException |
|
See Also
MediaPacketSource(VideoMediaFormat)
Initializes a new instance of the MediaPacketSource class with the specified VideoMediaFormat.
Declaration
C#Copypublic MediaPacketSource(VideoMediaFormat videoMediaFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| VideoMediaFormat | videoMediaFormat | The VideoMediaFormat for this source. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
| System.ArgumentException |
|
See Also
Properties
AudioConfiguration
Gets the audio configuration, or null if no AudioMediaFormat is specified in the constructor.
Declaration
C#Copypublic MediaPacketSourceConfiguration AudioConfiguration { get; }
Property Value
| Type | Description |
|---|---|
| MediaPacketSourceConfiguration |
Declaration
C#Copypublic static IEnumerable<MediaFormatAudioMimeType> SupportedAudioTypes { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T><MediaFormatAudioMimeType> |
Declaration
C#Copypublic static IEnumerable<MediaFormatVideoMimeType> SupportedVideoTypes { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T><MediaFormatVideoMimeType> |
VideoConfiguration
Gets the video configuration, or null if no VideoMediaFormat is specified in the constructor.
Declaration
C#Copypublic MediaPacketSourceConfiguration VideoConfiguration { get; }
Property Value
| Type | Description |
|---|---|
| MediaPacketSourceConfiguration |
Methods
Declaration
C#Copypublic void Push(MediaPacket packet)
Parameters
| Type | Name | Description |
|---|---|---|
| MediaPacket | packet | The MediaPacket to decode. |
Remarks
This source must be set as a source to a WebRTC and the WebRTC must be in the Negotiating or Playing state
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | This source is not set as a source to a WebRTC. |
| System.ArgumentNullException |
|
| System.ObjectDisposedException |
|
| System.ArgumentException |
|