Search Results for

    Show / Hide Table of Contents

    Interface IMediaInfo

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

    Methods

    GetDecoderPerformance(ref Int32, ref Int32, ref Int32)

    Declaration
    bool GetDecoderPerformance(ref int activeDecodeThreadCount, ref int decodedFrameCount, ref int droppedFrameCount)
    Parameters
    Type Name Description
    System.Int32 activeDecodeThreadCount
    System.Int32 decodedFrameCount
    System.Int32 droppedFrameCount
    Returns
    Type Description
    System.Boolean

    GetDuration()

    Returns media duration in seconds

    Declaration
    double GetDuration()
    Returns
    Type Description
    System.Double

    GetDurationFrames(Single)

    Returns media duration in frames NOTE: For best results the video should be encoded as keyframes only and have no audio track, or an audio track with the same length as the video track

    Declaration
    int GetDurationFrames(float overrideFrameRate = 0F)
    Parameters
    Type Name Description
    System.Single overrideFrameRate
    Returns
    Type Description
    System.Int32

    GetEstimatedTotalBandwidthUsed()

    Gets the estimated bandwidth used by all video players (in bits per second) Currently only supported on Android when using ExoPlayer API

    Declaration
    long GetEstimatedTotalBandwidthUsed()
    Returns
    Type Description
    System.Int64

    GetMaxFrameNumber(Single)

    Returns highest frame number that can be seeked to NOTE: For best results the video should be encoded as keyframes only and have no audio track, or an audio track with the same length as the video track

    Declaration
    int GetMaxFrameNumber(float overrideFrameRate = 0F)
    Parameters
    Type Name Description
    System.Single overrideFrameRate
    Returns
    Type Description
    System.Int32

    GetPlaybackQualityStats()

    Declaration
    PlaybackQualityStats GetPlaybackQualityStats()
    Returns
    Type Description
    PlaybackQualityStats

    GetPlayerDescription()

    Returns the a description of which playback path is used internally. This can for example expose whether CPU or GPU decoding is being performed For Windows the available player descriptions are: "DirectShow" - legacy Microsoft API but still very useful especially with modern filters such as LAV "MF-MediaEngine-Software" - uses the Windows 8.1 features of the Microsoft Media Foundation API, but software decoding "MF-MediaEngine-Hardware" - uses the Windows 8.1 features of the Microsoft Media Foundation API, but GPU decoding Android has "MediaPlayer" and "ExoPlayer" macOS / tvOS / iOS just has "AVFoundation"

    Declaration
    string GetPlayerDescription()
    Returns
    Type Description
    System.String

    GetTextureTransform()

    The affine transform of the texture as an array of six floats: a, b, c, d, tx, ty.

    Declaration
    float[] GetTextureTransform()
    Returns
    Type Description
    System.Single[]

    GetVideoDisplayRate()

    Returns the current achieved display rate in frames per second

    Declaration
    float GetVideoDisplayRate()
    Returns
    Type Description
    System.Single

    GetVideoFrameRate()

    Returns the frame rate of the media.

    Declaration
    float GetVideoFrameRate()
    Returns
    Type Description
    System.Single

    GetVideoHeight()

    Returns video height in pixels

    Declaration
    int GetVideoHeight()
    Returns
    Type Description
    System.Int32

    GetVideoWidth()

    Returns video width in pixels

    Declaration
    int GetVideoWidth()
    Returns
    Type Description
    System.Int32

    HasAudio()

    Returns true if the media has a audio track

    Declaration
    bool HasAudio()
    Returns
    Type Description
    System.Boolean

    HasVideo()

    Returns true if the media has a visual track

    Declaration
    bool HasVideo()
    Returns
    Type Description
    System.Boolean

    IsExternalPlaybackSupported()

    Checks if the media is compatible with external playback, for instance via AirPlay.

    Declaration
    bool IsExternalPlaybackSupported()
    Returns
    Type Description
    System.Boolean

    IsPlaybackStalled()

    Checks if the playback is in a stalled state

    Declaration
    bool IsPlaybackStalled()
    Returns
    Type Description
    System.Boolean

    PlayerSupportsLinearColorSpace()

    Whether this MediaPlayer instance supports linear color space If it doesn't then a correction may have to be made in the shader

    Declaration
    bool PlayerSupportsLinearColorSpace()
    Returns
    Type Description
    System.Boolean
    In This Article