github.com/optim-corp/cios-golang-sdk@v0.5.1/sdk/service/video/README.md (about) 1 # Video Streaming 2 3 ## Video Streaming API 4 5 ``` 6 GetVideoInfos(ciosctx.RequestCtx, cios.ApiGetVideoStreamsListRequest) ([]cios.Video, *_nethttp.Response, error) 7 GetVideoInfo(ciosctx.RequestCtx, string) (cios.Video, *_nethttp.Response, error) 8 UpdateVideoInfo(ciosctx.RequestCtx, string, string, string) (cios.Video, *_nethttp.Response, error) 9 GetThumbnail(ciosctx.RequestCtx, string) ([]byte, *_nethttp.Response, error) 10 Play(ciosctx.RequestCtx, string) (cios.Room, *_nethttp.Response, error) 11 Stop(ciosctx.RequestCtx, string) (*_nethttp.Response, error) 12 ``` 13 14 #### Get a Video information 15 16 ```go 17 videoInfo, httpResponse, err := client.Video().GetVideoInfo(ctx, "video_id") 18 ``` 19 20 #### Get Videos information 21 22 ```go 23 options := srvvideo.MakeGetVideosOpts() 24 videosInfo, httpResponse, err := client.Video().GetVideoInfo(ctx, options()) 25 ``` 26 27 #### Update a Video information 28 29 ```go 30 videosInfo, httpResponse, err := client.Video().UpdateVideoInfo(ctx, "video_id", "name", "description") 31 ``` 32 33 #### Get a Thumbnail 34 35 ```go 36 byts, httpResponse, err := client.Video().GetThumbnail(ctx, "video_id") 37 ``` 38 39 #### Play Streaming 40 41 ```go 42 room, httpResponse, err := client.Video().Play(ctx, "video_id") 43 ``` 44 45 #### Stop Streaming 46 47 ```go 48 httpResponse, err := client.Video().Stop(ctx, "video_id") 49 ```