Take control over your live stream video by running it yourself. Streaming + chat out of the box.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
538 B

package replays
import "github.com/pkg/errors"
type HLSOutputConfiguration struct {
ID string
StreamId string
VariantId string
Name string
VideoBitrate int
ScaledWidth int
ScaledHeight int
Framerate int
SegmentDuration float64
}
func (config *HLSOutputConfiguration) Validate() error {
if config.VideoBitrate == 0 {
return errors.New("video bitrate is unavailable")
}
if config.Framerate == 0 {
return errors.New("video framerate is unavailable")
}
return nil
}