mediaserve

package
v0.0.60 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mediaserve serves HLS/DASH files from disk under /{code}/… — same URL layout as the API server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(r chi.Router, hlsDir, dashDir string)

Mount registers GET /{code}/index.m3u8, GET /{code}/index.mpd, and GET /{code}/* on r.

func NewHandler

func NewHandler(hlsDir, dashDir string) http.Handler

NewHandler returns a standalone handler with the same routes as Mount (for tests or embedding).

Types

This section is empty.

Jump to

Keyboard shortcuts

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