public void Pause() { if (handle == Types.INVALID_HANDLE) { return; } HvrPlayerInterfaceAPI.Asset_Pause(handle); if (onPause != null) { onPause(); } }
public void Stop() { if (handle == Types.INVALID_HANDLE) { return; } HvrPlayerInterfaceAPI.Asset_Pause(handle); HvrPlayerInterfaceAPI.Asset_Seek(handle, 0); if (onStop != null) { onStop(); } }