Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RankStreams ¶
func RankStreams(ctx context.Context, cfg app.ResolverConfig, streams []*media.Stream) (*media.Stream, error)
RankStreams probes multiple streams concurrently and returns the one with the highest bandwidth. Failed probes are logged and skipped. Returns an error only if ALL streams fail probing.
Types ¶
type StreamDetail ¶
StreamDetail holds a stream URL and its probed bit rate.
func ListStreams ¶
func ListStreams(ctx context.Context, cfg app.ResolverConfig, streams []*media.Stream) []StreamDetail
ListStreams expands HLS variants and probes each stream, returning details for display. Failures are logged and skipped.
Click to show internal directories.
Click to hide internal directories.