Documentation ¶
Overview ¶
Package zencoder provides a implementation of the provider that uses the Zencoder API for transcoding media files.
It doesn't expose any public type. In order to use the provider, one must import this package and then grab the factory from the provider package:
import ( "github.com/video-dev/video-transcoding-api/provider" "github.com/video-dev/video-transcoding-api/provider/zencoder" ) func UseProvider() { factory, err := provider.GetProviderFactory(Zencoder.Name) // handle err and use factory to get an instance of the provider. }
Index ¶
Constants ¶
View Source
const Name = "zencoder"
Name is the name used for registering the Zencoder provider in the registry of providers.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { CreateJob(*zencoder.EncodingSettings) (*zencoder.CreateJobResponse, error) CancelJob(id int64) error GetJobProgress(id int64) (*zencoder.JobProgress, error) GetJobDetails(id int64) (*zencoder.JobDetails, error) GetVodUsage(settings *zencoder.ReportSettings) (*zencoder.VodUsage, error) }
Client is a interface that makes it easier to create the fake client for tests
Click to show internal directories.
Click to hide internal directories.