C# Класс CloudExamples.Services.EncodingService

A service that integrates with encoding.com API
Показать файл Открыть проект

Открытые методы

Метод Описание
AddMedia ( string pullFile, string pushFile, string format, string extension ) : string

Adds a new media file to be encoded

EncodingService ( string userId, string userKey, string apiUrl ) : System

An instance of the encoding service

GetMediaList ( ) : string

Retrives a list of the all the media for this encoding account

GetStatus ( string id ) : string

Gets the status of a media object being encoded

Приватные методы

Метод Описание
SendApiRequest ( System.Xml.Linq.XDocument doc ) : string

Generic helper function to send an xml document as an HTTP Post request

Описание методов

AddMedia() публичный Метод

Adds a new media file to be encoded
public AddMedia ( string pullFile, string pushFile, string format, string extension ) : string
pullFile string The location of the file to get to encode
pushFile string The location to store the encoded file
format string Name of the format to encode in
extension string File extension to use when naming the encoded file
Результат string

EncodingService() публичный Метод

An instance of the encoding service
public EncodingService ( string userId, string userKey, string apiUrl ) : System
userId string User ID for this encoding account
userKey string User API key for this encoding account
apiUrl string The location of the encoding api
Результат System

GetMediaList() публичный Метод

Retrives a list of the all the media for this encoding account
public GetMediaList ( ) : string
Результат string

GetStatus() публичный Метод

Gets the status of a media object being encoded
public GetStatus ( string id ) : string
id string The id of the media to check
Результат string