Class PlaylistMediaPlayer
Inheritance
System.Object
PlaylistMediaPlayer
Implements
MonoBehaviour
ISerializationCallbackReceiver
Assembly: cs.temp.dll.dll
public class PlaylistMediaPlayer : MediaPlayer, ITextureProducer
Properties
Declaration
public override bool AudioMuted { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public override float AudioVolume { get; set; }
Property Value
Type |
Description |
System.Single |
|
Overrides
Closes videos that aren't playing. This will save memory but adds extra overhead
Declaration
public bool AutoCloseVideo { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Enable the playlist to progress to the next item automatically, or wait for manual trigger via scripting
Declaration
public bool AutoProgress { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Returns the IMediaControl interface for the MediaPlayer that is playing the current active item in the playlist (returned by CurrentPlayer property). This will change during each transition.
Declaration
public override IMediaControl Control { get; }
Property Value
Overrides
Declaration
public MediaPlayer CurrentPlayer { get; }
Property Value
The default transition to use if the transition is not overridden in the MediaItem
Declaration
public PlaylistMediaPlayer.Transition DefaultTransition { get; set; }
Property Value
The default duration the transition will take (in seconds) if the transition is not overridden in the MediaItem
Declaration
public float DefaultTransitionDuration { get; set; }
Property Value
Type |
Description |
System.Single |
|
The default easing the transition will use if the transition is not overridden in the MediaItem
Declaration
public PlaylistMediaPlayer.Easing.Preset DefaultTransitionEasing { get; set; }
Property Value
Returns the IMediaInfo interface for the MediaPlayer that is playing the current active item in the playlist (returned by CurrentPlayer property). This will change during each transition.
Declaration
public override IMediaInfo Info { get; }
Property Value
Overrides
None: Do not loop the playlist when the end is reached.
Loop: Rewind the playlist and play again when the each is reached
Declaration
public PlaylistMediaPlayer.PlaylistLoopMode LoopMode { get; set; }
Property Value
Declaration
public MediaPlayer NextPlayer { get; }
Property Value
Declaration
public MediaPlaylist Playlist { get; }
Property Value
Declaration
public int PlaylistIndex { get; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public MediaPlaylist.MediaItem PlaylistItem { get; }
Property Value
TextureProducer
Declaration
public override ITextureProducer TextureProducer { get; }
Property Value
Overrides
Methods
Declaration
public bool CanJumpToItem(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public float[] GetAffineTransform()
Returns
Type |
Description |
System.Single[] |
|
GetTexture(Int32)
Declaration
public Texture GetTexture(int index = 0)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
GetTextureAlphaPacking()
Declaration
public AlphaPacking GetTextureAlphaPacking()
Returns
GetTextureCount()
Declaration
public int GetTextureCount()
Returns
Type |
Description |
System.Int32 |
|
GetTextureFrameCount()
Declaration
public int GetTextureFrameCount()
Returns
Type |
Description |
System.Int32 |
|
GetTextureMatrix()
Declaration
public Matrix4x4 GetTextureMatrix()
Returns
Type |
Description |
Matrix4x4 |
|
GetTexturePixelAspectRatio()
Declaration
public float GetTexturePixelAspectRatio()
Returns
Type |
Description |
System.Single |
|
GetTextureStereoPacking()
Declaration
public StereoPacking GetTextureStereoPacking()
Returns
GetTextureTimeStamp()
Declaration
public long GetTextureTimeStamp()
Returns
Type |
Description |
System.Int64 |
|
GetTextureTransparency()
Declaration
public TransparencyMode GetTextureTransparency()
Returns
Declaration
public Matrix4x4 GetYpCbCrTransform()
Returns
Type |
Description |
Matrix4x4 |
|
Declaration
Returns
Type |
Description |
System.Boolean |
|
Declaration
public bool JumpToItem(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected override void OnDestroy()
Overrides
Declaration
public void OnVideoEvent(MediaPlayer mp, MediaPlayerEvent.EventType et, ErrorCode errorCode)
Parameters
Declaration
public void OpenVideoFile(MediaPlaylist.MediaItem mediaItem)
Parameters
Declaration
public override void Pause()
Overrides
Declaration
public override void Play()
Overrides
Declaration
Returns
Type |
Description |
System.Boolean |
|
Declaration
public bool RequiresVerticalFlip()
Returns
Type |
Description |
System.Boolean |
|
SupportsTextureFrameCount()
Declaration
public bool SupportsTextureFrameCount()
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected override void Update()
Overrides
Implements
MonoBehaviour
ISerializationCallbackReceiver