Class NullMediaPlayer
- Namespace
- RenderHeads.Media.AVProVideo
- Assembly
- AVProVideo.Runtime.dll
This media player fakes video playback for platforms that aren't supported
public sealed class NullMediaPlayer : BaseMediaPlayer, IVideoTracks, IAudioTracks, ITextTracks, ITimedMetadata, IMediaPlayer, IMediaControl, IMediaInfo, IMediaCache, ITextureProducer, IMediaSubtitles, IVariants, IEnumerable, IDisposable
- Inheritance
-
objectNullMediaPlayer
- Implements
- Inherited Members
Methods
| Name | Description |
|---|---|
| CanPlay() | |
| CloseMedia() | |
| Dispose() | |
| GetCurrentTime() | Returns the current video time in seconds |
| GetDuration() | Returns media duration in seconds |
| GetExpectedVersion() | |
| GetPlaybackRate() | |
| GetTexture(int) | Returns the Unity texture containing the current frame image. The texture pointer will return null while the video is loading This texture usually remains the same for the duration of the video. There are cases when this texture can change, for instance: if the graphics device is recreated, a new video is loaded, or if an adaptive stream (eg HLS) is used and it switches video streams. |
| GetTextureFrameCount() | Returns a count of how many times the texture has been updated |
| GetVersion() | |
| GetVideoDisplayRate() | Returns the current achieved display rate in frames per second |
| GetVideoFrameRate() | Returns the frame rate of the media. |
| GetVideoHeight() | Returns video height in pixels |
| GetVideoWidth() | Returns video width in pixels |
| GetVolume() | |
| HasAudio() | Returns true if the media has a audio track |
| HasMetaData() | |
| HasVideo() | Returns true if the media has a visual track |
| IsBuffering() | |
| IsFinished() | |
| IsLooping() | |
| IsMuted() | |
| IsPaused() | |
| IsPlaying() | |
| IsSeeking() | |
| MuteAudio(bool) | |
| OpenMedia(string, long, string, MediaHints, int, bool) | Be careful using this method directly. It is best to instead use the OpenMedia() method in the MediaPlayer component as this will set up the events correctly and also perform other checks customHttpHeaders is in the format "key1:value1\r\nkey2:value2\r\n"= |
| Pause() | |
| Play() | |
| Render() | |
| RequiresVerticalFlip() | Returns true if the image on the texture is upside-down |
| Seek(double) | The time in seconds seeked will be to the exact time This can take a long time is the keyframes are far apart Some platforms don't support this and instead seek to the closest keyframe |
| SeekFast(double) | The time in seconds seeked will be to the closest keyframe |
| SetLooping(bool) | |
| SetPlaybackRate(float) | |
| SetVolume(float) | |
| Stop() | |
| Update() |