Class MediaFileSource
Definition
- Namespace:
- Tizen.Multimedia.Remoting
- Assembly:
- Tizen.Multimedia.Remoting.dll
- API Level:
- 10
Represents a media source with contents read from a file.
C#Copypublic sealed class MediaFileSource : MediaSource, IDisplayable<uint>
- Inheritance
Remarks
Depending on where the source file is located either the media storage privilege (http://tizen.org/privilege/mediastorage) is required or
the external storage privilege(http://tizen.org/privilege/externalstorage) is required.
Constructors
Declaration
C#Copypublic MediaFileSource(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The file path. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
API Level: 10
Properties
Declaration
C#Copypublic bool IsLooping { get; set; }
Property Value
Type | Description |
---|---|
Boolean | true if the transfer starts again from the beginning of the file source after reaching the end of the file; otherwise, false\n The default value is false. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | MediaSource is not attached yet. |
ObjectDisposedException | The WebRTC has already been disposed. |
API Level: 10
Methods
Declaration
C#Copypublic bool GetPause(MediaType type)
Parameters
Type | Name | Description |
---|---|---|
MediaType | type | The media type. |
Returns
Type | Description |
---|---|
Boolean | The pause status. |
Remarks
The default value is false.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | MediaSource is not attached yet. |
ObjectDisposedException | The WebRTC has already been disposed. |
API Level: 10
GetTransceiverDirection(MediaType)
Gets the transceiver direction for receiving media stream.
Declaration
C#Copypublic TransceiverDirection GetTransceiverDirection(MediaType type)
Parameters
Type | Name | Description |
---|---|---|
MediaType | type | The media type. |
Returns
Type | Description |
---|---|
TransceiverDirection | The transceiver direction. |
Remarks
The default value is SendRecv
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | MediaSource is not attached yet. |
ObjectDisposedException | The WebRTC has already been disposed. |
API Level: 10
Declaration
C#Copypublic void SetPause(MediaType type, bool isPaused)
Parameters
Type | Name | Description |
---|---|---|
MediaType | type | The media type. |
Boolean | isPaused | The pause status. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | MediaSource is not attached yet. |
ObjectDisposedException | The WebRTC has already been disposed. |
API Level: 10
SetTransceiverDirection(MediaType, TransceiverDirection)
Sets the transceiver direction for receiving media stream.
Declaration
C#Copypublic void SetTransceiverDirection(MediaType type, TransceiverDirection direction)
Parameters
Type | Name | Description |
---|---|---|
MediaType | type | The media type. |
TransceiverDirection | direction | The transceiver direction. |
Remarks
The WebRTC must be in the Idle state when transceiver direction is set.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | MediaSource is not attached yet. |
ObjectDisposedException | The WebRTC has already been disposed. |