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#
Copy
public sealed class MediaFileSource : MediaSource, IDisplayable<uint>
Inheritance
MediaFileSource
Implements
Tizen.Multimedia.IDisplayable<UInt32>
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

View Source

MediaFileSource(String)

Initializes a new instance of the MediaFileSource class.

Declaration
C#
Copy
public MediaFileSource(string path)
Parameters
Type Name Description
String path

The file path.

API Level: 10

Properties

View Source

IsLooping

Gets or sets the looping mode of the file source.

Declaration
C#
Copy
public 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.

API Level: 10

Methods

View Source

GetPause(MediaType)

Gets the pause status of media file source.

Declaration
C#
Copy
public 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.

API Level: 10
View Source

GetTransceiverDirection(MediaType)

Gets the transceiver direction for receiving media stream.

Declaration
C#
Copy
public 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

API Level: 10
View Source

SetPause(MediaType, Boolean)

Sets the pause status of media file source.

Declaration
C#
Copy
public void SetPause(MediaType type, bool isPaused)
Parameters
Type Name Description
MediaType type

The media type.

Boolean isPaused

The pause status.

API Level: 10
View Source

SetTransceiverDirection(MediaType, TransceiverDirection)

Sets the transceiver direction for receiving media stream.

Declaration
C#
Copy
public 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.

API Level: 10

Implements

Tizen.Multimedia.IDisplayable<>

Extension Methods

See Also