Skip to content

Commit

Permalink
Add support for scheduledDeletion for uploading videos from a URL or …
Browse files Browse the repository at this point in the history
…via direct upload URLs
  • Loading branch information
aliforever committed Dec 4, 2023
1 parent 5974bdb commit b6c0054
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ type StreamVideo struct {
Creator string `json:"creator,omitempty"`
LiveInput string `json:"liveInput,omitempty"`
Uploaded *time.Time `json:"uploaded,omitempty"`
ScheduledDeletion *time.Time `json:"scheduledDeletion,omitempty"`
Watermark StreamVideoWatermark `json:"watermark,omitempty"`
NFT StreamVideoNFTParameters `json:"nft,omitempty"`
}
Expand Down Expand Up @@ -124,6 +125,7 @@ type StreamUploadFromURLParameters struct {
RequireSignedURLs bool `json:"requireSignedURLs,omitempty"`
Watermark UploadVideoURLWatermark `json:"watermark,omitempty"`
Meta map[string]interface{} `json:"meta,omitempty"`
ScheduledDeletion *time.Time `json:"scheduledDeletion,omitempty"`
}

// StreamCreateVideoParameters are parameters used when creating a video.
Expand All @@ -137,6 +139,7 @@ type StreamCreateVideoParameters struct {
RequireSignedURLs bool `json:"requireSignedURLs,omitempty"`
Watermark UploadVideoURLWatermark `json:"watermark,omitempty"`
Meta map[string]interface{} `json:"meta,omitempty"`
ScheduledDeletion *time.Time `json:"scheduledDeletion,omitempty"`
}

// UploadVideoURLWatermark represents UID of an existing watermark.
Expand All @@ -146,9 +149,10 @@ type UploadVideoURLWatermark struct {

// StreamVideoCreate represents parameters returned after creating a video.
type StreamVideoCreate struct {
UploadURL string `json:"uploadURL,omitempty"`
UID string `json:"uid,omitempty"`
Watermark StreamVideoWatermark `json:"watermark,omitempty"`
UploadURL string `json:"uploadURL,omitempty"`
UID string `json:"uid,omitempty"`
Watermark StreamVideoWatermark `json:"watermark,omitempty"`
ScheduledDeletion *time.Time `json:"scheduledDeletion,omitempty"`
}

// StreamParameters are the basic parameters needed.
Expand Down

0 comments on commit b6c0054

Please sign in to comment.