streaming

package
v0.0.0-...-9ace066 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package streaming to deal with creating video streams

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JWTChecker

func JWTChecker(logger logger.Logger, jwtToken string) error

Types

type Destination

type Destination struct {
	ID string
	// Type is youtube or facebook
	Type string
	Link string
}

type Stream

type Stream struct {
	ID           string
	Destinations []Destination
	// Inputs
	StartDate   time.Time
	Name        string
	Description string
	ImagePath   string
	IsPublic    bool
}

type Streamyard

type Streamyard struct {
	// contains filtered or unexported fields
}

func NewStreamyard

func NewStreamyard(logger logger.Logger, client *http.Client, csrfToken, jwt, userID, youtubeDestination, facebookDestination string) Streamyard

func (Streamyard) CreateDestination

func (s Streamyard) CreateDestination(ctx context.Context, destinationStreamType string, ss Stream) (Stream, error)

func (Streamyard) CreateStream

func (s Streamyard) CreateStream(ctx context.Context, title string) (Stream, error)

func (Streamyard) GetDestinations

func (s Streamyard) GetDestinations(ctx context.Context) ([]StreamyardDestination, error)

func (Streamyard) GetStream

func (s Streamyard) GetStream(ctx context.Context, streamID string) (Stream, error)

func (Streamyard) ListStreams

func (s Streamyard) ListStreams(ctx context.Context) ([]Stream, error)

func (Streamyard) UpdateDestination

func (s Streamyard) UpdateDestination(ctx context.Context, destinationStreamType string, ss Stream, forceImageUpdate bool) (Stream, error)

func (Streamyard) UpdateStream

func (s Streamyard) UpdateStream(ctx context.Context, streamID, title string) error

type StreamyardBroadcastOutputResponse

type StreamyardBroadcastOutputResponse struct {
	ID               string `json:"id"`
	Privacy          string `json:"privacy"`
	PlannedStartTime string `json:"plannedStartTime"`
	Platform         string `json:"platform"`
	PlatformType     string `json:"platformType"`
	Description      string `json:"description"`
	PlatformUserName string `json:"platformUserName"`
	PlatformLink     string `json:"platformLink"`
	Image            string `json:"image"`
}

type StreamyardBroadcastResponse

type StreamyardBroadcastResponse struct {
	ID      string                              `json:"id"`
	Status  string                              `json:"status"`
	Title   string                              `json:"title"`
	Outputs []StreamyardBroadcastOutputResponse `json:"outputs"`
}

type StreamyardDestination

type StreamyardDestination struct {
	PlatformUsername string `json:"platformUsername"`
	Platform         string `json:"platform"`
	ID               string `json:"id"`
}

type StreamyardDestinationResp

type StreamyardDestinationResp struct {
	Destinations []StreamyardDestination `json:"destinations"`
}

type StreamyardDestinationResponse

type StreamyardDestinationResponse struct {
	Output StreamyardBroadcastOutputResponse `json:"output"`
}

type StreamyardListResponse

type StreamyardListResponse struct {
	HasMore    bool                          `json:"hasMore"`
	Broadcasts []StreamyardBroadcastResponse `json:"broadcasts"`
}

Jump to

Keyboard shortcuts

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