streamer

package
v0.0.0-...-dec19c8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package streamer contains media segments streaming app.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CORSConfig

type CORSConfig struct {
	AllowOrigin string
}

type Config

type Config struct {
	Logger        *zap.Logger
	SessionStore  *sessionStore.Store
	CORSConfig    *CORSConfig
	URIPathPrefix string
	S3PathPrefix  string
	S3Endpoint    string
	S3AccessKey   string
	S3SecretKey   string
	S3Bucket      string
	S3SSL         bool
}

type Service

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

Service is a streaming service. It implements fasthttp handler that serves MPEG-DASH segments. Segments are taken from media store. Every request is also checked for valid "watch"-session.

func New

func New(cfg *Config) (*Service, error)

func (*Service) Handler

func (svc *Service) Handler() func(*fasthttp.RequestCtx)

Jump to

Keyboard shortcuts

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