class Asterisk::ARI::Playbacks
- Asterisk::ARI::Playbacks
- Asterisk::ARI::Resources
- Reference
- Object
Defined in:
asterisk/ari/resources/playbacks.crasterisk/ari/models/playbacks_playback.cr
Instance Method Summary
-
#control(playback_id : String, operation : String)
Control a playback.
-
#get(playback_id : String) : HTTP::Client::Response | Playbacks::Playback
Get a playback's details.
-
#stop(playback_id : String)
Stop a playback.
Instance methods inherited from class Asterisk::ARI::Resources
ari : ARI
ari
Constructor methods inherited from class Asterisk::ARI::Resources
new(ari)
new
Instance Method Detail
def control(playback_id : String, operation : String)
#
Control a playback.
Arguments:
playback_id
- playback's id. (required);operation
- operation to perform on the playback. (required);
Error responses:
- 400 - The provided operation parameter was invalid
- 404 - The playback cannot be found
- 409 - The operation cannot be performed in the playback's current state
def get(playback_id : String) : HTTP::Client::Response | Playbacks::Playback
#
Get a playback's details.
Arguments:
playback_id
- playback's id. (required);
Error responses:
- 404 - The playback cannot be found
def stop(playback_id : String)
#
Stop a playback.
Arguments:
playback_id
- playback's id. (required);
Error responses:
- 404 - The playback cannot be found