Class MediaBufferSource
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.MediaPlayer.dll
Represents a media source using memory.
public sealed class MediaBufferSource : MediaSource
- Inheritance
Remarks
The buffer has to be filled with appropriate data which means it must be well-formatted. If you provide invalid data, you won't receive an error until Start() is called.
Constructors
View SourceMediaBufferSource(byte[], int, int)
Initializes a new instance of the MediaBufferSource class from the buffer with the specified length and the specified offset.
Declaration
public MediaBufferSource(byte[] buffer, int length, int offset = 0)
Parameters
Type | Name | Description |
---|---|---|
byte[] | buffer | The source array to be copied into the buffer. |
int | length | The value indicating the number of bytes to copy from the buffer. |
int | offset | The value indicating the offset in the buffer of the first byte to copy. |
Remarks
The buffer has to be filled with appropriate data which means it must be well-formatted. If you provide invalid data, you won't receive an error until Start() is called.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
See Also
View SourceMediaBufferSource(byte[])
Initializes a new instance of the MediaBufferSource class from the buffer.
Declaration
public MediaBufferSource(byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
byte[] | buffer | The source array to be copied into the buffer. |
Remarks
The buffer has to be filled with appropriate data which means it must be well-formatted. If you provide invalid data, you won't receive an error until Start() is called.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
See Also
View SourceMediaBufferSource(int)
Initializes a new instance of the MediaBufferSource class with an allocated buffer.
Declaration
public MediaBufferSource(int length)
Parameters
Type | Name | Description |
---|---|---|
int | length | The value indicating the size of the buffer. |
Remarks
The buffer has to be filled with appropriate data which means it must be well-formatted. If you provide invalid data, you won't receive an error until Start() is called.
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException |
|
See Also
Properties
View SourceBuffer
Gets the byte array of this buffer.
Declaration
public byte[] Buffer { get; }
Property Value
Type | Description |
---|---|
byte[] |
Remarks
The buffer has to be filled with appropriate data which means it must be well-formatted. If you provide invalid data, you won't receive an error until Start() is called.
See Also
Methods
View SourceWrap(byte[])
Creates a MediaBufferSource that wraps a byte array.
Declaration
public static MediaBufferSource Wrap(byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
byte[] | buffer | The array to be wrapped. |
Returns
Type | Description |
---|---|
MediaBufferSource | A MediaBufferSource wrapping the byte array. |
Remarks
The buffer has to be filled with appropriate data which means it must be well-formatted. If you provide invalid data, you won't receive an error until Start() is called.