mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
InputArgument: use the AbsolutUri value for URLs
If i want to download video from video server i use this code: string textLinkVideo = "https://vk.com/video_hls.php?dirs%5B240%5D=https%3A%2F%2Fcs531220.vkuservideo.net%2F5%2Fe15NTMyPzc3MA%2Fvideos%2F&dirs%5B360%5D=https%3A%2F%2Fcs531220.vkuservideo.net%2F5%2Fe15NTMyPzc3MA%2Fvideos%2F&path=5%2Fe15NTMyPzc3MA%2Fvideos%2F&extra=6jU8MLGkIpMxHqpAViGv7wXJofsIDdlwBNfwnjifdOnsHTv8e-h7LsyFJabx26lyLTsNfDBDy4u5H2HU0w9fT6114_FzHvFU2l2A-H9B23gan3k48_L60B68aDHTA_CLGKJEesUqTlEgyLlYoQiQiOg&c_extra=w0ZgeFZ-2ZoxqYTYlfwL5LZA5o2enfF0CqLyrQQVEk2owWZFaD2hfnPrzvLWrQfU81A8u5rCXw_CIe_8TDfITX3Cl12YwhBIfVCR4gmDNPYUbB-2tarthA-mOpY5WK77GAOZHs7gwx65i02-wHjGwIA&video=-7865622_456240009&tag=042ea140e4&c_tag=860d1761765a&hash=848f2afe36a72db4ff&lang_id=0&viewer_id=17403755"; FFMpegModel FFMpegModel = new FFMpegModel(); FFMpegModel.DownloadVideoVk(textLinkVideo, filePath); With AbsolutePath this method return /video_hls.php With AbsoluteUri this.method return full url
This commit is contained in:
parent
085fa78bf0
commit
b5ae935025
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ public InputArgument(params FileInfo[] values) : base(values.Select(v => v.FullN
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public InputArgument(params Uri[] values) : base(values.Select(v => v.AbsolutePath).ToArray())
|
public InputArgument(params Uri[] values) : base(values.Select(v => v.AbsoluteUri).ToArray())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue