Latest Legacy

Retrieve an audio Stream

This method lets you retrieve the details of an audio stream.

API Endpoint

GEThttps://api.plivo.com/v1/Account/{auth_id}/Call/{call_uuid}/Stream/{Stream_uuid}/

Arguments

No arguments need to be passed.

Response

​​{
  "api_id": "757c17b8-13cb-11ee-9b7a-0242ac110007",
  "audio_track": "both",
  "bidirectional": false,
  "bill_duration": 21,
  "billed_amount": "0.00300",
  "call_uuid": "816e0b22-6913-4b43-88a9-6d3054b77df9",
  "created_at": "2023-06-26 02:44:50.617032+00:00",
  "end_time": "2023-06-26 08:14:50+05:30",
  "plivo_auth_id": "MAY2RJNZKZNJMWXXXX",
  "resource_uri": "/v1/Account/MAY2RJNZKZNJMWXXXX/Call/816e0b22-6913-4b43-88a9-6d3054b77df9/Stream/4543157e-60d3-4c3a-b9d8-189c47686bf0/",
  "rounded_bill_duration": 60,
  "service_url": "ws://13.127.140.35:19088/ws",
  "start_time": "2023-06-26 08:14:29+05:30",
  "stream_id": "4543157e-60d3-4c3a-b9d8-189c47686bf0"
}

Example Request

1
2
3
import plivo
client = plivo.RestClient('<auth_id>','<auth_token>')
response = client.calls.get_details_of_specific_stream('ebe4ab56-9b72-4c3e-9870-5f4262847407','06d42b8e-db57-4ac7-a06d-e47cbccabadd')
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'rubygems'
require 'plivo'

include Plivo
include Plivo::Exceptions

api = RestClient.new("<auth_id>","<auth_token>")

begin
  response = api.calls.get_stream("227ff3c3-1562-4316-819f-217f638890f6","{stream_uuid}")
  puts response
rescue PlivoRESTError => e
  puts 'Exception: ' + e.message
end
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Retrieves details of a specific audio stream on a call

'use strict';

var plivo = require('plivo');

(function main() {
    var client = new plivo.Client(<auth_id>, <auth_token>);
    client.calls.getStream(<call_uuid>,
        <stream_id>
    ).then(function (response) {
        console.log(response);
    }, function (err) {
        console.error(err);
    });
})();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/**
 * Retrieves details of a specific audio stream on a call
 */
require 'vendor/autoload.php';
use Plivo\RestClient;
use Plivo\Exceptions\PlivoRestException;
$client = new RestClient("<auth_id>","<auth_token>");
try {
    
    $response = $client->calls->getSpecificStream(
        "be812e3f-89d5-4ded-a93b-9d38a956aa46",
        "24e434ce-c37a-4417-82bd-f0e273e078bb"
    );
    print_r($response);  

}
catch (PlivoRestException $ex) {
    print_r($ex);
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.plivo.examples.audioStream;

import java.io.IOException;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

import com.plivo.api.Plivo;
import com.plivo.api.exceptions.PlivoRestException;
import com.plivo.api.exceptions.PlivoValidationException;
import com.plivo.api.models.base.ListResponse;
import com.plivo.api.models.call.Call;
import com.plivo.api.models.call.CallCreateResponse;
import com.plivo.api.models.call.actions.CallStreamCreateResponse;
import com.plivo.api.models.call.actions.CallStreamCreator;
import com.plivo.api.models.call.actions.CallStreamGetSpecificResponse;

/**
 * Retrieves details of a specific audio stream on a call
 */
class getSpecificAudioStreaming {

  public static void main(String [] args) throws PlivoRestException, PlivoValidationException, IOException {

    Plivo.init("<auth_id>","<auth_token>");

    try {

      CallStreamGetSpecificResponse response = Call.streamGetSpecific("eba53b9e-8fbd-45c1-9444-696d2172fbc8", "stream-id")
        .get();

    } catch (Exception e) {
      e.printStackTrace();
    }
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
 * Retrieves details of a specific audio stream on a call
 */
using System;
using System.Collections.Generic;
using Plivo;
using Plivo.Exception;

namespace PlivoExamples
{
    internal class Program
    {
        public static void Main(string[] args)
        {
            var api = new PlivoApi("<auth_id>","<auth_token>");
            try
            {
                var response = api.Call.GetStream("eff5f2da-58a9-4447-b484-bee21870638c",
                    "aa18dfbd-d492-4301-9a2a-82340786d2ff");
                Console.Write(response);
                
            }
            catch (PlivoRestException e)
            {
                Console.WriteLine("Exception: " + e.Message);
            }
        }
    }
}
1
2
curl -i --user AUTH_ID:AUTH_TOKEN \
    https://api.plivo.com/v1/Account/{auth_id}/Call/{call_uuid}/Stream/{Stream_uuid}/
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package Audio_Streaming

import (
"fmt"
"github.com/plivo/plivo-go/v7"
)

// Retrieves details of a specific audio stream on a call
//package main

func main() {
client, err := plivo.NewClient("<auth_id>", "<auth_token>", &plivo.ClientOptions{})
if err != nil {
fmt.Print("Error", err.Error())
return
}

err = client.Calls.GetSpecificStream("61fa0825-3018-4508-9a3a-922247b1052d", "f60342d1-eb0a-42b0-974b-2fd900b07ed1")

if err != nil {
fmt.Print("Error", err.Error())
return
}
}