Com.Netease.VCloud.Standard
1.0.3
.NET Standard 2.1
This package targets .NET Standard 2.1. The package is compatible with this framework or higher.
.NET Framework 4.5.2
This package targets .NET Framework 4.5.2. The package is compatible with this framework or higher.
dotnet add package Com.Netease.VCloud.Standard --version 1.0.3
NuGet\Install-Package Com.Netease.VCloud.Standard -Version 1.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Com.Netease.VCloud.Standard" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Com.Netease.VCloud.Standard" Version="1.0.3" />
<PackageReference Include="Com.Netease.VCloud.Standard" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Com.Netease.VCloud.Standard --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Com.Netease.VCloud.Standard, 1.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Com.Netease.VCloud.Standard@1.0.3
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Com.Netease.VCloud.Standard&version=1.0.3
#tool nuget:?package=Com.Netease.VCloud.Standard&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
网易云信点播.NetStandard 版 SDK
简介
通过查阅网易云信官方文档:https://doc.yunxin.163.com/, 基于网易云信点播媒体上传官方SDK进行改造,升级为.NetStandard 运行时,同时支持.Net Framework 4.5.2 及更新版本 详细功能介绍请查看:https://doc.yunxin.163.com/docs/jY3NDM4Nzc/jI0Njk0NzU, 源代码仓库地址:https://gitee.com/tanwucheng/Com.Netease.VCloud.Core.git
使用示例
var AppKey = "???";
var AppSecret = "???";
var FilePath = "C:\\Users\\XXX\\Desktop\\hello.mp4";
// 初始化
var credentials = new Credentials(AppKey, AppSecret);
VCloudClient.Initialize(credentials);
IDictionary<string, object> initParamMap = new Dictionary<string, object>
{
{ "originFileName", FileUtil.GetFileName(FilePath) ?? string.Empty }
};
// 上传本地文件
Console.WriteLine("Uploading...");
var param1 = await VCloudClient.UploadVideo(FilePath, initParamMap);
Console.WriteLine(param1 != null ? JsonConvert.SerializeObject(param1) : "文件上传失败!");
// 上传数据流
Console.WriteLine("Uploading...");
var fileStream = File.Open(FilePath, FileMode.Open);
var bytes = new byte[fileStream.Length];
_ = fileStream.Read(bytes, 0, bytes.Length);
fileStream.Close();
Stream stream = new MemoryStream(bytes);
var param2 = await VCloudClient.UploadVideo(stream, bytes.Length, initParamMap);
Console.WriteLine(param2 != null ? JsonConvert.SerializeObject(param2) : "文件上传失败!");
更新日志
- 1.0.3: 增加查询和删除视频功能
- 1.0.2: 只移植了官方 SDK 的上传文件功能
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| .NET Framework | net452 is compatible. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.5.2
- Newtonsoft.Json (>= 13.0.1)
- System.Net.Http (>= 4.3.4)
-
.NETStandard 2.1
- Newtonsoft.Json (>= 13.0.1)
- System.Net.Http (>= 4.3.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.