recording

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package recording contains auto-generated files. DO NOT MODIFY

Package recording contains auto-generated files. DO NOT MODIFY

Package recording contains auto-generated files. DO NOT MODIFY

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for managing a specific recording resource See https://www.twilio.com/docs/video/api/rooms-resource for more details

func New

func New(client *client.Client, properties ClientProperties) *Client

New creates a new instance of the recording client

func (Client) Delete

func (c Client) Delete() error

Delete removes a recording resource from the account See https://www.twilio.com/docs/video/api/recordings-resource#delete-instance for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (Client) DeleteWithContext

func (c Client) DeleteWithContext(context context.Context) error

DeleteWithContext removes a recording resource from the account See https://www.twilio.com/docs/video/api/recordings-resource#delete-instance for more details

func (Client) Fetch

func (c Client) Fetch() (*FetchRecordingResponse, error)

Fetch retrieves a recording resource See https://www.twilio.com/docs/video/api/recordings-resource#get-instance for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (Client) FetchWithContext

func (c Client) FetchWithContext(context context.Context) (*FetchRecordingResponse, error)

FetchWithContext retrieves a recording resource See https://www.twilio.com/docs/video/api/recordings-resource#get-instance for more details

type ClientProperties

type ClientProperties struct {
	RoomSid string
	Sid     string
}

ClientProperties are the properties required to manage the recording resources

type FetchRecordingGroupingSidsResponse

type FetchRecordingGroupingSidsResponse struct {
	ParticipantSid string `json:"participant_sid"`
	RoomSid        string `json:"room_sid"`
}

type FetchRecordingResponse

type FetchRecordingResponse struct {
	AccountSid      string                             `json:"account_sid"`
	Codec           string                             `json:"codec"`
	ContainerFormat string                             `json:"container_format"`
	DateCreated     time.Time                          `json:"date_created"`
	Duration        int                                `json:"duration"`
	GroupingSids    FetchRecordingGroupingSidsResponse `json:"grouping_sids"`
	Offset          int                                `json:"offset"`
	RoomSid         string                             `json:"room_sid"`
	Sid             string                             `json:"sid"`
	Size            int                                `json:"size"`
	SourceSid       string                             `json:"source_sid"`
	Status          string                             `json:"status"`
	TrackName       string                             `json:"track_name"`
	Type            string                             `json:"type"`
	URL             string                             `json:"url"`
}

FetchRecordingResponse defines the response fields for the retrieved recording

Jump to

Keyboard shortcuts

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