zencoder

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

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

Jump to

Keyboard shortcuts

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