mediaspace

package
v0.2.38 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MediaSpace

type MediaSpace struct {
	Config *shopeeConfig.Config
}

MediaSpace

func (*MediaSpace) CancelVideoUpload

func (m *MediaSpace) CancelVideoUpload(videoUploadID string) mediaspaceEntity.CancelVideoUploadResult

CancelVideoUpload @Title Complete the video upload and starts the transcoding process when all parts are uploaded successfully. @Description https://open.shopee.com/documents?module=91&type=1&id=533&version=2

func (*MediaSpace) CompleteVideoUpload

func (m *MediaSpace) CompleteVideoUpload(videoUploadID string, partSeqList []int, reportData mediaspaceEntity.ReportDataEntity) mediaspaceEntity.CompleteVideoUploadResult

CompleteVideoUpload @Title Complete the video upload and starts the transcoding process when all parts are uploaded successfully. @Description https://open.shopee.com/documents?module=91&type=1&id=533&version=2

func (*MediaSpace) GetVideoUploadResult

func (m *MediaSpace) GetVideoUploadResult(videoUploadID string) mediaspaceEntity.GetVideoUploadResult

GetVideoUploadResult @Title Query the upload status and result of video upload. @Description https://open.shopee.com/documents?module=91&type=1&id=534&version=2

func (*MediaSpace) InitVideoUpload

func (m *MediaSpace) InitVideoUpload(fileMd5 string, fileSize int) mediaspaceEntity.InitVideoUploadResult

InitVideoUpload @Title Initiate video upload session. Video duration should be between 10s and 60s (inclusive). @Description https://open.shopee.com/documents?module=91&type=1&id=531&version=2

func (*MediaSpace) UploadImage

func (m *MediaSpace) UploadImage(image string) mediaspaceEntity.UploadImageResult

UploadImage @Title Complete the video upload and starts the transcoding process when all parts are uploaded successfully. @Description https://open.shopee.com/documents?module=91&type=1&id=533&version=2

func (*MediaSpace) UploadVideoPart

func (m *MediaSpace) UploadVideoPart(videoUploadID string, partSeq int, contentMd5 string, partContentPath string) mediaspaceEntity.UploadVideoPartResult

UploadVideoPart @Title Upload video file by part using the upload_id in initiate_video_upload. The request Content-Type of this API should be of multipart/form-data @Description https://open.shopee.com/documents?module=91&type=1&id=532&version=2

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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