vod

package module
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2022 License: MIT Imports: 13 Imported by: 1

README

logo

简介

VOD Go SDK 是基于云点播上传功能进行包装的 Go 版本 SDK,SDK 中提供丰富的上传能力,满足大部分开发者的上传需求。除此之外,SDK 包装了云点播的 API,开发者在使用上非常方便,不需要关注太多细节即可完成上传功能的对接。

功能特性

  • 普通文件上传
  • HLS文件上传
  • 携带封面上传
  • 子应用上传
  • 上传携带任务流
  • 指定上传园区
  • 支持使用临时密钥上传
  • 设置代理上传

文档

安装

go get -u github.com/tencentcloud/tencentcloud-sdk-go
go get -u github.com/tencentyun/cos-go-sdk-v5
go get -u github.com/tencentyun/vod-go-sdk

测试

SDK 提供了丰富的测试用例,开发者可以参考示例的调用方式,具体参考:测试用例。 开发者可以通过运行命令查看测试用例的执行情况:

go test

变更记录

每个版本的变更细节都记录在日志中,具体请看:变更日志

贡献者

感谢以下的开发者对项目的大力支持,欢迎更多的开发者参与进来!

许可证

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExist

func FileExist(target string) bool

func GetFileName

func GetFileName(target string) string

func GetFileType

func GetFileType(target string) string

func IsEmptyStr

func IsEmptyStr(target *string) bool

func IsManifestMediaType

func IsManifestMediaType(mediaType string) bool

func NotEmptyStr

func NotEmptyStr(target *string) bool

Types

type VodClientError

type VodClientError struct {
	Message string
}

func (*VodClientError) Error

func (e *VodClientError) Error() string

func (*VodClientError) GetMessage

func (e *VodClientError) GetMessage() string

type VodUploadClient

type VodUploadClient struct {
	SecretId  string
	SecretKey string
	Token     string
	Timeout   int64
	Transport http.RoundTripper
}

func (*VodUploadClient) Upload

func (p *VodUploadClient) Upload(region string, request *VodUploadRequest) (*VodUploadResponse, error)

func (*VodUploadClient) UploadFromUrl added in v1.0.2

func (p *VodUploadClient) UploadFromUrl(region string, request *VodUploadRequest) (*VodUploadResponse, error)

type VodUploadRequest

type VodUploadRequest struct {
	v20180717.ApplyUploadRequest
	MediaFilePath          *string
	CoverFilePath          *string
	ConcurrentUploadNumber *uint64
	MediaUrl               *string
	CoverUrl               *string
}

func NewVodUploadRequest

func NewVodUploadRequest() (request *VodUploadRequest)

type VodUploadResponse

type VodUploadResponse struct {
	v20180717.CommitUploadResponse
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL