(ctx context.Context, reply string, req *proxy.Request)
| 25 | } |
| 26 | |
| 27 | func (s *Server) playbackGet(ctx context.Context, reply string, req *proxy.Request) { |
| 28 | s.Log.Debug("Fetching playback data", "playback", req.Key) |
| 29 | data, err := s.ari.Playback().Data(req.Key) |
| 30 | if err != nil { |
| 31 | s.sendError(reply, err) |
| 32 | return |
| 33 | } |
| 34 | |
| 35 | s.publish(reply, &proxy.Response{ |
| 36 | Key: data.Key, |
| 37 | }) |
| 38 | } |
| 39 | |
| 40 | func (s *Server) playbackStop(ctx context.Context, reply string, req *proxy.Request) { |
| 41 | s.sendError(reply, s.ari.Playback().Stop(req.Key)) |