// Interace methods public void PrepareVideo(string vidName) { this.videoName = vidName; string defilepath = Application.streamingAssetsPath + "/" + vidName; Debug.Log("decoding path: " + defilepath); decoder.initDecoder(defilepath); Debug.Log("setting Pause!"); decoder.setPause(); }
public void startVideoPlay() { if (!isInitialized) { Debug.Log(LOG_TAG + " not initialized."); return; } if (isAdaptToResolution) { decoder.onInitComplete.AddListener(adaptResolution); } decoder.onInitComplete.AddListener(decoder.startDecoding); decoder.onInitComplete.AddListener(decoder.onInitComplete.RemoveAllListeners); decoder.initDecoder(fileSeeker.getPath()); }