Class MediaStreamSource
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.MediaPlayer.dll
Provides the ability to push packets as the source of Player.
C#Copypublic sealed class MediaStreamSource : MediaSource
- Inheritance
Remarks
The source must be set as a source to a player before pushing.
Constructors
MediaStreamSource(AudioMediaFormat, VideoMediaFormat)
Initializes a new instance of the MediaStreamSource class with the specified AudioMediaFormat and VideoMediaFormat.
Declaration
C#Copypublic MediaStreamSource(AudioMediaFormat audioMediaFormat, VideoMediaFormat videoMediaFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| AudioMediaFormat | audioMediaFormat | The AudioMediaFormat for this source. |
| VideoMediaFormat | videoMediaFormat | The VideoMediaFormat for this source. |
Remarks
AAC and H.264 are supported.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Both |
| System.ArgumentException |
|
MediaStreamSource(AudioMediaFormat)
Initializes a new instance of the MediaStreamSource class with the specified AudioMediaFormat.
Declaration
C#Copypublic MediaStreamSource(AudioMediaFormat audioMediaFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| AudioMediaFormat | audioMediaFormat | The AudioMediaFormat for this source. |
Remarks
AAC is supported.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
| System.ArgumentException |
|
See Also
MediaStreamSource(VideoMediaFormat)
Initializes a new instance of the MediaStreamSource class with the specified VideoMediaFormat.
Declaration
C#Copypublic MediaStreamSource(VideoMediaFormat videoMediaFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| VideoMediaFormat | videoMediaFormat | The VideoMediaFormat for this source. |
Remarks
H.264 is supported.
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 MediaStreamConfiguration AudioConfiguration { get; }
Property Value
| Type | Description |
|---|---|
| MediaStreamConfiguration |
Remarks
The source must be set as a source to a player before pushing.
See Also
Player
Gets the Player that this source is assigned to as a source, or null if this source is not assigned.
Declaration
C#Copypublic Player Player { get; }
Property Value
| Type | Description |
|---|---|
| Player |
Remarks
The source must be set as a source to a player before pushing.
See Also
Declaration
C#Copypublic static IEnumerable<MediaFormatAudioMimeType> SupportedAudioTypes { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T><MediaFormatAudioMimeType> |
Remarks
The source must be set as a source to a player before pushing.
See Also
Declaration
C#Copypublic static IEnumerable<MediaFormatVideoMimeType> SupportedVideoTypes { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T><MediaFormatVideoMimeType> |
Remarks
The source must be set as a source to a player before pushing.
See Also
VideoConfiguration
Gets the video configuration, or null if no VideoMediaFormat is specified in the constructor.
Declaration
C#Copypublic MediaStreamConfiguration VideoConfiguration { get; }
Property Value
| Type | Description |
|---|---|
| MediaStreamConfiguration |
Remarks
The source must be set as a source to a player before pushing.
See Also
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 player and the player must be in the Ready, Playing, or Paused state.
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | This source is not set as a source to a player. |
| System.ArgumentNullException |
|
| System.ObjectDisposedException |
|
| System.ArgumentException |
|
| NoBufferSpaceException | The internal buffer has reached its limits. |