Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.24 KB

README.md

File metadata and controls

49 lines (35 loc) · 1.24 KB

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")