Class MediaFileSource

    Definition

    Namespace:
    Tizen.Multimedia.Remoting
    Assembly:
    Tizen.Multimedia.Remoting.dll

    Represents a media source that reads media data from a file.

    public sealed class MediaFileSource : MediaSource
    Inheritance
    object
    MediaSource
    MediaFileSource
    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
    public MediaFileSource(string path)
    Parameters
    Type Name Description
    string path

    The file path.

    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.

    Exceptions
    Type Condition
    System.ArgumentNullException

    path is null.

    See Also
    AddSource(MediaSource)
    AddSources(params MediaSource[])

    Properties

    View Source

    IsLooping

    Gets or sets the looping mode of the file source.

    Declaration
    public bool IsLooping { get; set; }
    Property Value
    Type Description
    bool

    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.

    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.

    Exceptions
    Type Condition
    System.InvalidOperationException

    MediaSource is not attached yet.

    System.ObjectDisposedException

    The WebRTC has already been disposed.

    See Also
    AddSource(MediaSource)
    AddSources(params MediaSource[])

    Methods

    View Source

    GetPause(MediaType)

    Gets the pause status of media file source.

    Declaration
    public bool GetPause(MediaType type)
    Parameters
    Type Name Description
    MediaType type

    The media type.

    Returns
    Type Description
    bool

    The pause status.

    Remarks

    The default value is false.

    Exceptions
    Type Condition
    System.InvalidOperationException

    MediaSource is not attached yet.

    System.ObjectDisposedException

    The WebRTC has already been disposed.

    See Also
    AddSource(MediaSource)
    AddSources(params MediaSource[])
    View Source

    GetTransceiverDirection(MediaType)

    Gets the transceiver direction for receiving media stream.

    Declaration
    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

    Exceptions
    Type Condition
    System.InvalidOperationException

    MediaSource is not attached yet.

    System.ObjectDisposedException

    The WebRTC has already been disposed.

    See Also
    AddSource(MediaSource)
    AddSources(params MediaSource[])
    View Source

    SetPause(MediaType, bool)

    Sets the pause status of media file source.

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

    The media type.

    bool isPaused

    The pause status.

    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.

    Exceptions
    Type Condition
    System.InvalidOperationException

    MediaSource is not attached yet.

    System.ObjectDisposedException

    The WebRTC has already been disposed.

    See Also
    AddSource(MediaSource)
    AddSources(params MediaSource[])
    View Source

    SetTransceiverDirection(MediaType, TransceiverDirection)

    Sets the transceiver direction for receiving media stream.

    Declaration
    public void SetTransceiverDirection(MediaType type, TransceiverDirection direction)
    Parameters
    Type Name Description
    MediaType type

    The media type.

    TransceiverDirection direction

    The transceiver direction.

    Remarks

    This method does not throw state exception anymore(Since API Leve 12). It can be called in any state.

    Exceptions
    Type Condition
    System.InvalidOperationException

    MediaSource is not attached yet.

    System.ObjectDisposedException

    The WebRTC has already been disposed.

    See Also
    AddSource(MediaSource)
    AddSources(params MediaSource[])

    See Also

    AddSource(MediaSource)
    AddSources(params MediaSource[])
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX