/// <summary>
 /// Configures the player with a TextAsset resource
 /// </summary>
 public void Setup(AvailablePlayerType playerType, RenderType renderType, TextAsset metadata)
 {
     Setup(playerType, renderType);
     _metaDataSourceType = MetadataSourceType.TextAsset;
     _metaDataFile       = metadata;
     RefreshMetaData();
 }
 /// <summary>
 /// Configures the player with a dynamic metadata file
 /// </summary>
 public void Setup(AvailablePlayerType playerType, RenderType renderType, string metadataPath)
 {
     Setup(playerType, renderType);
     _metaDataSourceType = MetadataSourceType.FilePath;
     _metaDataFilePath   = metadataPath;
     RefreshMetaData();
 }
        /// <summary>
        /// Configures the player with a render type and player type, but no path
        /// </summary>
        protected void Setup(AvailablePlayerType playerType, RenderType renderType)
        {
            _playerType = playerType;
            _renderType = renderType;

            //build the components
            ResetPlayer();
            ResetRenderer();
        }
Exemplo n.º 4
0
        public bool Setup(ClipPlayer.PlayerValues values, AvailablePlayerType playerType, RenderType renderType, string metadataPath)
        {
            Setup(values, playerType, renderType);

            _dynamicMetadataFile = true;
            _metaDataFilePath    = metadataPath;
            RefreshMetaData();

            return(IsSetup);
        }
Exemplo n.º 5
0
        /// <summary>
        /// Configures the player with a TextAsset resource
        /// </summary>
        public bool Setup(ClipPlayer.PlayerValues values, AvailablePlayerType playerType, RenderType renderType, TextAsset metadata)
        {
            Setup(values, playerType, renderType);

            _dynamicMetadataFile = false;
            _metaDataFile        = metadata;
            RefreshMetaData();

            return(IsSetup);
        }
Exemplo n.º 6
0
        protected void Setup(ClipPlayer.PlayerValues values, AvailablePlayerType playerType, RenderType renderType)
        {
            //configure the clip with all the inputs
            _moviePath    = values.moviePath;
            _fileLocation = values.location;
            _videoClip    = values.videoClip;

            _playerType = playerType;
            _renderType = renderType;

            //build the components
            ResetPlayer();
            ResetRenderer();
        }
 void Reset() //native monobehavior call
 {
     _playerType = _defaultPlayerType;
 }
Exemplo n.º 8
0
 void Reset()
 {
     _playerType = _defaultPlayerType;
 }