/// <summary> /// 播放线程执行方法 /// </summary> private unsafe void DeCoding() { try { Console.WriteLine("DeCoding run..."); FFmpeg_Manager.ShowMessage = "\nDeCoding run..."; rtmp.Start(Methodshow, Url); } catch (Exception ex) { Console.WriteLine(ex); Meassage("异常:" + ex.Message); instance = null; } finally { Console.WriteLine("DeCoding exit"); Meassage("DeCoding exit"); rtmp.Stop(); thPlayer = null; } }
public static FFmpeg_Manager GetInstance() { if (instance == null) { instance = new FFmpeg_Manager(); } return(instance); }