// Stop a specific audio stream on a call'use strict';varplivo=require('plivo');(functionmain(){varclient=newplivo.Client(<auth_id>,<auth_token>);client.calls.stopStream(<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
<?php/**
* Stop a specific audio stream on a call
*/require'vendor/autoload.php';usePlivo\RestClient;usePlivo\Exceptions\PlivoRestException;$client=newRestClient("<auth_id>","<auth_token>");try{$response=$client->calls->stopSpecificStream("62993d16-7e42-4bae-9ac7-55015e35c788","dc110403-bbc9-4d94-a564-d2939348f703");}catch(PlivoRestException$ex){print_r($ex);}
packagecom.plivo.examples.audioStream;importjava.io.IOException;importjava.util.Collections;importjava.util.HashMap;importjava.util.Map;importcom.plivo.api.Plivo;importcom.plivo.api.exceptions.PlivoRestException;importcom.plivo.api.exceptions.PlivoValidationException;importcom.plivo.api.models.base.ListResponse;importcom.plivo.api.models.call.Call;importcom.plivo.api.models.call.CallCreateResponse;importcom.plivo.api.models.call.actions.CallStreamCreateResponse;importcom.plivo.api.models.call.actions.CallStreamCreator;importcom.plivo.api.models.call.actions.CallStreamGetSpecificResponse;/**
* Stop a specific audio stream on a call
*/classstopSpecificAudioStreaming{publicstaticvoidmain(String[]args)throwsPlivoRestException,PlivoValidationException,IOException{Plivo.init("<auth_id>","<auth_token>");try{Call.streamStopSpecific("eba53b9e-8fbd-45c1-9444-696d2172fbc8","stream-id").stop();}catch(Exceptione){e.printStackTrace();}}}
/**
* Stop a specific audio stream on a call
*/usingSystem;usingSystem.Collections.Generic;usingPlivo;usingPlivo.Exception;namespacePlivoExamples{internalclassProgram{publicstaticvoidMain(string[]args){varapi=newPlivoApi("<auth_id>","<auth_token>");try{api.Call.StopStream("eff5f2da-58a9-4447-b484-bee21870638c","{stream_uuid}");}catch(PlivoRestExceptione){Console.WriteLine("Exception: "+e.Message);}}}}
packageAudio_Streamingimport("fmt""github.com/plivo/plivo-go/v7")// Stop a specific audio stream on a call//package mainfuncmain(){client,err:=plivo.NewClient("<auth_id>","<auth_token>",&plivo.ClientOptions{})iferr!=nil{fmt.Print("Error",err.Error())return}err=client.Calls.StopSpecificStream("61fa0825-3018-4508-9a3a-922247b1052d","f60342d1-eb0a-42b0-974b-2fd900b07ed1")iferr!=nil{fmt.Print("Error",err.Error())return}}
Rate this page
🥳 Thank you! It means a lot to us!
×
Help Us Improve
Thank you so much for rating the page, we would like to get your input
for further improvements!