Interface IMediaInfo
Assembly: cs.temp.dll.dll
public interface IMediaInfo
Methods
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 |
|
Returns media duration in seconds
Declaration
Returns
| Type |
Description |
| System.Double |
|
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 |
|
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 |
|
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 |
|
Declaration
PlaybackQualityStats GetPlaybackQualityStats()
Returns
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[] |
|
Returns the current achieved display rate in frames per second
Declaration
float GetVideoDisplayRate()
Returns
| Type |
Description |
| System.Single |
|
Returns the frame rate of the media.
Declaration
float GetVideoFrameRate()
Returns
| Type |
Description |
| System.Single |
|
Returns video height in pixels
Declaration
Returns
| Type |
Description |
| System.Int32 |
|
Returns video width in pixels
Declaration
Returns
| Type |
Description |
| System.Int32 |
|
Returns true if the media has a audio track
Declaration
Returns
| Type |
Description |
| System.Boolean |
|
Returns true if the media has a visual track
Declaration
Returns
| Type |
Description |
| System.Boolean |
|
Checks if the media is compatible with external playback, for instance via AirPlay.
Declaration
bool IsExternalPlaybackSupported()
Returns
| Type |
Description |
| System.Boolean |
|
Checks if the playback is in a stalled state
Declaration
Returns
| Type |
Description |
| System.Boolean |
|
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 |
|