27 lines
946 B
Go
27 lines
946 B
Go
|
package dash
|
||
|
|
||
|
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"
|
||
|
|
||
|
// 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 = "/dash/download/"
|
||
|
|
||
|
// collectPath is the URL path used to collect
|
||
|
collectPath = "/collect/dash"
|
||
|
)
|
||
|
|
||
|
// defaultRates contains the default DASH rates in kbit/s.
|
||
|
var defaultRates = []int64{
|
||
|
100, 150, 200, 250, 300, 400, 500, 700, 900, 1200, 1500, 2000,
|
||
|
2500, 3000, 4000, 5000, 6000, 7000, 10000, 20000,
|
||
|
}
|