Table of Contents

Class MediaPlayer

Namespace
RenderHeads.Media.AVProVideo
Assembly
AVProVideo.Runtime.dll

This is the primary AVPro Video component and handles all media loading, seeking, information retrieving etc. This component does not do any display of the video. Instead this is handled by other components such as ApplyToMesh, ApplyToMaterial, DisplayIMGUI, DisplayUGUI.

[ExecuteInEditMode]
[AddComponentMenu("AVPro Video/Media Player", -100)]
[HelpURL("https://www.renderheads.com/products/avpro-video/")]
public class MediaPlayer : MonoBehaviour, ISerializationCallbackReceiver
Inheritance
object
Object
Component
Behaviour
MonoBehaviour
MediaPlayer
Implements
ISerializationCallbackReceiver
Derived

Fields

Name Description
InternalMediaLoadedEvent
_baseMediaPlayer

Properties

Name Description
AudioBalance
AudioFocusEnabled
AudioFocusOffLevelDB
AudioFocusTransform
AudioFocusWidthDegrees
AudioHeadTransform
AudioMuted
AudioSource
AudioTracks
AudioVolume
AutoOpen
AutoStart
Cache
Control
EventMask
Events
FallbackMediaHints
ForceFileFormat
FrameResampler
HttpHeaders
Info
KeyAuth
Loop
MediaOpened
MediaPath
MediaReference
MediaSource
PauseMediaOnAppPause
Persistent
PlatformOptionsAndroid
PlatformOptionsOpenHarmony
PlatformOptionsWebGL
PlatformOptionsWindows
PlatformOptionsWindowsUWP
PlatformOptions_iOS
PlatformOptions_macOS
PlatformOptions_tvOS
PlatformOptions_visionOS
PlayMediaOnAppUnpause
PlaybackRate
Player
ResampleBufferSize
ResampleMode
SideloadSubtitles
SubtitlePath
Subtitles
TextTracks
TextureAnisoLevel
TextureFilterMode
TextureProducer
TextureWrapMode
TimedMetadata
UseResampler
Variants
VideoLayoutMapping
VideoTracks

Methods

Name Description
AddChunkToVideoBuffer(byte[], ulong, ulong)
Awake()
CloseMedia()
CreateMediaPlayer()
DisableSubtitles()
EditorAllPlayersDispose()
EditorUpdate()
EnableSubtitles(MediaPath)
EndOpenChunkedVideoFromBuffer()
ExtractFrame(Texture2D, double, bool, int, int)
ExtractFrameAsync(Texture2D, ProcessExtractedFrame, double, bool, int, int)
ForceDispose()
GetCurrentPlatformOptions()
GetPlatform()
GetPlatformOptions(Platform)
GetPlatformOptionsVariable(Platform)
Initialise()
IsHandleEvent(EventType)
IsUsingAndroidOESPath()
IsUsingYCbCr()
OnDestroy()
OnDisable()
OnEnable()
OpenMedia(MediaPath, bool)
OpenMedia(MediaPathType, string, bool)
OpenMedia(MediaReference, bool)
OpenMedia(bool)
OpenMediaFromBuffer(byte[], bool)
Pause()
Play()
Rewind(bool)
SaveFrameToExr()
SaveFrameToPng()
SeekToLiveTime(double)
SetAudioSource(AudioSource)
SetMediaPath(MediaPath)
SetMediaReference(MediaReference)
SetMediaSource(MediaSource)
Start()
StartOpenChunkedMediaFromBuffer(ulong, bool)
StartRenderCoroutine()
Stop()
Update()