C# Class QCloud.VideoApi.Api.VideoCloud

显示文件 Open project: tencentyun/mvs-dotnet-sdk Class Usage Examples

Public Methods

Method Description
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 构造方法

Private Methods

Method Description
EncodeRemotePath ( string remotePath ) : string

远程路径Encode处理

StandardizationRemotePath ( string remotePath ) : string

标准化远程路径

Method Details

CreateFolder() public method

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

DeleteFile() public method

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

DeleteFolder() public method

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

GetFileStat() public method

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

GetFolderList() public method

目录列表,前缀搜索
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 读取文件/文件夹前缀
return string

GetFolderStat() public method

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

SliceUploadFile() public method

分片上传
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 切片大小(字节)
return string

SliceUploadFirstStep() public method

分片上传第一步
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 切片大小(字节)
return string

SliceUploadFollowStep() public method

分片上传后续步骤
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 切片大小(字节)
return string

UpdateFile() public method

更新文件信息
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 描述
return string

UpdateFolder() public method

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

UploadFile() public method

单个文件上传
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传给业务
return string

VideoCloud() public method

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秒
return System