Stream
List videos
client.Stream.List(ctx, params) (*SinglePage[Video], error)
GET/accounts/{account_id}/stream
Retrieve video details
client.Stream.Get(ctx, identifier, query) (*Video, error)
GET/accounts/{account_id}/stream/{identifier}
Initiate video uploads using TUS
client.Stream.New(ctx, params) error
POST/accounts/{account_id}/stream
Edit video details
client.Stream.Edit(ctx, identifier, params) (*Video, error)
POST/accounts/{account_id}/stream/{identifier}
Delete video
client.Stream.Delete(ctx, identifier, body) error
DELETE/accounts/{account_id}/stream/{identifier}
StreamAudio Tracks
List additional audio tracks on a video
client.Stream.AudioTracks.Get(ctx, identifier, query) (*SinglePage[Audio], error)
GET/accounts/{account_id}/stream/{identifier}/audio
Edit additional audio tracks on a video
client.Stream.AudioTracks.Edit(ctx, identifier, audioIdentifier, params) (*Audio, error)
PATCH/accounts/{account_id}/stream/{identifier}/audio/{audio_identifier}
Delete additional audio tracks on a video
client.Stream.AudioTracks.Delete(ctx, identifier, audioIdentifier, body) (*string, error)
DELETE/accounts/{account_id}/stream/{identifier}/audio/{audio_identifier}
Add audio tracks to a video
client.Stream.AudioTracks.Copy(ctx, identifier, params) (*Audio, error)
POST/accounts/{account_id}/stream/{identifier}/audio/copy
StreamVideos
Storage use
client.Stream.Videos.StorageUsage(ctx, params) (*VideoStorageUsageResponse, error)
GET/accounts/{account_id}/stream/storage-usage
StreamClip
Clip videos given a start and end time
client.Stream.Clip.New(ctx, params) (*Clip, error)
POST/accounts/{account_id}/stream/clip
StreamCopy
Upload videos from a URL
client.Stream.Copy.New(ctx, params) (*Video, error)
POST/accounts/{account_id}/stream/copy
StreamDirect Upload
Upload videos via direct upload URLs
client.Stream.DirectUpload.New(ctx, params) (*DirectUploadNewResponse, error)
POST/accounts/{account_id}/stream/direct_upload
StreamKeys
List signing keys
client.Stream.Keys.Get(ctx, query) (*SinglePage[KeyGetResponse], error)
GET/accounts/{account_id}/stream/keys
Create signing keys
client.Stream.Keys.New(ctx, params) (*Keys, error)
POST/accounts/{account_id}/stream/keys
Delete signing keys
client.Stream.Keys.Delete(ctx, identifier, body) (*string, error)
DELETE/accounts/{account_id}/stream/keys/{identifier}
StreamLive Inputs
List live inputs
client.Stream.LiveInputs.List(ctx, params) (*LiveInputListResponse, error)
GET/accounts/{account_id}/stream/live_inputs
Retrieve a live input
client.Stream.LiveInputs.Get(ctx, liveInputIdentifier, query) (*LiveInput, error)
GET/accounts/{account_id}/stream/live_inputs/{live_input_identifier}
Create a live input
client.Stream.LiveInputs.New(ctx, params) (*LiveInput, error)
POST/accounts/{account_id}/stream/live_inputs
Update a live input
client.Stream.LiveInputs.Update(ctx, liveInputIdentifier, params) (*LiveInput, error)
PUT/accounts/{account_id}/stream/live_inputs/{live_input_identifier}
Delete a live input
client.Stream.LiveInputs.Delete(ctx, liveInputIdentifier, body) error
DELETE/accounts/{account_id}/stream/live_inputs/{live_input_identifier}
StreamLive InputsOutputs
List all outputs associated with a specified live input
client.Stream.LiveInputs.Outputs.List(ctx, liveInputIdentifier, query) (*SinglePage[Output], error)
GET/accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs
Create a new output, connected to a live input
client.Stream.LiveInputs.Outputs.New(ctx, liveInputIdentifier, params) (*Output, error)
POST/accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs
Update an output
client.Stream.LiveInputs.Outputs.Update(ctx, liveInputIdentifier, outputIdentifier, params) (*Output, error)
PUT/accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs/{output_identifier}
Delete an output
client.Stream.LiveInputs.Outputs.Delete(ctx, liveInputIdentifier, outputIdentifier, body) error
DELETE/accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs/{output_identifier}
StreamWatermarks
List watermark profiles
client.Stream.Watermarks.List(ctx, query) (*SinglePage[Watermark], error)
GET/accounts/{account_id}/stream/watermarks
Watermark profile details
client.Stream.Watermarks.Get(ctx, identifier, query) (*Watermark, error)
GET/accounts/{account_id}/stream/watermarks/{identifier}
Create watermark profiles via basic upload
client.Stream.Watermarks.New(ctx, params) (*Watermark, error)
POST/accounts/{account_id}/stream/watermarks
Delete watermark profiles
client.Stream.Watermarks.Delete(ctx, identifier, body) (*string, error)
DELETE/accounts/{account_id}/stream/watermarks/{identifier}
StreamWebhooks
View webhooks
client.Stream.Webhooks.Get(ctx, query) (*WebhookGetResponse, error)
GET/accounts/{account_id}/stream/webhook
Create webhooks
client.Stream.Webhooks.Update(ctx, params) (*WebhookUpdateResponse, error)
PUT/accounts/{account_id}/stream/webhook
Delete webhooks
client.Stream.Webhooks.Delete(ctx, body) (*string, error)
DELETE/accounts/{account_id}/stream/webhook
StreamCaptions
List captions or subtitles
client.Stream.Captions.Get(ctx, identifier, query) (*SinglePage[Caption], error)
GET/accounts/{account_id}/stream/{identifier}/captions
StreamCaptionsLanguage
List captions or subtitles for a provided language
client.Stream.Captions.Language.Get(ctx, identifier, language, query) (*Caption, error)
GET/accounts/{account_id}/stream/{identifier}/captions/{language}
Generate captions or subtitles for a provided language via AI
client.Stream.Captions.Language.New(ctx, identifier, language, body) (*Caption, error)
POST/accounts/{account_id}/stream/{identifier}/captions/{language}/generate
Upload captions or subtitles
client.Stream.Captions.Language.Update(ctx, identifier, language, params) (*Caption, error)
PUT/accounts/{account_id}/stream/{identifier}/captions/{language}
Delete captions or subtitles
client.Stream.Captions.Language.Delete(ctx, identifier, language, body) (*string, error)
DELETE/accounts/{account_id}/stream/{identifier}/captions/{language}
StreamCaptionsLanguageVtt
Return WebVTT captions for a provided language
client.Stream.Captions.Language.Vtt.Get(ctx, identifier, language, query) (*string, error)
GET/accounts/{account_id}/stream/{identifier}/captions/{language}/vtt
StreamDownloads
List downloads
client.Stream.Downloads.Get(ctx, identifier, query) (*DownloadGetResponse, error)
GET/accounts/{account_id}/stream/{identifier}/downloads
Create downloads
client.Stream.Downloads.New(ctx, identifier, params) (*DownloadNewResponse, error)
POST/accounts/{account_id}/stream/{identifier}/downloads
Delete downloads
client.Stream.Downloads.Delete(ctx, identifier, body) (*string, error)
DELETE/accounts/{account_id}/stream/{identifier}/downloads
StreamEmbed
Retrieve embed Code HTML
client.Stream.Embed.Get(ctx, identifier, query) (*string, error)
GET/accounts/{account_id}/stream/{identifier}/embed
StreamToken
Create signed URL tokens for videos
client.Stream.Token.New(ctx, identifier, params) (*TokenNewResponse, error)
POST/accounts/{account_id}/stream/{identifier}/token