/// <summary> /// 上传视频分片 /// </summary> /// <param name="bucket">存储上传文件的桶名 </param> /// <param name="uploadHost">上传加速节点地址</param> /// <param name="objectName">存储上传文件的对象名</param> /// <param name="offset">当前分片在整个对象中的起始偏移量</param> /// <param name="context"> 上传上下文</param> /// <param name="fileStream">上传文件的输出流</param> /// <param name="remainderSize">上传文件剩余大小</param> /// <param name="xNosToken">上传的token信息</param> /// <returns>分片上传视频返回结果的封装类</returns> public UploadVideoFragmentParam uploadVideoFragment(string bucket, string uploadHost, string objectName, long offset, string context, FileStream fileStream, long remainderSize, string xNosToken) { UploadUtil util = new UploadUtil(bucket, uploadHost, objectName, offset, context, fileStream, remainderSize, xNosToken); return(util.uploadVideoFragment()); }
/// <summary> /// 上传视频分片 /// </summary> /// <param name="initUploadVideoParam">视频上传初始化返回结果的封装类</param> /// <param name="getUploadHostParam">获取上传加速节点地址返回结果的封装类</param> /// <param name="offset">当前分片在整个对象中的起始偏移量</param> /// <param name="context">上传上下文</param> /// <param name="fileStream">上传文件的输出流</param> /// <param name="remainderSize">上传文件剩余大小</param> /// <returns>分片上传视频返回结果的封装类</returns> public UploadVideoFragmentParam uploadVideoFragment(InitUploadVideoParam initUploadVideoParam, GetUploadHostParam getUploadHostParam, long offset, string context, Stream fileStream, long remainderSize) { UploadUtil util = new UploadUtil(initUploadVideoParam, getUploadHostParam, offset, context, fileStream, remainderSize); return(util.uploadVideoFragment()); }