Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEncoderHandlers ¶ added in v1.9.3
func RegisterEncoderHandlers(manager *manager.Media, tasks *taskmanager.Manager, router *httprouter.Router) error
RegisterEncoderHandlers registers the encoder HTTP handlers. It takes both the media manager (to start an encode) and the task manager (to stream that task's own events for the text/event-stream response) as separate arguments, mirroring how they're wired independently in cmd/gomedia/server.go.
func RegisterMetadataHandlers ¶
func RegisterMetadataHandlers(manager *manager.Media, router *httprouter.Router) error
Types ¶
type EncodeFormData ¶ added in v1.9.3
type EncodeFormData struct {
File types.File `json:"file" form:"file" validate:"required"`
Request string `json:"request" form:"request" validate:"required"`
}
EncodeFormData is the multipart/form-data shape POST /encode expects - the media to encode as a file part, and the rest of the request (output format, audio/video/subtitle profiles) as a JSON-encoded string part, since taskencoder.EncodeRequest's profile fields are too complex for the generic query/form decoder to fill directly.