# Start / Stop Recordings using JQuery Ajax

**URL:** <https://community.wowza.com/t/start-stop-recordings-using-jquery-ajax/34353>\
**Category:** Wowza Streaming Engine\
**Created:** [July 18, 2016, 6:26am UTC](https://community.wowza.com/t/start-stop-recordings-using-jquery-ajax/34353 "2016-07-18T06:26:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pip\_Nason](https://avatars.discourse-cdn.com/v4/letter/p/9dc877/32.png) [@Pip\_Nason](https://community.wowza.com/u/Pip_Nason)\
**Post date:** [July 18, 2016, 6:26am UTC](https://community.wowza.com/t/start-stop-recordings-using-jquery-ajax/34353/1 "2016-07-18T06:26:38Z")

</div>

Afternoon

Does anyone have any advice on how to make Get calls to the start/stop recording functions with a JQuery Get call.

If I set LiveStreamRecord authentication to None - then this works:

var request = $.ajax({

method: “GET”,

url: “[http://localhost:8086/livestreamrecord?app=videochat/](http://localhost:8086/livestreamrecord?app=videochat/)_definst_&streamname=live\_v2&action=startRecording”,

success: function (){ console.log(‘worked’); },

error: function( jqXHR, textStatus, errorThrown) { console.log(jqXHR); console.log(textStatus); console.log(errorThrown); }

});

If I set it to admin-digest then all attempts below fail:

var request = $.ajax({

method: “GET”,

url: “[http://myuser:mypassword@localhost:8086/livestreamrecord?app=videochat/](http://myuser:mypassword@localhost:8086/livestreamrecord?app=videochat/)_definst_&streamname=live\_v2&action=startRecording”,

success: function (){ console.log(‘worked’); },

error: function( jqXHR, textStatus, errorThrown) { console.log(jqXHR); console.log(textStatus); console.log(errorThrown); }

});

var request = $.ajax({

method: “GET”,

username: ‘myuser’,

password: ‘mypassword’,

url: “[http://myuser:mypassword@localhost:8086/livestreamrecord?app=videochat/](http://myuser:mypassword@localhost:8086/livestreamrecord?app=videochat/)_definst_&streamname=live\_v2&action=startRecording”,

success: function (){ console.log(‘worked’); },

error: function( jqXHR, textStatus, errorThrown) { console.log(jqXHR); console.log(textStatus); console.log(errorThrown); }

});

var request = $.ajax({

method: “GET”,

xhrFields: { withCredentials: true },

username: ‘myuser’,

password: ‘mypassword’,

url: “[http://myuser:mypassword@localhost:8086/livestreamrecord?app=videochat/](http://myuser:mypassword@localhost:8086/livestreamrecord?app=videochat/)_definst_&streamname=live\_v2&action=startRecording”,

success: function (){ console.log(‘worked’); },

error: function( jqXHR, textStatus, errorThrown) { console.log(jqXHR); console.log(textStatus); console.log(errorThrown); }

});

Seemed like such a simple thing when I started it 6 hours ago. But now I’m running out of hair to pull out?

Can anyone help?

Pip

---

<div class="post-metadata">

**Author:** ![Andy\_Engberson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/andy_engberson/32/392_2.png) [@Andy\_Engberson](https://community.wowza.com/u/Andy_Engberson)\
**Post date:** [September 2, 2016, 12:14am UTC](https://community.wowza.com/t/start-stop-recordings-using-jquery-ajax/34353/2 "2016-09-02T00:14:48Z")

</div>

Hi,

I do see this issue was handled in the created ticket (181969).

Regards,

Andy\_E
