Search Results for

    Show / Hide Table of Contents

    Interface IMediaCache

    Interface for the media cache.

    Namespace: RenderHeads.Media.AVProVideo
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IMediaCache

    Methods

    AddMediaToCache(String, String, MediaCachingOptions)

    Cache the media specified by url.

    Declaration
    void AddMediaToCache(string url, string headers = null, MediaCachingOptions options = null)
    Parameters
    Type Name Description
    System.String url

    The url of the media.

    System.String headers
    MediaCachingOptions options

    CancelDownloadOfMediaToCache(String)

    Cancels the download of the media specified by url.

    Declaration
    void CancelDownloadOfMediaToCache(string url)
    Parameters
    Type Name Description
    System.String url

    The url of the media.

    GetCachedMediaStatus(String, ref Single)

    Get the cached status for the media specified.

    Declaration
    CachedMediaStatus GetCachedMediaStatus(string url, ref float progress)
    Parameters
    Type Name Description
    System.String url

    The url of the media.

    System.Single progress

    The amount of the media that has been cached in the range [0...1].

    Returns
    Type Description
    CachedMediaStatus

    The status of the media.

    IsMediaCachingSupported()

    Test to see if the player can cache media.

    Declaration
    bool IsMediaCachingSupported()
    Returns
    Type Description
    System.Boolean

    True if media caching is supported.

    PauseDownloadOfMediaToCache(String)

    Pause the download of the media specified by url.

    Declaration
    void PauseDownloadOfMediaToCache(string url)
    Parameters
    Type Name Description
    System.String url

    The url of the media.

    RemoveMediaFromCache(String)

    Remove the cached media specified by url.

    Declaration
    void RemoveMediaFromCache(string url)
    Parameters
    Type Name Description
    System.String url

    The url of the media.

    ResumeDownloadOfMediaToCache(String)

    Resume the download of the media specified by url.

    Declaration
    void ResumeDownloadOfMediaToCache(string url)
    Parameters
    Type Name Description
    System.String url

    The url of the media.

    In This Article