srvvideo

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

README

Video Streaming

Video Streaming API

GetVideoInfos(ciosctx.RequestCtx, cios.ApiGetVideoStreamsListRequest) ([]cios.Video, *_nethttp.Response, error)
GetVideoInfo(ciosctx.RequestCtx, string) (cios.Video, *_nethttp.Response, error)
UpdateVideoInfo(ciosctx.RequestCtx, string, string, string) (cios.Video, *_nethttp.Response, error)
GetThumbnail(ciosctx.RequestCtx, string) ([]byte, *_nethttp.Response, error)
Play(ciosctx.RequestCtx, string) (cios.Room, *_nethttp.Response, error)
Stop(ciosctx.RequestCtx, string) (*_nethttp.Response, error)
Get a Video information
videoInfo, httpResponse, err := client.Video().GetVideoInfo(ctx, "video_id")
Get Videos information
options := srvvideo.MakeGetVideosOpts()
videosInfo, httpResponse, err := client.Video().GetVideoInfo(ctx, options())
Update a Video information
videosInfo, httpResponse, err := client.Video().UpdateVideoInfo(ctx, "video_id", "name", "description")
Get a Thumbnail
byts, httpResponse, err := client.Video().GetThumbnail(ctx, "video_id")
Play Streaming
room, httpResponse, err := client.Video().Play(ctx, "video_id")
Stop Streaming
httpResponse, err := client.Video().Stop(ctx, "video_id")

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeGetVideosOpts

func MakeGetVideosOpts() cios.ApiGetVideoStreamsListRequest

Types

type CiosVideoStreaming

type CiosVideoStreaming struct {
	ApiClient *cios.APIClient
	Url       string
	Host      string
	// contains filtered or unexported fields
}

func NewCiosVideoStreaming

func NewCiosVideoStreaming(apiClient *cios.APIClient, url string, withHost func(context.Context) context.Context) *CiosVideoStreaming

func (*CiosVideoStreaming) GetThumbnail

func (self *CiosVideoStreaming) GetThumbnail(ctx ciosctx.RequestCtx, videoID string) (img []byte, httpResponse *_http.Response, err error)

MEMO: No OpenAPI

func (*CiosVideoStreaming) GetVideoInfo

func (self *CiosVideoStreaming) GetVideoInfo(ctx ciosctx.RequestCtx, videoID string) (cios.Video, *_http.Response, error)

func (*CiosVideoStreaming) GetVideoInfos

func (*CiosVideoStreaming) Play

func (self *CiosVideoStreaming) Play(ctx ciosctx.RequestCtx, videoID string) (cios.Room, *_http.Response, error)

func (*CiosVideoStreaming) SetRefresh

func (self *CiosVideoStreaming) SetRefresh(refresh func() error)

func (*CiosVideoStreaming) SetToken

func (self *CiosVideoStreaming) SetToken(token string)

func (*CiosVideoStreaming) Stop

func (self *CiosVideoStreaming) Stop(ctx ciosctx.RequestCtx, videoID string) (*_http.Response, error)

func (*CiosVideoStreaming) UpdateVideoInfo

func (self *CiosVideoStreaming) UpdateVideoInfo(ctx ciosctx.RequestCtx, videoID string, name, description string) (cios.Video, *_http.Response, error)

Jump to

Keyboard shortcuts

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