public static string 载完成合并FLV(DownIofoData downIofo, bool 是否直播结束) { string filename = string.Empty; List <string> DelFileList = new List <string>(); if (downIofo.继承.待合并文件列表.Count > 1) { filename = downIofo.继承.待合并文件列表[0]; for (int i = 0; i < downIofo.继承.待合并文件列表.Count - 1; i++) { DelFileList.Add(downIofo.继承.待合并文件列表[i + 1]); FlvMethod.Flv A = new FlvMethod.Flv() { File1Url = filename, File2Url = downIofo.继承.待合并文件列表[i + 1] }; DelFileList.Add(filename); string BB = FlvMethod.FlvSum(A, 是否直播结束); if (string.IsNullOrEmpty(BB)) { InfoLog.InfoPrintf($"{downIofo.房间_频道号}:{downIofo.主播名称}因为网络连接不稳定,无法获取文件头,放弃合并该flv", InfoLog.InfoClass.载必要提示); return(filename); } filename = BB; } } foreach (var item in DelFileList) { MMPU.文件删除委托(item, "FLV合并任务"); } return(filename); }
public static string 载完成合并FLV(string File1, string File2, bool 是否直播结束) { FlvMethod.Flv A = new FlvMethod.Flv() { File1Url = File1, File2Url = File2 }; return(FlvMethod.FlvSum(A, 是否直播结束)); }