(key *ari.Key, name string, opts *ari.RecordingOptions)
| 359 | } |
| 360 | |
| 361 | func (c *channel) Record(key *ari.Key, name string, opts *ari.RecordingOptions) (*ari.LiveRecordingHandle, error) { |
| 362 | rb, err := c.c.createRequest(&proxy.Request{ |
| 363 | Kind: "ChannelRecord", |
| 364 | Key: key, |
| 365 | ChannelRecord: &proxy.ChannelRecord{ |
| 366 | Name: name, |
| 367 | Options: opts, |
| 368 | }, |
| 369 | }) |
| 370 | if err != nil { |
| 371 | return nil, err |
| 372 | } |
| 373 | return ari.NewLiveRecordingHandle(rb.New(ari.LiveRecordingKey, name), c.c.LiveRecording(), nil), nil |
| 374 | } |
| 375 | |
| 376 | func (c *channel) StageRecord(key *ari.Key, name string, opts *ari.RecordingOptions) (*ari.LiveRecordingHandle, error) { |
| 377 | k, err := c.c.getRequest(&proxy.Request{ |
no test coverage detected