/// <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(); }
public bool Setup(ClipPlayer.PlayerValues values, AvailablePlayerType playerType, RenderType renderType, string metadataPath) { Setup(values, playerType, renderType); _dynamicMetadataFile = true; _metaDataFilePath = metadataPath; RefreshMetaData(); return(IsSetup); }
/// <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); }
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; }
void Reset() { _playerType = _defaultPlayerType; }