Documentation
¶
Index ¶
- Constants
- Variables
- type CreateMediaPlaybackIDAccessPolicy
- type CreateMediaPlaybackIDAccessRestrictions
- type CreateMediaPlaybackIDDomains
- type CreateMediaPlaybackIDDomainsDefaultPolicy
- type CreateMediaPlaybackIDRequest
- type CreateMediaPlaybackIDRequestBody
- type CreateMediaPlaybackIDResponse
- type CreateMediaPlaybackIDResponseBody
- type CreateMediaPlaybackIDUserAgents
- type CreateMediaPlaybackIDUserAgentsDefaultPolicy
- type CreateMediaResponse
- type CreateMediaResponseBody
- type CreateNewStreamResponse
- type CreatePlaybackIDOfStreamRequest
- type CreatePlaybackIDOfStreamResponse
- type CreateSimulcastOfStreamRequest
- type CreateSimulcastOfStreamResponse
- type Data
- type DeleteLiveStreamRequest
- type DeleteLiveStreamResponse
- type DeleteMediaPlaybackIDRequest
- type DeleteMediaPlaybackIDResponse
- type DeleteMediaPlaybackIDResponseBody
- type DeleteMediaRequest
- type DeleteMediaResponse
- type DeleteMediaResponseBody
- type DeletePlaybackIDOfStreamRequest
- type DeletePlaybackIDOfStreamResponse
- type DeleteSimulcastOfStreamRequest
- type DeleteSimulcastOfStreamResponse
- type DirectUploadVideoMediaAccessPolicy
- type DirectUploadVideoMediaAccessRestrictions
- type DirectUploadVideoMediaDomains
- type DirectUploadVideoMediaDomainsDefaultPolicy
- type DirectUploadVideoMediaMetadata
- type DirectUploadVideoMediaRequest
- type DirectUploadVideoMediaResponse
- type DirectUploadVideoMediaResponseBody
- type DirectUploadVideoMediaUserAgents
- type DirectUploadVideoMediaUserAgentsDefaultPolicy
- type GetAllStreamsOrderBy
- type GetAllStreamsRequest
- type GetAllStreamsResponse
- type GetLiveStreamByIDRequest
- type GetLiveStreamByIDResponse
- type GetLiveStreamPlaybackIDRequest
- type GetLiveStreamPlaybackIDResponse
- type GetMediaRequest
- type GetMediaResponse
- type GetMediaResponseBody
- type GetSpecificSimulcastOfStreamRequest
- type GetSpecificSimulcastOfStreamResponse
- type Input
- type InputType
- type LanguageCode
- type ListMediaOrderBy
- type ListMediaRequest
- type ListMediaResponse
- type ListMediaResponseBody
- type MaxResolution
- type Moderation
- type Mp4Support
- type Option
- func WithOperationTimeout(timeout time.Duration) Option
- func WithRetries(config retry.Config) Option
- func WithServerURL(serverURL string) Option
- func WithSetHeaders(hdrs map[string]string) Option
- func WithTemplatedServerURL(serverURL string, params map[string]string) Option
- func WithURLOverride(urlOverride string) Option
- type Options
- type PushMediaSettings
- func (o *PushMediaSettings) GetAccessPolicy() DirectUploadVideoMediaAccessPolicy
- func (o *PushMediaSettings) GetAccessRestrictions() *DirectUploadVideoMediaAccessRestrictions
- func (o *PushMediaSettings) GetChapters() *bool
- func (o *PushMediaSettings) GetEndTime() *float64
- func (o *PushMediaSettings) GetInputs() []Input
- func (o *PushMediaSettings) GetMaxResolution() *MaxResolution
- func (o *PushMediaSettings) GetMetadata() *DirectUploadVideoMediaMetadata
- func (o *PushMediaSettings) GetModeration() *Moderation
- func (o *PushMediaSettings) GetMp4Support() *Mp4Support
- func (o *PushMediaSettings) GetNamedEntities() *bool
- func (o *PushMediaSettings) GetOptimizeAudio() *bool
- func (o *PushMediaSettings) GetSourceAccess() *bool
- func (o *PushMediaSettings) GetStartTime() *float64
- func (o *PushMediaSettings) GetSubtitles() *Subtitles
- func (o *PushMediaSettings) GetSummary() *Summary
- func (p PushMediaSettings) MarshalJSON() ([]byte, error)
- func (p *PushMediaSettings) UnmarshalJSON(data []byte) error
- type RetrieveMediaInputInfoRequest
- type RetrieveMediaInputInfoResponse
- type RetrieveMediaInputInfoResponseBody
- type Subtitles
- type SubtitlesMetadata
- type Summary
- type Type
- type UpdateLiveStreamRequest
- type UpdateLiveStreamResponse
- type UpdateSpecificSimulcastOfStreamRequest
- type UpdateSpecificSimulcastOfStreamResponse
- type UpdatedMediaMetadata
- type UpdatedMediaRequest
- type UpdatedMediaRequestBody
- type UpdatedMediaResponse
- type UpdatedMediaResponseBody
Constants ¶
const ( SupportedOptionRetries = "retries" SupportedOptionTimeout = "timeout" SupportedOptionAcceptHeaderOverride = "acceptHeaderOverride" SupportedOptionURLOverride = "urlOverride" )
Variables ¶
var ErrUnsupportedOption = errors.New("unsupported option")
Functions ¶
This section is empty.
Types ¶
type CreateMediaPlaybackIDAccessPolicy ¶
type CreateMediaPlaybackIDAccessPolicy string
CreateMediaPlaybackIDAccessPolicy - Determines if access to the streamed content is kept private or available to all.
const ( CreateMediaPlaybackIDAccessPolicyPublic CreateMediaPlaybackIDAccessPolicy = "public" CreateMediaPlaybackIDAccessPolicyPrivate CreateMediaPlaybackIDAccessPolicy = "private" CreateMediaPlaybackIDAccessPolicyDrm CreateMediaPlaybackIDAccessPolicy = "drm" )
func (CreateMediaPlaybackIDAccessPolicy) ToPointer ¶
func (e CreateMediaPlaybackIDAccessPolicy) ToPointer() *CreateMediaPlaybackIDAccessPolicy
func (*CreateMediaPlaybackIDAccessPolicy) UnmarshalJSON ¶
func (e *CreateMediaPlaybackIDAccessPolicy) UnmarshalJSON(data []byte) error
type CreateMediaPlaybackIDAccessRestrictions ¶
type CreateMediaPlaybackIDAccessRestrictions struct {
Domains *CreateMediaPlaybackIDDomains `json:"domains,omitempty"`
UserAgents *CreateMediaPlaybackIDUserAgents `json:"userAgents,omitempty"`
}
func (*CreateMediaPlaybackIDAccessRestrictions) GetDomains ¶
func (o *CreateMediaPlaybackIDAccessRestrictions) GetDomains() *CreateMediaPlaybackIDDomains
func (*CreateMediaPlaybackIDAccessRestrictions) GetUserAgents ¶
func (o *CreateMediaPlaybackIDAccessRestrictions) GetUserAgents() *CreateMediaPlaybackIDUserAgents
type CreateMediaPlaybackIDDomains ¶
type CreateMediaPlaybackIDDomains struct {
// Specifies the default access policy for domains.
// If set to `allow`, all domains are allowed access unless otherwise specified in the `deny` list.
// If set to `deny`, all domains are denied access unless otherwise specified in the `allow` list.
//
DefaultPolicy *CreateMediaPlaybackIDDomainsDefaultPolicy `json:"defaultPolicy,omitempty"`
// A list of domain names or patterns that are explicitly allowed access.
// This list is only effective when the `defaultPolicy` is set to `deny`.
//
Allow []string `json:"allow,omitempty"`
// A list of domain names or patterns that are explicitly denied access.
// This list is only effective when the `defaultPolicy` is set to `allow`.
//
Deny []string `json:"deny,omitempty"`
}
func (*CreateMediaPlaybackIDDomains) GetAllow ¶
func (o *CreateMediaPlaybackIDDomains) GetAllow() []string
func (*CreateMediaPlaybackIDDomains) GetDefaultPolicy ¶
func (o *CreateMediaPlaybackIDDomains) GetDefaultPolicy() *CreateMediaPlaybackIDDomainsDefaultPolicy
func (*CreateMediaPlaybackIDDomains) GetDeny ¶
func (o *CreateMediaPlaybackIDDomains) GetDeny() []string
type CreateMediaPlaybackIDDomainsDefaultPolicy ¶
type CreateMediaPlaybackIDDomainsDefaultPolicy string
CreateMediaPlaybackIDDomainsDefaultPolicy - Specifies the default access policy for domains. If set to `allow`, all domains are allowed access unless otherwise specified in the `deny` list. If set to `deny`, all domains are denied access unless otherwise specified in the `allow` list.
const ( CreateMediaPlaybackIDDomainsDefaultPolicyAllow CreateMediaPlaybackIDDomainsDefaultPolicy = "allow" CreateMediaPlaybackIDDomainsDefaultPolicyDeny CreateMediaPlaybackIDDomainsDefaultPolicy = "deny" )
func (CreateMediaPlaybackIDDomainsDefaultPolicy) ToPointer ¶
func (e CreateMediaPlaybackIDDomainsDefaultPolicy) ToPointer() *CreateMediaPlaybackIDDomainsDefaultPolicy
func (*CreateMediaPlaybackIDDomainsDefaultPolicy) UnmarshalJSON ¶
func (e *CreateMediaPlaybackIDDomainsDefaultPolicy) UnmarshalJSON(data []byte) error
type CreateMediaPlaybackIDRequest ¶
type CreateMediaPlaybackIDRequest struct {
// When creating the media, FastPix assigns a universally unique identifier with a maximum length of 255 characters.
MediaID string `pathParam:"style=simple,explode=false,name=mediaId"`
// Request body for creating playback id for an media
RequestBody *CreateMediaPlaybackIDRequestBody `request:"mediaType=application/json"`
}
func (*CreateMediaPlaybackIDRequest) GetMediaID ¶
func (o *CreateMediaPlaybackIDRequest) GetMediaID() string
func (*CreateMediaPlaybackIDRequest) GetRequestBody ¶
func (o *CreateMediaPlaybackIDRequest) GetRequestBody() *CreateMediaPlaybackIDRequestBody
type CreateMediaPlaybackIDRequestBody ¶
type CreateMediaPlaybackIDRequestBody struct {
// Determines if access to the streamed content is kept private or available to all.
AccessPolicy CreateMediaPlaybackIDAccessPolicy `json:"accessPolicy"`
AccessRestrictions *CreateMediaPlaybackIDAccessRestrictions `json:"accessRestrictions,omitempty"`
}
CreateMediaPlaybackIDRequestBody - Request body for creating playback id for an media
func (*CreateMediaPlaybackIDRequestBody) GetAccessPolicy ¶
func (o *CreateMediaPlaybackIDRequestBody) GetAccessPolicy() CreateMediaPlaybackIDAccessPolicy
func (*CreateMediaPlaybackIDRequestBody) GetAccessRestrictions ¶
func (o *CreateMediaPlaybackIDRequestBody) GetAccessRestrictions() *CreateMediaPlaybackIDAccessRestrictions
type CreateMediaPlaybackIDResponse ¶
type CreateMediaPlaybackIDResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Playback id for an media
Object *CreateMediaPlaybackIDResponseBody
}
func (*CreateMediaPlaybackIDResponse) GetHTTPMeta ¶
func (o *CreateMediaPlaybackIDResponse) GetHTTPMeta() components.HTTPMetadata
func (*CreateMediaPlaybackIDResponse) GetObject ¶
func (o *CreateMediaPlaybackIDResponse) GetObject() *CreateMediaPlaybackIDResponseBody
type CreateMediaPlaybackIDResponseBody ¶
type CreateMediaPlaybackIDResponseBody struct {
// Demonstrates whether the request is successful or not.
Success *bool `json:"success,omitempty"`
// Displays the result of the request.
Data *Data `json:"data,omitempty"`
}
CreateMediaPlaybackIDResponseBody - Playback id for an media
func (*CreateMediaPlaybackIDResponseBody) GetData ¶
func (o *CreateMediaPlaybackIDResponseBody) GetData() *Data
func (*CreateMediaPlaybackIDResponseBody) GetSuccess ¶
func (o *CreateMediaPlaybackIDResponseBody) GetSuccess() *bool
type CreateMediaPlaybackIDUserAgents ¶
type CreateMediaPlaybackIDUserAgents struct {
// Specifies the default access policy for user agents (browsers, bots, etc.).
// If set to `allow`, all user agents are allowed access unless otherwise specified in the `deny` list.
// If set to `deny`, all user agents are denied access unless otherwise specified in the `allow` list.
//
DefaultPolicy *CreateMediaPlaybackIDUserAgentsDefaultPolicy `json:"defaultPolicy,omitempty"`
// A list of user agents (identified by string names or patterns) that are explicitly allowed access.
// This list is only effective when the `defaultPolicy` is set to `deny`.
//
Allow []string `json:"allow,omitempty"`
// A list of user agents (identified by string names or patterns) that are explicitly denied access.
// This list is only effective when the `defaultPolicy` is set to `allow`.
//
Deny []string `json:"deny,omitempty"`
}
func (*CreateMediaPlaybackIDUserAgents) GetAllow ¶
func (o *CreateMediaPlaybackIDUserAgents) GetAllow() []string
func (*CreateMediaPlaybackIDUserAgents) GetDefaultPolicy ¶
func (o *CreateMediaPlaybackIDUserAgents) GetDefaultPolicy() *CreateMediaPlaybackIDUserAgentsDefaultPolicy
func (*CreateMediaPlaybackIDUserAgents) GetDeny ¶
func (o *CreateMediaPlaybackIDUserAgents) GetDeny() []string
type CreateMediaPlaybackIDUserAgentsDefaultPolicy ¶
type CreateMediaPlaybackIDUserAgentsDefaultPolicy string
CreateMediaPlaybackIDUserAgentsDefaultPolicy - Specifies the default access policy for user agents (browsers, bots, etc.). If set to `allow`, all user agents are allowed access unless otherwise specified in the `deny` list. If set to `deny`, all user agents are denied access unless otherwise specified in the `allow` list.
const ( CreateMediaPlaybackIDUserAgentsDefaultPolicyAllow CreateMediaPlaybackIDUserAgentsDefaultPolicy = "allow" CreateMediaPlaybackIDUserAgentsDefaultPolicyDeny CreateMediaPlaybackIDUserAgentsDefaultPolicy = "deny" )
func (CreateMediaPlaybackIDUserAgentsDefaultPolicy) ToPointer ¶
func (e CreateMediaPlaybackIDUserAgentsDefaultPolicy) ToPointer() *CreateMediaPlaybackIDUserAgentsDefaultPolicy
func (*CreateMediaPlaybackIDUserAgentsDefaultPolicy) UnmarshalJSON ¶
func (e *CreateMediaPlaybackIDUserAgentsDefaultPolicy) UnmarshalJSON(data []byte) error
type CreateMediaResponse ¶
type CreateMediaResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Media is created successfully
Object *CreateMediaResponseBody
}
func (*CreateMediaResponse) GetHTTPMeta ¶
func (o *CreateMediaResponse) GetHTTPMeta() components.HTTPMetadata
func (*CreateMediaResponse) GetObject ¶
func (o *CreateMediaResponse) GetObject() *CreateMediaResponseBody
type CreateMediaResponseBody ¶
type CreateMediaResponseBody struct {
// Demonstrates whether the request is successful or not.
Success *bool `json:"success,omitempty"`
Data *components.CreateMediaResponse `json:"data,omitempty"`
}
CreateMediaResponseBody - Media is created successfully
func (*CreateMediaResponseBody) GetData ¶
func (o *CreateMediaResponseBody) GetData() *components.CreateMediaResponse
func (*CreateMediaResponseBody) GetSuccess ¶
func (o *CreateMediaResponseBody) GetSuccess() *bool
type CreateNewStreamResponse ¶
type CreateNewStreamResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Stream created successfully
LiveStreamResponseDTO *components.LiveStreamResponseDTO
}
func (*CreateNewStreamResponse) GetHTTPMeta ¶
func (o *CreateNewStreamResponse) GetHTTPMeta() components.HTTPMetadata
func (*CreateNewStreamResponse) GetLiveStreamResponseDTO ¶
func (o *CreateNewStreamResponse) GetLiveStreamResponseDTO() *components.LiveStreamResponseDTO
type CreatePlaybackIDOfStreamRequest ¶
type CreatePlaybackIDOfStreamRequest struct {
// Upon creating a new live stream, FastPix assigns a unique identifier to the stream.
StreamID string `pathParam:"style=simple,explode=false,name=streamId"`
PlaybackIDRequest *components.PlaybackIDRequest `request:"mediaType=application/json"`
}
func (*CreatePlaybackIDOfStreamRequest) GetPlaybackIDRequest ¶
func (o *CreatePlaybackIDOfStreamRequest) GetPlaybackIDRequest() *components.PlaybackIDRequest
func (*CreatePlaybackIDOfStreamRequest) GetStreamID ¶
func (o *CreatePlaybackIDOfStreamRequest) GetStreamID() string
type CreatePlaybackIDOfStreamResponse ¶
type CreatePlaybackIDOfStreamResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// New PlaybackId created successfully
PlaybackIDResponse *components.PlaybackIDResponse
}
func (*CreatePlaybackIDOfStreamResponse) GetHTTPMeta ¶
func (o *CreatePlaybackIDOfStreamResponse) GetHTTPMeta() components.HTTPMetadata
func (*CreatePlaybackIDOfStreamResponse) GetPlaybackIDResponse ¶
func (o *CreatePlaybackIDOfStreamResponse) GetPlaybackIDResponse() *components.PlaybackIDResponse
type CreateSimulcastOfStreamRequest ¶
type CreateSimulcastOfStreamRequest struct {
// Upon creating a new live stream, FastPix assigns a unique identifier to the stream.
StreamID string `pathParam:"style=simple,explode=false,name=streamId"`
SimulcastRequest *components.SimulcastRequest `request:"mediaType=application/json"`
}
func (*CreateSimulcastOfStreamRequest) GetSimulcastRequest ¶
func (o *CreateSimulcastOfStreamRequest) GetSimulcastRequest() *components.SimulcastRequest
func (*CreateSimulcastOfStreamRequest) GetStreamID ¶
func (o *CreateSimulcastOfStreamRequest) GetStreamID() string
type CreateSimulcastOfStreamResponse ¶
type CreateSimulcastOfStreamResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// New Simulcast created successfully
SimulcastResponse *components.SimulcastResponse
}
func (*CreateSimulcastOfStreamResponse) GetHTTPMeta ¶
func (o *CreateSimulcastOfStreamResponse) GetHTTPMeta() components.HTTPMetadata
func (*CreateSimulcastOfStreamResponse) GetSimulcastResponse ¶
func (o *CreateSimulcastOfStreamResponse) GetSimulcastResponse() *components.SimulcastResponse
type Data ¶
type Data struct {
// A collection of Playback ID objects utilized for crafting HLS playback URLs.
PlaybackIds []components.PlaybackID `json:"playbackIds,omitempty"`
}
Data - Displays the result of the request.
func (*Data) GetPlaybackIds ¶
func (o *Data) GetPlaybackIds() []components.PlaybackID
type DeleteLiveStreamRequest ¶
type DeleteLiveStreamRequest struct {
// Upon creating a new live stream, FastPix assigns a unique identifier to the stream.
StreamID string `pathParam:"style=simple,explode=false,name=streamId"`
}
func (*DeleteLiveStreamRequest) GetStreamID ¶
func (o *DeleteLiveStreamRequest) GetStreamID() string
type DeleteLiveStreamResponse ¶
type DeleteLiveStreamResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Stream deleted successfully
LiveStreamDeleteResponse *components.LiveStreamDeleteResponse
}
func (*DeleteLiveStreamResponse) GetHTTPMeta ¶
func (o *DeleteLiveStreamResponse) GetHTTPMeta() components.HTTPMetadata
func (*DeleteLiveStreamResponse) GetLiveStreamDeleteResponse ¶
func (o *DeleteLiveStreamResponse) GetLiveStreamDeleteResponse() *components.LiveStreamDeleteResponse
type DeleteMediaPlaybackIDRequest ¶
type DeleteMediaPlaybackIDRequest struct {
// Return the universal unique identifier for media which can contain a maximum of 255 characters.
MediaID string `pathParam:"style=simple,explode=false,name=mediaId"`
// Return the universal unique identifier for playbacks which can contain a maximum of 255 characters.
PlaybackID string `queryParam:"style=form,explode=true,name=playbackId"`
}
func (*DeleteMediaPlaybackIDRequest) GetMediaID ¶
func (o *DeleteMediaPlaybackIDRequest) GetMediaID() string
func (*DeleteMediaPlaybackIDRequest) GetPlaybackID ¶
func (o *DeleteMediaPlaybackIDRequest) GetPlaybackID() string
type DeleteMediaPlaybackIDResponse ¶
type DeleteMediaPlaybackIDResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Deleted a Playback Id successfully
Object *DeleteMediaPlaybackIDResponseBody
}
func (*DeleteMediaPlaybackIDResponse) GetHTTPMeta ¶
func (o *DeleteMediaPlaybackIDResponse) GetHTTPMeta() components.HTTPMetadata
func (*DeleteMediaPlaybackIDResponse) GetObject ¶
func (o *DeleteMediaPlaybackIDResponse) GetObject() *DeleteMediaPlaybackIDResponseBody
type DeleteMediaPlaybackIDResponseBody ¶
type DeleteMediaPlaybackIDResponseBody struct {
// Demonstrates whether the request is successful or not.
Success *bool `json:"success,omitempty"`
}
DeleteMediaPlaybackIDResponseBody - Deleted a Playback Id successfully
func (*DeleteMediaPlaybackIDResponseBody) GetSuccess ¶
func (o *DeleteMediaPlaybackIDResponseBody) GetSuccess() *bool
type DeleteMediaRequest ¶
type DeleteMediaRequest struct {
// When creating the media, FastPix assigns a universally unique identifier with a maximum length of 255 characters.
MediaID string `pathParam:"style=simple,explode=false,name=mediaId"`
}
func (*DeleteMediaRequest) GetMediaID ¶
func (o *DeleteMediaRequest) GetMediaID() string
type DeleteMediaResponse ¶
type DeleteMediaResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Delete a video media
Object *DeleteMediaResponseBody
}
func (*DeleteMediaResponse) GetHTTPMeta ¶
func (o *DeleteMediaResponse) GetHTTPMeta() components.HTTPMetadata
func (*DeleteMediaResponse) GetObject ¶
func (o *DeleteMediaResponse) GetObject() *DeleteMediaResponseBody
type DeleteMediaResponseBody ¶
type DeleteMediaResponseBody struct {
// Demonstrates whether the request is successful or not.
Success *bool `json:"success,omitempty"`
}
DeleteMediaResponseBody - Delete a video media
func (*DeleteMediaResponseBody) GetSuccess ¶
func (o *DeleteMediaResponseBody) GetSuccess() *bool
type DeletePlaybackIDOfStreamRequest ¶
type DeletePlaybackIDOfStreamRequest struct {
// Upon creating a new live stream, FastPix assigns a unique identifier to the stream.
StreamID string `pathParam:"style=simple,explode=false,name=streamId"`
// Unique identifier for the playbackId
PlaybackID string `queryParam:"style=form,explode=true,name=playbackId"`
}
func (*DeletePlaybackIDOfStreamRequest) GetPlaybackID ¶
func (o *DeletePlaybackIDOfStreamRequest) GetPlaybackID() string
func (*DeletePlaybackIDOfStreamRequest) GetStreamID ¶
func (o *DeletePlaybackIDOfStreamRequest) GetStreamID() string
type DeletePlaybackIDOfStreamResponse ¶
type DeletePlaybackIDOfStreamResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Stream's playbackId deleted successfully
LiveStreamDeleteResponse *components.LiveStreamDeleteResponse
}
func (*DeletePlaybackIDOfStreamResponse) GetHTTPMeta ¶
func (o *DeletePlaybackIDOfStreamResponse) GetHTTPMeta() components.HTTPMetadata
func (*DeletePlaybackIDOfStreamResponse) GetLiveStreamDeleteResponse ¶
func (o *DeletePlaybackIDOfStreamResponse) GetLiveStreamDeleteResponse() *components.LiveStreamDeleteResponse
type DeleteSimulcastOfStreamRequest ¶
type DeleteSimulcastOfStreamRequest struct {
// Upon creating a new live stream, FastPix assigns a unique identifier to the stream.
StreamID string `pathParam:"style=simple,explode=false,name=streamId"`
// When you create the new simulcast, FastPix assign a universal unique identifier which can contain a maximum of 255 characters.
SimulcastID string `pathParam:"style=simple,explode=false,name=simulcastId"`
}
func (*DeleteSimulcastOfStreamRequest) GetSimulcastID ¶
func (o *DeleteSimulcastOfStreamRequest) GetSimulcastID() string
func (*DeleteSimulcastOfStreamRequest) GetStreamID ¶
func (o *DeleteSimulcastOfStreamRequest) GetStreamID() string
type DeleteSimulcastOfStreamResponse ¶
type DeleteSimulcastOfStreamResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Stream's simulcast deleted successfully
SimulcastdeleteResponse *components.SimulcastdeleteResponse
}
func (*DeleteSimulcastOfStreamResponse) GetHTTPMeta ¶
func (o *DeleteSimulcastOfStreamResponse) GetHTTPMeta() components.HTTPMetadata
func (*DeleteSimulcastOfStreamResponse) GetSimulcastdeleteResponse ¶
func (o *DeleteSimulcastOfStreamResponse) GetSimulcastdeleteResponse() *components.SimulcastdeleteResponse
type DirectUploadVideoMediaAccessPolicy ¶
type DirectUploadVideoMediaAccessPolicy string
DirectUploadVideoMediaAccessPolicy - Determines if access to the streamed content is kept private or available to all.
const ( DirectUploadVideoMediaAccessPolicyPublic DirectUploadVideoMediaAccessPolicy = "public" DirectUploadVideoMediaAccessPolicyPrivate DirectUploadVideoMediaAccessPolicy = "private" )
func (DirectUploadVideoMediaAccessPolicy) ToPointer ¶
func (e DirectUploadVideoMediaAccessPolicy) ToPointer() *DirectUploadVideoMediaAccessPolicy
func (*DirectUploadVideoMediaAccessPolicy) UnmarshalJSON ¶
func (e *DirectUploadVideoMediaAccessPolicy) UnmarshalJSON(data []byte) error
type DirectUploadVideoMediaAccessRestrictions ¶
type DirectUploadVideoMediaAccessRestrictions struct {
Domains *DirectUploadVideoMediaDomains `json:"domains,omitempty"`
UserAgents *DirectUploadVideoMediaUserAgents `json:"userAgents,omitempty"`
}
func (*DirectUploadVideoMediaAccessRestrictions) GetDomains ¶
func (o *DirectUploadVideoMediaAccessRestrictions) GetDomains() *DirectUploadVideoMediaDomains
func (*DirectUploadVideoMediaAccessRestrictions) GetUserAgents ¶
func (o *DirectUploadVideoMediaAccessRestrictions) GetUserAgents() *DirectUploadVideoMediaUserAgents
type DirectUploadVideoMediaDomains ¶
type DirectUploadVideoMediaDomains struct {
// Specifies the default access policy for domains.
// If set to `allow`, all domains are allowed access unless otherwise specified in the `deny` list.
// If set to `deny`, all domains are denied access unless otherwise specified in the `allow` list.
//
DefaultPolicy *DirectUploadVideoMediaDomainsDefaultPolicy `json:"defaultPolicy,omitempty"`
// A list of domain names or patterns that are explicitly allowed access.
// This list is only effective when the `defaultPolicy` is set to `deny`.
//
Allow []string `json:"allow,omitempty"`
// A list of domain names or patterns that are explicitly denied access.
// This list is only effective when the `defaultPolicy` is set to `allow`.
//
Deny []string `json:"deny,omitempty"`
}
func (*DirectUploadVideoMediaDomains) GetAllow ¶
func (o *DirectUploadVideoMediaDomains) GetAllow() []string
func (*DirectUploadVideoMediaDomains) GetDefaultPolicy ¶
func (o *DirectUploadVideoMediaDomains) GetDefaultPolicy() *DirectUploadVideoMediaDomainsDefaultPolicy
func (*DirectUploadVideoMediaDomains) GetDeny ¶
func (o *DirectUploadVideoMediaDomains) GetDeny() []string
type DirectUploadVideoMediaDomainsDefaultPolicy ¶
type DirectUploadVideoMediaDomainsDefaultPolicy string
DirectUploadVideoMediaDomainsDefaultPolicy - Specifies the default access policy for domains. If set to `allow`, all domains are allowed access unless otherwise specified in the `deny` list. If set to `deny`, all domains are denied access unless otherwise specified in the `allow` list.
const ( DirectUploadVideoMediaDomainsDefaultPolicyAllow DirectUploadVideoMediaDomainsDefaultPolicy = "allow" DirectUploadVideoMediaDomainsDefaultPolicyDeny DirectUploadVideoMediaDomainsDefaultPolicy = "deny" )
func (DirectUploadVideoMediaDomainsDefaultPolicy) ToPointer ¶
func (e DirectUploadVideoMediaDomainsDefaultPolicy) ToPointer() *DirectUploadVideoMediaDomainsDefaultPolicy
func (*DirectUploadVideoMediaDomainsDefaultPolicy) UnmarshalJSON ¶
func (e *DirectUploadVideoMediaDomainsDefaultPolicy) UnmarshalJSON(data []byte) error
type DirectUploadVideoMediaMetadata ¶
type DirectUploadVideoMediaMetadata struct {
}
DirectUploadVideoMediaMetadata - Tag a video in "key" : "value" pairs for searchable metadata. Maximum 10 entries, 255 characters each.
type DirectUploadVideoMediaRequest ¶
type DirectUploadVideoMediaRequest struct {
// Upload media directly from a device using the URL name or enter '*' to allow all.
CorsOrigin string `json:"corsOrigin"`
// Configuration settings for media upload.
PushMediaSettings *PushMediaSettings `json:"pushMediaSettings,omitempty"`
}
DirectUploadVideoMediaRequest - Request body for direct upload
func (*DirectUploadVideoMediaRequest) GetCorsOrigin ¶
func (o *DirectUploadVideoMediaRequest) GetCorsOrigin() string
func (*DirectUploadVideoMediaRequest) GetPushMediaSettings ¶
func (o *DirectUploadVideoMediaRequest) GetPushMediaSettings() *PushMediaSettings
type DirectUploadVideoMediaResponse ¶
type DirectUploadVideoMediaResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Direct upload created successfully
Object *DirectUploadVideoMediaResponseBody
}
func (*DirectUploadVideoMediaResponse) GetHTTPMeta ¶
func (o *DirectUploadVideoMediaResponse) GetHTTPMeta() components.HTTPMetadata
func (*DirectUploadVideoMediaResponse) GetObject ¶
func (o *DirectUploadVideoMediaResponse) GetObject() *DirectUploadVideoMediaResponseBody
type DirectUploadVideoMediaResponseBody ¶
type DirectUploadVideoMediaResponseBody struct {
// Demonstrates whether the request is successful or not.
Success *bool `json:"success,omitempty"`
// Displays the result of the request.
Data *components.DirectUpload `json:"data,omitempty"`
}
DirectUploadVideoMediaResponseBody - Direct upload created successfully
func (*DirectUploadVideoMediaResponseBody) GetData ¶
func (o *DirectUploadVideoMediaResponseBody) GetData() *components.DirectUpload
func (*DirectUploadVideoMediaResponseBody) GetSuccess ¶
func (o *DirectUploadVideoMediaResponseBody) GetSuccess() *bool
type DirectUploadVideoMediaUserAgents ¶
type DirectUploadVideoMediaUserAgents struct {
// Specifies the default access policy for user agents (browsers, bots, etc.).
// If set to `allow`, all user agents are allowed access unless otherwise specified in the `deny` list.
// If set to `deny`, all user agents are denied access unless otherwise specified in the `allow` list.
//
DefaultPolicy *DirectUploadVideoMediaUserAgentsDefaultPolicy `json:"defaultPolicy,omitempty"`
// A list of user agents (identified by string names or patterns) that are explicitly allowed access.
// This list is only effective when the `defaultPolicy` is set to `deny`.
//
Allow []string `json:"allow,omitempty"`
// A list of user agents (identified by string names or patterns) that are explicitly denied access.
// This list is only effective when the `defaultPolicy` is set to `allow`.
//
Deny []string `json:"deny,omitempty"`
}
func (*DirectUploadVideoMediaUserAgents) GetAllow ¶
func (o *DirectUploadVideoMediaUserAgents) GetAllow() []string
func (*DirectUploadVideoMediaUserAgents) GetDefaultPolicy ¶
func (o *DirectUploadVideoMediaUserAgents) GetDefaultPolicy() *DirectUploadVideoMediaUserAgentsDefaultPolicy
func (*DirectUploadVideoMediaUserAgents) GetDeny ¶
func (o *DirectUploadVideoMediaUserAgents) GetDeny() []string
type DirectUploadVideoMediaUserAgentsDefaultPolicy ¶
type DirectUploadVideoMediaUserAgentsDefaultPolicy string
DirectUploadVideoMediaUserAgentsDefaultPolicy - Specifies the default access policy for user agents (browsers, bots, etc.). If set to `allow`, all user agents are allowed access unless otherwise specified in the `deny` list. If set to `deny`, all user agents are denied access unless otherwise specified in the `allow` list.
const ( DirectUploadVideoMediaUserAgentsDefaultPolicyAllow DirectUploadVideoMediaUserAgentsDefaultPolicy = "allow" DirectUploadVideoMediaUserAgentsDefaultPolicyDeny DirectUploadVideoMediaUserAgentsDefaultPolicy = "deny" )
func (DirectUploadVideoMediaUserAgentsDefaultPolicy) ToPointer ¶
func (e DirectUploadVideoMediaUserAgentsDefaultPolicy) ToPointer() *DirectUploadVideoMediaUserAgentsDefaultPolicy
func (*DirectUploadVideoMediaUserAgentsDefaultPolicy) UnmarshalJSON ¶
func (e *DirectUploadVideoMediaUserAgentsDefaultPolicy) UnmarshalJSON(data []byte) error
type GetAllStreamsOrderBy ¶
type GetAllStreamsOrderBy string
GetAllStreamsOrderBy - The list of value can be order in two ways DESC (Descending) or ASC (Ascending). In case not specified, by default it will be DESC.
const ( GetAllStreamsOrderByAsc GetAllStreamsOrderBy = "asc" GetAllStreamsOrderByDesc GetAllStreamsOrderBy = "desc" )
func (GetAllStreamsOrderBy) ToPointer ¶
func (e GetAllStreamsOrderBy) ToPointer() *GetAllStreamsOrderBy
func (*GetAllStreamsOrderBy) UnmarshalJSON ¶
func (e *GetAllStreamsOrderBy) UnmarshalJSON(data []byte) error
type GetAllStreamsRequest ¶
type GetAllStreamsRequest struct {
// Limit specifies the maximum number of items to display per page.
Limit *string `default:"10" queryParam:"style=form,explode=true,name=limit"`
// Offset determines the starting point for data retrieval within a paginated list.
Offset *string `default:"1" queryParam:"style=form,explode=true,name=offset"`
// The list of value can be order in two ways DESC (Descending) or ASC (Ascending). In case not specified, by default it will be DESC.
OrderBy *GetAllStreamsOrderBy `default:"desc" queryParam:"style=form,explode=true,name=orderBy"`
}
func (*GetAllStreamsRequest) GetLimit ¶
func (o *GetAllStreamsRequest) GetLimit() *string
func (*GetAllStreamsRequest) GetOffset ¶
func (o *GetAllStreamsRequest) GetOffset() *string
func (*GetAllStreamsRequest) GetOrderBy ¶
func (o *GetAllStreamsRequest) GetOrderBy() *GetAllStreamsOrderBy
func (GetAllStreamsRequest) MarshalJSON ¶
func (g GetAllStreamsRequest) MarshalJSON() ([]byte, error)
func (*GetAllStreamsRequest) UnmarshalJSON ¶
func (g *GetAllStreamsRequest) UnmarshalJSON(data []byte) error
type GetAllStreamsResponse ¶
type GetAllStreamsResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// All streams retrieved sucessfully
GetStreamsResponse *components.GetStreamsResponse
}
func (*GetAllStreamsResponse) GetGetStreamsResponse ¶
func (o *GetAllStreamsResponse) GetGetStreamsResponse() *components.GetStreamsResponse
func (*GetAllStreamsResponse) GetHTTPMeta ¶
func (o *GetAllStreamsResponse) GetHTTPMeta() components.HTTPMetadata
type GetLiveStreamByIDRequest ¶
type GetLiveStreamByIDRequest struct {
// Upon creating a new live stream, FastPix assigns a unique identifier to the stream.
StreamID string `pathParam:"style=simple,explode=false,name=streamId"`
}
func (*GetLiveStreamByIDRequest) GetStreamID ¶
func (o *GetLiveStreamByIDRequest) GetStreamID() string
type GetLiveStreamByIDResponse ¶
type GetLiveStreamByIDResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Stream details retrieved successfully
LivestreamgetResponse *components.LivestreamgetResponse
}
func (*GetLiveStreamByIDResponse) GetHTTPMeta ¶
func (o *GetLiveStreamByIDResponse) GetHTTPMeta() components.HTTPMetadata
func (*GetLiveStreamByIDResponse) GetLivestreamgetResponse ¶
func (o *GetLiveStreamByIDResponse) GetLivestreamgetResponse() *components.LivestreamgetResponse
type GetLiveStreamPlaybackIDRequest ¶
type GetLiveStreamPlaybackIDRequest struct {
// Upon creating a new live stream, FastPix assigns a unique identifier to the stream.
StreamID string `pathParam:"style=simple,explode=false,name=streamId"`
// Upon creating a new playbackId, FastPix assigns a unique identifier to the playback.
PlaybackID string `pathParam:"style=simple,explode=false,name=playbackId"`
}
func (*GetLiveStreamPlaybackIDRequest) GetPlaybackID ¶
func (o *GetLiveStreamPlaybackIDRequest) GetPlaybackID() string
func (*GetLiveStreamPlaybackIDRequest) GetStreamID ¶
func (o *GetLiveStreamPlaybackIDRequest) GetStreamID() string
type GetLiveStreamPlaybackIDResponse ¶
type GetLiveStreamPlaybackIDResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Stream details retrieved successfully
PlaybackIDResponse *components.PlaybackIDResponse
}
func (*GetLiveStreamPlaybackIDResponse) GetHTTPMeta ¶
func (o *GetLiveStreamPlaybackIDResponse) GetHTTPMeta() components.HTTPMetadata
func (*GetLiveStreamPlaybackIDResponse) GetPlaybackIDResponse ¶
func (o *GetLiveStreamPlaybackIDResponse) GetPlaybackIDResponse() *components.PlaybackIDResponse
type GetMediaRequest ¶
type GetMediaRequest struct {
// The Media Id is assigned a universal unique identifier, which can contain a maximum of 255 characters.
MediaID string `pathParam:"style=simple,explode=false,name=mediaId"`
}
func (*GetMediaRequest) GetMediaID ¶
func (o *GetMediaRequest) GetMediaID() string
type GetMediaResponse ¶
type GetMediaResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Get a video media by id
Object *GetMediaResponseBody
}
func (*GetMediaResponse) GetHTTPMeta ¶
func (o *GetMediaResponse) GetHTTPMeta() components.HTTPMetadata
func (*GetMediaResponse) GetObject ¶
func (o *GetMediaResponse) GetObject() *GetMediaResponseBody
type GetMediaResponseBody ¶
type GetMediaResponseBody struct {
// Demonstrates whether the request is successful or not.
Success *bool `json:"success,omitempty"`
Data *components.Media `json:"data,omitempty"`
}
GetMediaResponseBody - Get a video media by id
func (*GetMediaResponseBody) GetData ¶
func (o *GetMediaResponseBody) GetData() *components.Media
func (*GetMediaResponseBody) GetSuccess ¶
func (o *GetMediaResponseBody) GetSuccess() *bool
type GetSpecificSimulcastOfStreamRequest ¶
type GetSpecificSimulcastOfStreamRequest struct {
// Upon creating a new live stream, FastPix assigns a unique identifier to the stream.
StreamID string `pathParam:"style=simple,explode=false,name=streamId"`
// When you create the new simulcast, FastPix assign a universal unique identifier which can contain a maximum of 255 characters.
SimulcastID string `pathParam:"style=simple,explode=false,name=simulcastId"`
}
func (*GetSpecificSimulcastOfStreamRequest) GetSimulcastID ¶
func (o *GetSpecificSimulcastOfStreamRequest) GetSimulcastID() string
func (*GetSpecificSimulcastOfStreamRequest) GetStreamID ¶
func (o *GetSpecificSimulcastOfStreamRequest) GetStreamID() string
type GetSpecificSimulcastOfStreamResponse ¶
type GetSpecificSimulcastOfStreamResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Stream's simulcast details fetched successfully
SimulcastResponse *components.SimulcastResponse
}
func (*GetSpecificSimulcastOfStreamResponse) GetHTTPMeta ¶
func (o *GetSpecificSimulcastOfStreamResponse) GetHTTPMeta() components.HTTPMetadata
func (*GetSpecificSimulcastOfStreamResponse) GetSimulcastResponse ¶
func (o *GetSpecificSimulcastOfStreamResponse) GetSimulcastResponse() *components.SimulcastResponse
type Input ¶
type Input struct {
VideoInput *components.VideoInput `queryParam:"inline"`
WatermarkInput *components.WatermarkInput `queryParam:"inline"`
AudioInput *components.AudioInput `queryParam:"inline"`
SubtitleInput *components.SubtitleInput `queryParam:"inline"`
Type InputType
}
func CreateInputAudioInput ¶
func CreateInputAudioInput(audioInput components.AudioInput) Input
func CreateInputSubtitleInput ¶
func CreateInputSubtitleInput(subtitleInput components.SubtitleInput) Input
func CreateInputVideoInput ¶
func CreateInputVideoInput(videoInput components.VideoInput) Input
func CreateInputWatermarkInput ¶
func CreateInputWatermarkInput(watermarkInput components.WatermarkInput) Input
func (Input) MarshalJSON ¶
func (*Input) UnmarshalJSON ¶
type LanguageCode ¶
type LanguageCode string
LanguageCode - Language codes (BCP 47 compliant) used for text files.
const ( LanguageCodeEn LanguageCode = "en" LanguageCodeIt LanguageCode = "it" LanguageCodePl LanguageCode = "pl" LanguageCodeEs LanguageCode = "es" LanguageCodeFr LanguageCode = "fr" LanguageCodeRu LanguageCode = "ru" LanguageCodeNl LanguageCode = "nl" )
func (LanguageCode) ToPointer ¶
func (e LanguageCode) ToPointer() *LanguageCode
func (*LanguageCode) UnmarshalJSON ¶
func (e *LanguageCode) UnmarshalJSON(data []byte) error
type ListMediaOrderBy ¶
type ListMediaOrderBy string
ListMediaOrderBy - The values in the list can be arranged in two ways: DESC (Descending) or ASC (Ascending).
const ( ListMediaOrderByAsc ListMediaOrderBy = "asc" ListMediaOrderByDesc ListMediaOrderBy = "desc" )
func (ListMediaOrderBy) ToPointer ¶
func (e ListMediaOrderBy) ToPointer() *ListMediaOrderBy
func (*ListMediaOrderBy) UnmarshalJSON ¶
func (e *ListMediaOrderBy) UnmarshalJSON(data []byte) error
type ListMediaRequest ¶
type ListMediaRequest struct {
// Limit specifies the maximum number of items to display per page.
Limit *int64 `default:"10" queryParam:"style=form,explode=true,name=limit"`
// Offset determines the starting point for data retrieval within a paginated list.
Offset *int64 `default:"1" queryParam:"style=form,explode=true,name=offset"`
// The values in the list can be arranged in two ways: DESC (Descending) or ASC (Ascending).
OrderBy *ListMediaOrderBy `default:"desc" queryParam:"style=form,explode=true,name=orderBy"`
}
func (*ListMediaRequest) GetLimit ¶
func (o *ListMediaRequest) GetLimit() *int64
func (*ListMediaRequest) GetOffset ¶
func (o *ListMediaRequest) GetOffset() *int64
func (*ListMediaRequest) GetOrderBy ¶
func (o *ListMediaRequest) GetOrderBy() *ListMediaOrderBy
func (ListMediaRequest) MarshalJSON ¶
func (l ListMediaRequest) MarshalJSON() ([]byte, error)
func (*ListMediaRequest) UnmarshalJSON ¶
func (l *ListMediaRequest) UnmarshalJSON(data []byte) error
type ListMediaResponse ¶
type ListMediaResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// List of video media
Object *ListMediaResponseBody
}
func (*ListMediaResponse) GetHTTPMeta ¶
func (o *ListMediaResponse) GetHTTPMeta() components.HTTPMetadata
func (*ListMediaResponse) GetObject ¶
func (o *ListMediaResponse) GetObject() *ListMediaResponseBody
type ListMediaResponseBody ¶
type ListMediaResponseBody struct {
// Demonstrates whether the request is successful or not.
Success *bool `json:"success,omitempty"`
// Displays the result of the request.
Data []components.Media `json:"data,omitempty"`
// Pagination organizes content into pages for better readability and navigation.
Pagination *components.Pagination `json:"pagination,omitempty"`
}
ListMediaResponseBody - List of video media
func (*ListMediaResponseBody) GetData ¶
func (o *ListMediaResponseBody) GetData() []components.Media
func (*ListMediaResponseBody) GetPagination ¶
func (o *ListMediaResponseBody) GetPagination() *components.Pagination
func (*ListMediaResponseBody) GetSuccess ¶
func (o *ListMediaResponseBody) GetSuccess() *bool
type MaxResolution ¶
type MaxResolution string
MaxResolution - Determines the highest quality resolution available.
const ( MaxResolutionTwoThousandOneHundredAndSixtyp MaxResolution = "2160p" MaxResolutionOneThousandFourHundredAndFortyp MaxResolution = "1440p" MaxResolutionOneThousandAndEightyp MaxResolution = "1080p" MaxResolutionSevenHundredAndTwentyp MaxResolution = "720p" MaxResolutionFourHundredAndEightyp MaxResolution = "480p" MaxResolutionThreeHundredAndSixtyp MaxResolution = "360p" )
func (MaxResolution) ToPointer ¶
func (e MaxResolution) ToPointer() *MaxResolution
func (*MaxResolution) UnmarshalJSON ¶
func (e *MaxResolution) UnmarshalJSON(data []byte) error
type Moderation ¶
type Moderation struct {
// Defines the type of input. Possible values include video, audio, av.
//
Type *Type `json:"type,omitempty"`
}
func (*Moderation) GetType ¶
func (o *Moderation) GetType() *Type
type Mp4Support ¶
type Mp4Support string
Mp4Support - Generates MP4 video up to 4K ("capped_4k"), m4a audio only ("audioOnly"), or both for offline viewing.
const ( Mp4SupportCapped4k Mp4Support = "capped_4k" Mp4SupportAudioOnly Mp4Support = "audioOnly" Mp4SupportAudioOnlyCapped4k Mp4Support = "audioOnly,capped_4k" )
func (Mp4Support) ToPointer ¶
func (e Mp4Support) ToPointer() *Mp4Support
func (*Mp4Support) UnmarshalJSON ¶
func (e *Mp4Support) UnmarshalJSON(data []byte) error
type Option ¶
func WithOperationTimeout ¶
WithOperationTimeout allows setting the request timeout applied for an operation.
func WithRetries ¶
WithRetries allows customizing the default retry configuration.
func WithServerURL ¶
WithServerURL allows providing an alternative server URL.
func WithSetHeaders ¶
WithSetHeaders takes a map of headers that will applied to a request. If the request contains headers that are in the map then they will be overwritten.
func WithTemplatedServerURL ¶
WithTemplatedServerURL allows providing an alternative server URL with templated parameters.
func WithURLOverride ¶
WithURLOverride allows overriding the URL.
type PushMediaSettings ¶
type PushMediaSettings struct {
// Determines if access to the streamed content is kept private or available to all.
AccessPolicy DirectUploadVideoMediaAccessPolicy `json:"accessPolicy"`
// Start time indicates where encoding should begin within the video file, in seconds.
StartTime *float64 `json:"startTime,omitempty"`
// End time indicates where encoding should end within the video file, in seconds.
EndTime *float64 `json:"endTime,omitempty"`
Inputs []Input `json:"inputs,omitempty"`
// Tag a video in "key" : "value" pairs for searchable metadata. Maximum 10 entries, 255 characters each.
Metadata *DirectUploadVideoMediaMetadata `json:"metadata,omitempty"`
// Generates subtitle files for audio/video files.
//
Subtitles *Subtitles `json:"subtitles,omitempty"`
// Enhance the quality and volume of the audio track. This is available for pre-recorded content only.
//
OptimizeAudio *bool `default:"true" json:"optimizeAudio"`
// Determines the highest quality resolution available.
//
MaxResolution *MaxResolution `default:"1080p" json:"maxResolution"`
// The sourceAccess parameter determines whether the original media file is accessible. Set to true to enable access or false to restrict it
SourceAccess *bool `json:"sourceAccess,omitempty"`
// Generates MP4 video up to 4K ("capped_4k"), m4a audio only ("audioOnly"), or both for offline viewing.
//
Mp4Support *Mp4Support `json:"mp4Support,omitempty"`
Summary *Summary `json:"summary,omitempty"`
// Enable or disable the chapters feature for the media. Set to `true` to enable chapters or `false` to disable.
//
Chapters *bool `json:"chapters,omitempty"`
// Enable or disable named entity extraction. Set to `true` to enable or `false` to disable.
//
NamedEntities *bool `json:"namedEntities,omitempty"`
Moderation *Moderation `json:"moderation,omitempty"`
AccessRestrictions *DirectUploadVideoMediaAccessRestrictions `json:"accessRestrictions,omitempty"`
}
PushMediaSettings - Configuration settings for media upload.
func (*PushMediaSettings) GetAccessPolicy ¶
func (o *PushMediaSettings) GetAccessPolicy() DirectUploadVideoMediaAccessPolicy
func (*PushMediaSettings) GetAccessRestrictions ¶
func (o *PushMediaSettings) GetAccessRestrictions() *DirectUploadVideoMediaAccessRestrictions
func (*PushMediaSettings) GetChapters ¶
func (o *PushMediaSettings) GetChapters() *bool
func (*PushMediaSettings) GetEndTime ¶
func (o *PushMediaSettings) GetEndTime() *float64
func (*PushMediaSettings) GetInputs ¶
func (o *PushMediaSettings) GetInputs() []Input
func (*PushMediaSettings) GetMaxResolution ¶
func (o *PushMediaSettings) GetMaxResolution() *MaxResolution
func (*PushMediaSettings) GetMetadata ¶
func (o *PushMediaSettings) GetMetadata() *DirectUploadVideoMediaMetadata
func (*PushMediaSettings) GetModeration ¶
func (o *PushMediaSettings) GetModeration() *Moderation
func (*PushMediaSettings) GetMp4Support ¶
func (o *PushMediaSettings) GetMp4Support() *Mp4Support
func (*PushMediaSettings) GetNamedEntities ¶
func (o *PushMediaSettings) GetNamedEntities() *bool
func (*PushMediaSettings) GetOptimizeAudio ¶
func (o *PushMediaSettings) GetOptimizeAudio() *bool
func (*PushMediaSettings) GetSourceAccess ¶
func (o *PushMediaSettings) GetSourceAccess() *bool
func (*PushMediaSettings) GetStartTime ¶
func (o *PushMediaSettings) GetStartTime() *float64
func (*PushMediaSettings) GetSubtitles ¶
func (o *PushMediaSettings) GetSubtitles() *Subtitles
func (*PushMediaSettings) GetSummary ¶
func (o *PushMediaSettings) GetSummary() *Summary
func (PushMediaSettings) MarshalJSON ¶
func (p PushMediaSettings) MarshalJSON() ([]byte, error)
func (*PushMediaSettings) UnmarshalJSON ¶
func (p *PushMediaSettings) UnmarshalJSON(data []byte) error
type RetrieveMediaInputInfoRequest ¶
type RetrieveMediaInputInfoRequest struct {
// Pass the list of the input objects used to create the media, along with applied settings.
MediaID string `pathParam:"style=simple,explode=false,name=mediaId"`
}
func (*RetrieveMediaInputInfoRequest) GetMediaID ¶
func (o *RetrieveMediaInputInfoRequest) GetMediaID() string
type RetrieveMediaInputInfoResponse ¶
type RetrieveMediaInputInfoResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Get video media input information
Object *RetrieveMediaInputInfoResponseBody
}
func (*RetrieveMediaInputInfoResponse) GetHTTPMeta ¶
func (o *RetrieveMediaInputInfoResponse) GetHTTPMeta() components.HTTPMetadata
func (*RetrieveMediaInputInfoResponse) GetObject ¶
func (o *RetrieveMediaInputInfoResponse) GetObject() *RetrieveMediaInputInfoResponseBody
type RetrieveMediaInputInfoResponseBody ¶
type RetrieveMediaInputInfoResponseBody struct {
// Demonstrates whether the request is successful or not.
Success *bool `json:"success,omitempty"`
// Displays the result of the request.
Data any `json:"data,omitempty"`
}
RetrieveMediaInputInfoResponseBody - Get video media input information
func (*RetrieveMediaInputInfoResponseBody) GetData ¶
func (o *RetrieveMediaInputInfoResponseBody) GetData() any
func (*RetrieveMediaInputInfoResponseBody) GetSuccess ¶
func (o *RetrieveMediaInputInfoResponseBody) GetSuccess() *bool
type Subtitles ¶
type Subtitles struct {
// Name of the language for the subtitles.
LanguageName *string `json:"languageName,omitempty"`
// Searchable metadata tags for the video in key-value pairs.
Metadata *SubtitlesMetadata `json:"metadata,omitempty"`
// Language codes (BCP 47 compliant) used for text files.
//
LanguageCode *LanguageCode `json:"languageCode,omitempty"`
}
Subtitles - Generates subtitle files for audio/video files.
func (*Subtitles) GetLanguageCode ¶
func (o *Subtitles) GetLanguageCode() *LanguageCode
func (*Subtitles) GetLanguageName ¶
func (*Subtitles) GetMetadata ¶
func (o *Subtitles) GetMetadata() *SubtitlesMetadata
type SubtitlesMetadata ¶
type SubtitlesMetadata struct {
}
SubtitlesMetadata - Searchable metadata tags for the video in key-value pairs.
type Summary ¶
type Summary struct {
// Enable or disable the summary feature for the media. Set to true to enable summary or false to disable.
//
Generate *bool `json:"generate,omitempty"`
// Specifies the desired word count for the generated summary.
// - The value must be between **30** and **250** words.
//
SummaryLength *int64 `default:"100" json:"summaryLength"`
}
func (*Summary) GetGenerate ¶
func (*Summary) GetSummaryLength ¶
func (Summary) MarshalJSON ¶
func (*Summary) UnmarshalJSON ¶
type Type ¶
type Type string
Type - Defines the type of input. Possible values include video, audio, av.
func (*Type) UnmarshalJSON ¶
type UpdateLiveStreamRequest ¶
type UpdateLiveStreamRequest struct {
// Upon creating a new live stream, FastPix assigns a unique identifier to the stream.
StreamID string `pathParam:"style=simple,explode=false,name=streamId"`
PatchLiveStreamRequest *components.PatchLiveStreamRequest `request:"mediaType=application/json"`
}
func (*UpdateLiveStreamRequest) GetPatchLiveStreamRequest ¶
func (o *UpdateLiveStreamRequest) GetPatchLiveStreamRequest() *components.PatchLiveStreamRequest
func (*UpdateLiveStreamRequest) GetStreamID ¶
func (o *UpdateLiveStreamRequest) GetStreamID() string
type UpdateLiveStreamResponse ¶
type UpdateLiveStreamResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Stream details updated successfully
PatchResponseDTO *components.PatchResponseDTO
}
func (*UpdateLiveStreamResponse) GetHTTPMeta ¶
func (o *UpdateLiveStreamResponse) GetHTTPMeta() components.HTTPMetadata
func (*UpdateLiveStreamResponse) GetPatchResponseDTO ¶
func (o *UpdateLiveStreamResponse) GetPatchResponseDTO() *components.PatchResponseDTO
type UpdateSpecificSimulcastOfStreamRequest ¶
type UpdateSpecificSimulcastOfStreamRequest struct {
// Upon creating a new live stream, FastPix assigns a unique identifier to the stream.
StreamID string `pathParam:"style=simple,explode=false,name=streamId"`
// When you create the new simulcast, FastPix assign a universal unique identifier which can contain a maximum of 255 characters.
SimulcastID string `pathParam:"style=simple,explode=false,name=simulcastId"`
SimulcastUpdateRequest *components.SimulcastUpdateRequest `request:"mediaType=application/json"`
}
func (*UpdateSpecificSimulcastOfStreamRequest) GetSimulcastID ¶
func (o *UpdateSpecificSimulcastOfStreamRequest) GetSimulcastID() string
func (*UpdateSpecificSimulcastOfStreamRequest) GetSimulcastUpdateRequest ¶
func (o *UpdateSpecificSimulcastOfStreamRequest) GetSimulcastUpdateRequest() *components.SimulcastUpdateRequest
func (*UpdateSpecificSimulcastOfStreamRequest) GetStreamID ¶
func (o *UpdateSpecificSimulcastOfStreamRequest) GetStreamID() string
type UpdateSpecificSimulcastOfStreamResponse ¶
type UpdateSpecificSimulcastOfStreamResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Stream's simulcast details fetched successfully
SimulcastUpdateResponse *components.SimulcastUpdateResponse
}
func (*UpdateSpecificSimulcastOfStreamResponse) GetHTTPMeta ¶
func (o *UpdateSpecificSimulcastOfStreamResponse) GetHTTPMeta() components.HTTPMetadata
func (*UpdateSpecificSimulcastOfStreamResponse) GetSimulcastUpdateResponse ¶
func (o *UpdateSpecificSimulcastOfStreamResponse) GetSimulcastUpdateResponse() *components.SimulcastUpdateResponse
type UpdatedMediaMetadata ¶
type UpdatedMediaMetadata struct {
}
UpdatedMediaMetadata - You can search for videos with specific key value pairs using metadata, when you tag a video in "key" : "value" pairs. Dynamic Metadata allows you to define a key that allows any value pair. You can have maximum of 255 characters and upto 10 entries are allowed.
type UpdatedMediaRequest ¶
type UpdatedMediaRequest struct {
// When creating the media, FastPix assigns a universally unique identifier with a maximum length of 255 characters.
MediaID string `pathParam:"style=simple,explode=false,name=mediaId"`
RequestBody *UpdatedMediaRequestBody `request:"mediaType=application/json"`
}
func (*UpdatedMediaRequest) GetMediaID ¶
func (o *UpdatedMediaRequest) GetMediaID() string
func (*UpdatedMediaRequest) GetRequestBody ¶
func (o *UpdatedMediaRequest) GetRequestBody() *UpdatedMediaRequestBody
type UpdatedMediaRequestBody ¶
type UpdatedMediaRequestBody struct {
// You can search for videos with specific key value pairs using metadata, when you tag a video in "key" : "value" pairs. Dynamic Metadata allows you to define a key that allows any value pair. You can have maximum of 255 characters and upto 10 entries are allowed.
Metadata *UpdatedMediaMetadata `json:"metadata,omitempty"`
}
func (*UpdatedMediaRequestBody) GetMetadata ¶
func (o *UpdatedMediaRequestBody) GetMetadata() *UpdatedMediaMetadata
type UpdatedMediaResponse ¶
type UpdatedMediaResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Media details updated successfully
Object *UpdatedMediaResponseBody
}
func (*UpdatedMediaResponse) GetHTTPMeta ¶
func (o *UpdatedMediaResponse) GetHTTPMeta() components.HTTPMetadata
func (*UpdatedMediaResponse) GetObject ¶
func (o *UpdatedMediaResponse) GetObject() *UpdatedMediaResponseBody
type UpdatedMediaResponseBody ¶
type UpdatedMediaResponseBody struct {
// Demonstrates whether the request is successful or not.
Success *bool `json:"success,omitempty"`
Data *components.Media `json:"data,omitempty"`
}
UpdatedMediaResponseBody - Media details updated successfully
func (*UpdatedMediaResponseBody) GetData ¶
func (o *UpdatedMediaResponseBody) GetData() *components.Media
func (*UpdatedMediaResponseBody) GetSuccess ¶
func (o *UpdatedMediaResponseBody) GetSuccess() *bool
Source Files
¶
- createmedia.go
- createmediaplaybackid.go
- createnewstream.go
- createplaybackidofstream.go
- createsimulcastofstream.go
- deletelivestream.go
- deletemedia.go
- deletemediaplaybackid.go
- deleteplaybackidofstream.go
- deletesimulcastofstream.go
- directuploadvideomedia.go
- getallstreams.go
- getlivestreambyid.go
- getlivestreamplaybackid.go
- getmedia.go
- getspecificsimulcastofstream.go
- listmedia.go
- options.go
- retrievemediainputinfo.go
- updatedmedia.go
- updatelivestream.go
- updatespecificsimulcastofstream.go