|
|
|
@ -1116,17 +1116,17 @@ namespace AksWebBrowser
|
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
//Parame.frm.Invoke(() => |
|
|
|
|
//{ |
|
|
|
|
// new AksVideoPlayer(Parame.frm, param.title, param.url); |
|
|
|
|
//}); |
|
|
|
|
Task.Run(() => |
|
|
|
|
Parame.frm.Invoke(() => |
|
|
|
|
{ |
|
|
|
|
string command = $"pkill vlc"; |
|
|
|
|
ShllCommad(command); |
|
|
|
|
command = $"vlc --overlay --video-on-top --fullscreen --video-title={param.title} {param.url}"; |
|
|
|
|
ShllCommad(command); |
|
|
|
|
new AksVideoPlayer(Parame.frm, param.title, param.url); |
|
|
|
|
}); |
|
|
|
|
//Task.Run(() => |
|
|
|
|
//{ |
|
|
|
|
// //string command = $"pkill ffplay "; |
|
|
|
|
// //ShllCommad(command); |
|
|
|
|
// string command = $"ffplay -autoexit -showmode 0 -x 800 -y 600 -fs -window-title {param.title} {param.url}"; |
|
|
|
|
// ShllCommad(command); |
|
|
|
|
//}); |
|
|
|
|
string result = "{\"timestamp\":\"" + Utils.GetTimestamp() + "\",\"message\":\"success\",\"code\":\"200\",\"status\":true,\"suffix\":\"jpg\",\"data\":\"" + "播放成功" + "\"}"; |
|
|
|
|
SubmitLogs(result, "playVideo"); |
|
|
|
|
return result; |
|
|
|
@ -1648,7 +1648,6 @@ namespace AksWebBrowser
|
|
|
|
|
//Log.Error("签字版异常:" + ex.Message); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static string ttsStr = string.Empty; |
|
|
|
|
/// <summary> |
|
|
|
|
/// 文字转语音 |
|
|
|
@ -2033,6 +2032,7 @@ namespace AksWebBrowser
|
|
|
|
|
} |
|
|
|
|
return tempFile; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 是否已获取收取 |
|
|
|
|
/// </summary> |
|
|
|
@ -2241,8 +2241,7 @@ namespace AksWebBrowser
|
|
|
|
|
process.WaitForExit(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static string ReadByBody() |
|
|
|
|
{ |
|
|
|
|
Task.Run(async () => |
|
|
|
@ -2252,7 +2251,7 @@ namespace AksWebBrowser
|
|
|
|
|
@event11.WaitOne(); |
|
|
|
|
return body; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 读取业务数据 |
|
|
|
|
/// </summary> |
|
|
|
|