Example #1
0
//Activated is called by clients to announce that
//they have activated the broadcast.
func Activated(c util.Context) (err error) {
	p, err := getPresentation(c)
	if err != nil {
		return
	}

	action.Log(p, action.Activated, c.R.FormValue("client"), c)
	return
}
Example #2
0
//GotConfig is called by clients to announce that
//they have downloaded the broadcast.
func GotConfig(c util.Context) (err error) {
	conf, err := config.Get(c)
	if err != nil {
		return
	}

	action.Log(conf, action.Activated, c.R.FormValue("client"), c)
	return
}