spec

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package spec contains constants

Index

Constants

View Source
const (
	// CurrentServerSchemaVersion is the version of the server schema that
	// will be adopted by this implementation. Version 3 is the one that is
	// Neubot uses. We needed to bump the version because Web100 is not on
	// M-Lab anymore and hence we need to make a breaking change.
	CurrentServerSchemaVersion = 4

	// NegotiatePath is the URL path used to negotiate
	NegotiatePath = "/negotiate/dash"

	// DownloadPathNoTrailingSlash is like DownloadPath but has no
	// trailing slash. For historical reasons we also need to handle
	// this path in addition to DownloadPath.
	DownloadPathNoTrailingSlash = "/dash/download"

	// DownloadPath is the URL path used to request DASH segments. You can
	// append to this path an integer indicating how many bytes you would like
	// the server to send you as part of the next chunk.
	DownloadPath = DownloadPathNoTrailingSlash + "/"

	// CollectPath is the URL path used to collect
	CollectPath = "/collect/dash"
)

Variables

View Source
var DefaultRates = []int64{
	100,
	150,
	200,
	250,
	300,
	400,
	500,
	700,
	900,
	1200,
	1500,
	2000,
	2500,
	3000,
	4000,
	5000,
	6000,
	7000,
	10000,
	20000,
}

DefaultRates contains the default DASH rates in kbit/s.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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