C# 클래스 QCloud.VideoApi.Api.VideoCloud

파일 보기 프로젝트 열기: tencentyun/mvs-dotnet-sdk 1 사용 예제들

공개 메소드들

메소드 설명
CreateFolder ( string bucketName, string remotePath, string bizAttribute = "" ) : string

创建文件夹

DeleteFile ( string bucketName, string remotePath ) : string

删除文件

DeleteFolder ( string bucketName, string remotePath ) : string

删除文件夹

GetFileStat ( string bucketName, string remotePath ) : string

获取文件信息

GetFolderList ( string bucketName, string remotePath, int num, string context, int order, FolderPattern pattern, string prefix = "" ) : string

目录列表,前缀搜索

GetFolderStat ( string bucketName, string remotePath ) : string

获取文件夹信息

SliceUploadFile ( string bucketName, string remotePath, string localPath, string videoCover = "", string bizAttribute = "", string title = "", string desc = "", string magicContext = "", int sliceSize = 512*1024 ) : string

分片上传

SliceUploadFirstStep ( string bucketName, string remotePath, string localPath, string videoCover, string bizAttribute, string title, string desc, string magicContext, int sliceSize ) : string

分片上传第一步

SliceUploadFollowStep ( string bucketName, string remotePath, string localPath, string sessionId, int offset, int sliceSize ) : string

分片上传后续步骤

UpdateFile ( string bucketName, string remotePath, string bizAttribute, string videoCover = null, string title = null, string desc = null ) : string

更新文件信息

UpdateFolder ( string bucketName, string remotePath, string bizAttribute ) : string

更新文件夹信息

UploadFile ( string bucketName, string remotePath, string localPath, string videoCover = "", string bizAttribute = "", string title = "", string desc = "", string magicContext = "" ) : string

单个文件上传

VideoCloud ( int appId, string secretId, string secretKey, int timeOut = 60 ) : System

VideoCloud 构造方法

비공개 메소드들

메소드 설명
EncodeRemotePath ( string remotePath ) : string

远程路径Encode处理

StandardizationRemotePath ( string remotePath ) : string

标准化远程路径

메소드 상세

CreateFolder() 공개 메소드

创建文件夹
public CreateFolder ( string bucketName, string remotePath, string bizAttribute = "" ) : string
bucketName string bucket名称
remotePath string 远程文件夹路径
bizAttribute string 附加信息
리턴 string

DeleteFile() 공개 메소드

删除文件
public DeleteFile ( string bucketName, string remotePath ) : string
bucketName string bucket名称
remotePath string 远程文件路径
리턴 string

DeleteFolder() 공개 메소드

删除文件夹
public DeleteFolder ( string bucketName, string remotePath ) : string
bucketName string bucket名称
remotePath string 远程文件夹路径
리턴 string

GetFileStat() 공개 메소드

获取文件信息
public GetFileStat ( string bucketName, string remotePath ) : string
bucketName string bucket名称
remotePath string 远程文件路径
리턴 string

GetFolderList() 공개 메소드

目录列表,前缀搜索
public GetFolderList ( string bucketName, string remotePath, int num, string context, int order, FolderPattern pattern, string prefix = "" ) : string
bucketName string bucket名称
remotePath string 远程文件夹路径
num int 拉取的总数
context string 透传字段,用于翻页,前端不需理解,需要往前/往后翻页则透传回来
order int 默认正序(=0), 填1为反序
pattern FolderPattern 拉取模式:只是文件,只是文件夹,全部
prefix string 读取文件/文件夹前缀
리턴 string

GetFolderStat() 공개 메소드

获取文件夹信息
public GetFolderStat ( string bucketName, string remotePath ) : string
bucketName string bucket名称
remotePath string 远程文件夹路径
리턴 string

SliceUploadFile() 공개 메소드

分片上传
public SliceUploadFile ( string bucketName, string remotePath, string localPath, string videoCover = "", string bizAttribute = "", string title = "", string desc = "", string magicContext = "", int sliceSize = 512*1024 ) : string
bucketName string bucket名称
remotePath string 远程文件路径
localPath string 本地文件路径
videoCover string 视频封面Url
bizAttribute string 附加信息
title string 标题
desc string 描述
magicContext string 透传字段,业务设置回调url的话,会把这个字段通过回调url传给业务
sliceSize int 切片大小(字节)
리턴 string

SliceUploadFirstStep() 공개 메소드

分片上传第一步
public SliceUploadFirstStep ( string bucketName, string remotePath, string localPath, string videoCover, string bizAttribute, string title, string desc, string magicContext, int sliceSize ) : string
bucketName string bucket名称
remotePath string 远程文件路径
localPath string 本地文件路径
videoCover string 视频封面Url
bizAttribute string 附加信息
title string 标题
desc string 描述
magicContext string 透传字段,业务设置回调url的话,会把这个字段通过回调url传给业务
sliceSize int 切片大小(字节)
리턴 string

SliceUploadFollowStep() 공개 메소드

分片上传后续步骤
public SliceUploadFollowStep ( string bucketName, string remotePath, string localPath, string sessionId, int offset, int sliceSize ) : string
bucketName string bucket名称
remotePath string 远程文件路径
localPath string 本地文件路径
sessionId string 分片上传会话ID
offset int 文件分片偏移量
sliceSize int 切片大小(字节)
리턴 string

UpdateFile() 공개 메소드

更新文件信息
public UpdateFile ( string bucketName, string remotePath, string bizAttribute, string videoCover = null, string title = null, string desc = null ) : string
bucketName string bucket名称
remotePath string 远程文件路径
bizAttribute string 更新信息
videoCover string
title string 标题
desc string 描述
리턴 string

UpdateFolder() 공개 메소드

更新文件夹信息
public UpdateFolder ( string bucketName, string remotePath, string bizAttribute ) : string
bucketName string bucket名称
remotePath string 远程文件夹路径
bizAttribute string 更新信息
리턴 string

UploadFile() 공개 메소드

单个文件上传
public UploadFile ( string bucketName, string remotePath, string localPath, string videoCover = "", string bizAttribute = "", string title = "", string desc = "", string magicContext = "" ) : string
bucketName string bucket名称
remotePath string 远程文件路径
localPath string 本地文件路径
videoCover string
bizAttribute string 附加信息
title string 标题
desc string 描述
magicContext string 透传字段,业务设置回调url的话,会把这个字段通过回调url传给业务
리턴 string

VideoCloud() 공개 메소드

VideoCloud 构造方法
public VideoCloud ( int appId, string secretId, string secretKey, int timeOut = 60 ) : System
appId int 授权appid
secretId string 授权secret id
secretKey string 授权secret key
timeOut int 网络超时,默认60秒
리턴 System