Com.Netease.VCloud.Core 1.0.11

dotnet add package Com.Netease.VCloud.Core --version 1.0.11
NuGet\Install-Package Com.Netease.VCloud.Core -Version 1.0.11
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.Core" Version="1.0.11" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Com.Netease.VCloud.Core --version 1.0.11
#r "nuget: Com.Netease.VCloud.Core, 1.0.11"
#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.
// Install Com.Netease.VCloud.Core as a Cake Addin
#addin nuget:?package=Com.Netease.VCloud.Core&version=1.0.11

// Install Com.Netease.VCloud.Core as a Cake Tool
#tool nuget:?package=Com.Netease.VCloud.Core&version=1.0.11

网易云信点播 SDK

简介

通过查阅网易云信官方文档:https://doc.yunxin.163.com/, 基于网易云信点播媒体上传官方SDK进行改造,升级为.NET 6 运行时, 详细功能介绍请查看: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) : "文件上传失败!");

// 获取视频信息
try
{
    Console.WriteLine("Querying...");

    var response = await VCloudClient.GetVideo(4714713778);

    Console.WriteLine(response != null ? JsonConvert.SerializeObject(response) : "查询文件失败!");
}
catch (Exception e)
{
    Console.WriteLine(e);
}

更新日志

  • 1.0.11: Update to .NET 8
  • 1.0.10: 错误修正
  • 1.0.9: 错误修正
  • 1.0.8: HttpClientBuilder 配置代理
  • 1.0.7: HttpClient 添加代理服务器配置选项
  • 1.0.6: 增加视频编辑
  • 1.0.5: 增加视频安全-视频加密
  • 1.0.4: 增加回调管理、移动端终端用户管理
  • 1.0.3: 及之前版本: 增加媒资上传、视频处理、媒资管理
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.11 115 1/25/2024
1.0.10 306 11/25/2022
1.0.9 296 11/25/2022
1.0.8 293 11/15/2022
1.0.7 369 8/30/2022
1.0.6 367 8/1/2022
1.0.5 393 7/28/2022
1.0.4 384 7/28/2022
1.0.3 369 7/25/2022
1.0.2 367 7/25/2022