server

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2017 License: MIT Imports: 24 Imported by: 1

Documentation

Overview

Package server is the place we integrate the Livepeer node with the LPMS media server.

Index

Constants

View Source
const EthEventTimeout = 5 * time.Second
View Source
const EthMinedTxTimeout = 60 * time.Second
View Source
const EthRpcTimeout = 5 * time.Second
View Source
const HLSBufferCap = uint(43200) //12 hrs assuming 1s segment
View Source
const HLSBufferWindow = uint(5)
View Source
const HLSUnsubWorkerFreq = time.Second * 5
View Source
const HLSWaitInterval = time.Second

Variables

View Source
var BroadcastPrice = uint64(1)
View Source
var ErrAlreadyExists = errors.New("StreamAlreadyExists")
View Source
var ErrBroadcast = errors.New("ErrBroadcast")
View Source
var ErrHLSPlay = errors.New("ErrHLSPlay")
View Source
var ErrNotFound = errors.New("ErrNotFound")
View Source
var ErrRTMPPlay = errors.New("ErrRTMPPlay")
View Source
var ErrRTMPPublish = errors.New("ErrRTMPPublish")
View Source
var HLSWaitTime = time.Second * 45
View Source
var LastHLSStreamID core.StreamID
View Source
var LastManifestID core.ManifestID
View Source
var SegOptions = segmenter.SegmenterOptions{SegLength: 8 * time.Second}
View Source
var TranscoderFeeCut = uint8(10)
View Source
var TranscoderRewardCut = uint8(10)
View Source
var TranscoderSegmentPrice = big.NewInt(150)

Functions

This section is empty.

Types

type LivepeerServer

type LivepeerServer struct {
	RTMPSegmenter lpmscore.RTMPSegmenter
	LPMS          *lpmscore.LPMS
	HttpPort      string
	RtmpPort      string
	FfmpegPath    string
	LivepeerNode  *core.LivepeerNode
	// contains filtered or unexported fields
}

func NewLivepeerServer

func NewLivepeerServer(rtmpPort string, httpPort string, ffmpegPath string, lpNode *core.LivepeerNode) *LivepeerServer

func (*LivepeerServer) StartMediaServer

func (s *LivepeerServer) StartMediaServer(ctx context.Context, maxPricePerSegment int, transcodingOptions string) error

StartServer starts the LPMS server

func (*LivepeerServer) StartWebserver

func (s *LivepeerServer) StartWebserver()

Jump to

Keyboard shortcuts

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