api

package
v0.0.0-...-f5d786a Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDropletId

func GetDropletId() string

func SetTranscode

func SetTranscode(transcodeData *TranscodeData, transcoding bool) error

Types

type Output

type Output struct {
	Name           string  `json:"name"`
	Variant        string  `json:"variant"`
	Bandwidth      int     `json:"bandwidth"`
	AudioBandwidth string  `json:"audio_bandwidth"`
	VideoBandwidth string  `json:"video_bandwidth"`
	Width          int     `json:"width"`
	Height         int     `json:"height"`
	FrameRate      float64 `json:"framerate"`
}

type Stream

type Stream struct {
	Ingest struct {
		Server string `json:"server"`
		Url    string `json:"url"`
	} `json:"ingest"`
	User struct {
		UserId   string `json:"id"`
		Username string `json:"username"`
	} `json:"user"`
}

func GetStream

func GetStream(streamId string) *Stream

type Transcode

type Transcode struct {
	Data []TranscodeData `json:"data"`
}

type TranscodeData

type TranscodeData struct {
	StreamId    string   `json:"streamId"`
	Outputs     []Output `json:"outputs"`
	DropletId   string   `json:"droplet_id"`
	Transcoding bool     `json:"transcoding"`
}

func GetTranscode

func GetTranscode(dropletId string) *TranscodeData

type TranscodePatch

type TranscodePatch struct {
	Transcoding bool `json:"transcoding"`
}

Jump to

Keyboard shortcuts

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