# Webrtc enable features for new application

**URL:** <https://community.wowza.com/t/webrtc-enable-features-for-new-application/92357>\
**Category:** Wowza Streaming Engine\
**Tags:** webrtc\
**Created:** [November 17, 2020, 5:30pm UTC](https://community.wowza.com/t/webrtc-enable-features-for-new-application/92357 "2020-11-17T17:30:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![LogicaHost\_Solucoes](https://avatars.discourse-cdn.com/v4/letter/l/3ab097/32.png) [@LogicaHost\_Solucoes](https://community.wowza.com/u/LogicaHost_Solucoes)\
**Post date:** [November 17, 2020, 5:30pm UTC](https://community.wowza.com/t/webrtc-enable-features-for-new-application/92357/1 "2020-11-17T17:30:29Z")

</div>

Dear wowza team,

I am integrating webrtc functionality from wowza. I am facing one problem of webrtc enable features for new application. Do We have any API to enabled default webrtc configuration ?  
I want to enabled this checkbox (webrtcEnablePublish, webrtcEnablePlay,webrtcEnableQuery)

Thanks

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [November 17, 2020, 6:08pm UTC](https://community.wowza.com/t/webrtc-enable-features-for-new-application/92357/2 "2020-11-17T18:08:33Z")

</div>

You would need to set that to true in the WerbRTC section of the application xml if you’re not going to do it in Engine Manager. But, let me check with engineers to see if there is a way to enable that programatically. Be back soon…

---

<div class="post-metadata">

**Author:** ![LogicaHost\_Solucoes](https://avatars.discourse-cdn.com/v4/letter/l/3ab097/32.png) [@LogicaHost\_Solucoes](https://community.wowza.com/u/LogicaHost_Solucoes)\
**Post date:** [November 17, 2020, 6:53pm UTC](https://community.wowza.com/t/webrtc-enable-features-for-new-application/92357/3 "2020-11-17T18:53:51Z")

</div>

Hello, our API is not creating enabled webrtc, can you provide me with an API to create enabled webrt

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [November 17, 2020, 7:09pm UTC](https://community.wowza.com/t/webrtc-enable-features-for-new-application/92357/4 "2020-11-17T19:09:01Z")

</div>

You can do this with the REST API:  
`/v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}/webrtc` \<- Endpoint path

An example using cURL for an app called `webrtc` would be

```
curl --digest -u user:passwd -X PUT -H 'Accept:application/json; charset=utf-8' -H 'Content-Type:application/json; charset=utf-8' http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/webrtc/webrtc -d'
{
   "restURI": "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/webrtc",
   "udpBindAddress": "",
  "enablePlay": false,
  "preferredCodecsAudio": "",
  "preferredCodecsVideo": "",
  "enableQuery": true,
  "debugLog": false,
  "serverName": "",
  "saveFieldList": [
""
  ],
  "iceCandidateIpAddresses": "",
  "version": "",
  "enablePublish": false
}'

```

Just toggle enableQuery to be the value you want to set, and fill in other fields to match your app if needed (and pass credentials if REST Interface requires them.

You can do a GET request first to retrieve the current WebRTC setup. They can then be used to help with populating the fields for the PUT

```
curl --digest -u user:passwd -X GET http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/webrtc/webrtc
```

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [November 17, 2020, 7:10pm UTC](https://community.wowza.com/t/webrtc-enable-features-for-new-application/92357/5 "2020-11-17T19:10:06Z")

</div>

If you’d like an engineer to help set this up with you, they’d be happy to walk through it with you in a support ticket.

`https://www.wowza.com/support/open-ticket`
