javascript - Record a call made from Plivo WebSDK using API or XML -
i want able record call that's being initialized through plivowebsdk. how can accomplish without having change whole setup api or xml. both seems more complicated me.
function recordthecall(calluuid) { console.log(calluuid); var auth_id = "mam2m4zge3njiwmgrim2"; var url = "https://api.plivo.com/v1/account/"+auth_id+"/call/"+calluuid+"/record/"; $.ajax({ url: url, type: "post", data: { 'auth_id': auth_id, 'call_uuid': calluuid }, datatype: "json", success: function (res) { alert(res); }, error: function(err) { alert(err); } }); }
call recording cannot accomplished web sdk directly. cannot use plivo api web browser using javascript because cross-domain ajax requests not allowed in browsers security reasons.
there 2 ways record call initialized plivo web sdk.
method 1: using plivo xml (the straight-forward method)
can use record xml element recording call session. more information here.method 2: using plivo api can use record api recording call session. more information here
there documents available here can started on using plivo's web sdk.
Comments
Post a Comment