# Play WebRTC on html5 video tag

**URL:** <https://community.wowza.com/t/play-webrtc-on-html5-video-tag/55315>\
**Category:** Wowza Streaming Engine\
**Tags:** webrtc\
**Created:** [June 2, 2020, 5:25pm UTC](https://community.wowza.com/t/play-webrtc-on-html5-video-tag/55315 "2020-06-02T17:25:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavel\_Tsukanov1](https://avatars.discourse-cdn.com/v4/letter/p/eb8c5e/32.png) [@Pavel\_Tsukanov1](https://community.wowza.com/u/Pavel_Tsukanov1)\
**Post date:** [June 2, 2020, 5:25pm UTC](https://community.wowza.com/t/play-webrtc-on-html5-video-tag/55315/1 "2020-06-02T17:25:57Z")

</div>

I launched WebRTC examples successfully on my server. Publish and Play examples works. Right now i want to play webRTC streams via html5 video tag. I checked doc at [https://www.wowza.com/docs/how-to-play-video-using-the-html5-video-tag](https://www.wowza.com/docs/how-to-play-video-using-the-html5-video-tag) and looks like my src should be [http://{server\_IP}:1935/webrtc/myStream/playlist.m3u8](https://3.88.167.119:1935/webrtc/myStream/playlist.m3u8) . i.e. . But this source does not work, I can download a file from [http://{server\_IP}:1935/webrtc/myStream/playlist.m3u8](https://3.88.167.119:1935/webrtc/myStream/playlist.m3u8)

Could you help me to figure out what is wrong.

PS. My server uses self-signed certificate

---

<div class="post-metadata">

**Author:** ![Amara\_Graham](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/amara_graham/32/381_2.png) [@Amara\_Graham](https://community.wowza.com/u/Amara_Graham)\
**Post date:** [June 2, 2020, 6:45pm UTC](https://community.wowza.com/t/play-webrtc-on-html5-video-tag/55315/2 "2020-06-02T18:45:52Z")

</div>

Sounds like you are trying to do playback in HLS, which means you’ll need to transcode the audio from Opus (audio captured in browser via WebRTC) to AAC. [https://www.wowza.com/docs/how-to-transcode-only-the-audio-channel-of-an-incoming-stream](https://www.wowza.com/docs/how-to-transcode-only-the-audio-channel-of-an-incoming-stream)

---

<div class="post-metadata">

**Author:** ![Pavel\_Tsukanov1](https://avatars.discourse-cdn.com/v4/letter/p/eb8c5e/32.png) [@Pavel\_Tsukanov1](https://community.wowza.com/u/Pavel_Tsukanov1)\
**Post date:** [June 2, 2020, 7:43pm UTC](https://community.wowza.com/t/play-webrtc-on-html5-video-tag/55315/3 "2020-06-02T19:43:09Z")

</div>

I was able to play my stream via address [https://{server\_IP}/webrtc/myStream/playlist.m3u8](https://3.88.167.119/webrtc/myStream_360p/playlist.m3u8) using [https://bitmovin.com/demos/stream-test](https://bitmovin.com/demos/stream-test) . But I do not hear sound. Any idea why?

---

<div class="post-metadata">

**Author:** ![Amara\_Graham](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/amara_graham/32/381_2.png) [@Amara\_Graham](https://community.wowza.com/u/Amara_Graham)\
**Post date:** [June 2, 2020, 7:48pm UTC](https://community.wowza.com/t/play-webrtc-on-html5-video-tag/55315/4 "2020-06-02T19:48:37Z")

</div>

You are not hearing sound because WebRTC audio is Opus, HLS (via m3u8 playlist) needs AAC per the [spec](https://developer.apple.com/documentation/http_live_streaming/hls_authoring_specification_for_apple_devices). Please see my previous response for steps to transcode to AAC.

---

<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 4, 2020, 7:49pm UTC](https://community.wowza.com/t/play-webrtc-on-html5-video-tag/55315/5 "2020-06-04T19:49:33Z")

</div>

Due to potential issues, we do not suggest you use self-signed certs with WebRTC. Are you able to try it with a free Streamlock SSL cert instead through Wowza @Pavel Tsukanov?

[https://www.wowza.com/docs/how-to-get-ssl-certificates-from-the-streamlock-service](https://www.wowza.com/docs/how-to-get-ssl-certificates-from-the-streamlock-service)
