Table of Contents

Timeline Playables

This component allows some basic control over the MediaPlayer component via the Timeline in the Timeline Package.

Setup

First the Track is added to the timeline:

alt_text

Next clips can be added to track by right-clicking on the track and selecting "Add Media Player Control Asset". Clips can overlap to allow some properties to animate. Currently only Audio Volume will animate.

alt_text

Each clip can then be set up with properties for controlling the MediaPlayer.

Properties
Property Function
Media Reference The media to load
Audio Volume 0 to 1 range of audio volume
Start Time The time in seconds to start from when new media is loaded. Negative values are ignored.
Pause On End Whether to pause playback when the clips ends

 

Installing

This is an extension as it requires the optional Timeline package from the Package Manager, so it requires some setup the first time you use it:

  1. Add the Timeline package to your project from the Package Manager.
  2. Add the Timeline package assembly Unity.Timeline to the _AVProVideo.Extensions.Timeline assembly definition references.
  3. Add AVPRO_PACKAGE_TIMELINE to your player Preprocessor Defines to enable the scripts to be compiled.