# Not able to play AAC encoded audio in WebRTC .

**URL:** <https://community.wowza.com/t/not-able-to-play-aac-encoded-audio-in-webrtc/52454>\
**Category:** Wowza Streaming Engine\
**Created:** [December 10, 2018, 10:35pm UTC](https://community.wowza.com/t/not-able-to-play-aac-encoded-audio-in-webrtc/52454 "2018-12-10T22:35:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashutosh\_kumar1](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@Ashutosh\_kumar1](https://community.wowza.com/u/Ashutosh_kumar1)\
**Post date:** [December 10, 2018, 10:35pm UTC](https://community.wowza.com/t/not-able-to-play-aac-encoded-audio-in-webrtc/52454/1 "2018-12-10T22:35:34Z")

</div>

Hi ,

I have steam having audio encoded using AAc and video is encoded using H.264. I want to play this stream using hls and WebRTC . In case of WebRTC audio is not coming . I need to encode the audio using libopus. I am using ffmpeg for generation the stream . Is there any way to play AAc encoded audio in WebRTC using WOwza without encoding it using libopus.

---

<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:** [December 10, 2018, 11:44pm UTC](https://community.wowza.com/t/not-able-to-play-aac-encoded-audio-in-webrtc/52454/2 "2018-12-10T23:44:30Z")

</div>

In Wowza Streaming Engine, the following audio and video codecs are supported for WebRTC [@Ashutosh kumar](http://community.wowza.com/community/questions/50043/not-able-to-play-aac-encoded-audio-in-webrtc.html#):

- Video: VP8, VP9, H.264
- Audio: Opus, Vorbis, PCMU, PCMA

For HLS playback:

We recommend that you use the Transcoder feature in Wowza Streaming Engine to transcode the WebRTC stream into any standard output format, such as AAC audio with H.264 video. Then you can deliver the stream over Apple HLS.

So, there is no way for you to send the video into Streaming Engine as AAC/H.264. It has to be Opus, Vorbis, PCMU or PCMA.

Does that answer your question? Please let me know. 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:** [December 10, 2018, 11:47pm UTC](https://community.wowza.com/t/not-able-to-play-aac-encoded-audio-in-webrtc/52454/3 "2018-12-10T23:47:26Z")

</div>

Please see this doc for more info:

[https://www.wowza.com/docs/webrtc-workflows-in-wowza-streaming-engine](https://www.wowza.com/docs/webrtc-workflows-in-wowza-streaming-engine)

Also, keep in mind that:

Google Chrome and Mozilla Firefox don’t support AAC audio over WebRTC. Streams with AAC audio are played as video-only.

So, in Chrome and Firefox, do not use AAC in WebRTC, but a different audio codec as we listed.

---

<div class="post-metadata">

**Author:** ![chi\_nk1](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@chi\_nk1](https://community.wowza.com/u/chi_nk1)\
**Post date:** [April 2, 2019, 8:50am UTC](https://community.wowza.com/t/not-able-to-play-aac-encoded-audio-in-webrtc/52454/4 "2019-04-02T08:50:47Z")

</div>

How can set the audio codec to OPUS in Android Gocoder sdk

---

<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:** [April 3, 2019, 9:16pm UTC](https://community.wowza.com/t/not-able-to-play-aac-encoded-audio-in-webrtc/52454/5 "2019-04-03T21:16:57Z")

</div>

We don’t support WebRTC in mobile platforms at this time. Sorry for any inconvenience.

WebRTC is still gaining adoption, so not all browsers and mobile platforms support it. With Wowza Streaming Engine, you can ingest and play WebRTC streams with Mozilla Firefox and Google Chrome browsers on the desktop. At this time, Wowza Streaming Engine doesn’t support ingest or playback of WebRTC streams on mobile platforms or in a live repeater (origin/edge) configuration.

[https://www.wowza.com/docs/webrtc-workflows-in-wowza-streaming-engine](https://www.wowza.com/docs/webrtc-workflows-in-wowza-streaming-engine)

---

<div class="post-metadata">

**Author:** ![Thien\_Au](https://avatars.discourse-cdn.com/v4/letter/t/a9a28c/32.png) [@Thien\_Au](https://community.wowza.com/u/Thien_Au)\
**Post date:** [June 17, 2019, 2:53pm UTC](https://community.wowza.com/t/not-able-to-play-aac-encoded-audio-in-webrtc/52454/6 "2019-06-17T14:53:06Z")

</div>

Hello I have implemented already an publish stream app in WebRTC native. Let’s contact me [vinh.thien0301@gmail.com](mailto:vinh.thien0301@gmail.com).

---

<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:** [June 19, 2019, 9:21pm UTC](https://community.wowza.com/t/not-able-to-play-aac-encoded-audio-in-webrtc/52454/7 "2019-06-19T21:21:48Z")

</div>

That’s great! Feel free to share this info as well in our WebRTC Slack channel.

[https://www.wowza.com/slack](https://www.wowza.com/slack)

---

<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:** [June 19, 2019, 9:23pm UTC](https://community.wowza.com/t/not-able-to-play-aac-encoded-audio-in-webrtc/52454/8 "2019-06-19T21:23:02Z")

</div>

Several developers have been interested in doing this and we don’t support it yet 100%. It would be great if you joined our Slack channel. Thanks!
