/// <summary> /// Sets the movie player back to default state. Use when exiting or otherwise it shouldn't be required. /// </summary> public static void Reset() { if (FfccAudio != null) { FfccAudio.Dispose(); } FfccAudio = null; if (FfccVideo != null) { FfccVideo.Dispose(); } FfccVideo = null; MovieState = STATE_LOAD; if (frameTex != null && !frameTex.IsDisposed) { frameTex.Dispose(); } frameTex = null; GC.Collect(); }
private static void Reset() { if (T_Audio != null) { T_Audio.Abort("Ending video playback"); } FfccAudio = null; if (FfccVideo != null) { FfccVideo.Dispose(); } FfccVideo = null; MovieState = STATE_INIT; if (frameTex != null && !frameTex.IsDisposed) { frameTex.Dispose(); } frameTex = null; GC.Collect(); }