# I would like assistance in confirming if the wowza publishing url is accurate or the line of codes are wrong

**URL:** https://community.wowza.com/t/i-would-like-assistance-in-confirming-if-the-wowza-publishing-url-is-accurate-or-the-line-of-codes-are-wrong/96295
**Category:** Wowza Video (Formerly Streaming Cloud)
**Tags:** webrtc
**Created:** [July 10, 2023, 2:11am UTC](https://community.wowza.com/t/i-would-like-assistance-in-confirming-if-the-wowza-publishing-url-is-accurate-or-the-line-of-codes-are-wrong/96295 "2023-07-10T02:11:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![a446b59ce2c5072eb296](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@a446b59ce2c5072eb296](https://community.wowza.com/u/a446b59ce2c5072eb296)
#### Post date: [July 10, 2023, 2:11am UTC](https://community.wowza.com/t/i-would-like-assistance-in-confirming-if-the-wowza-publishing-url-is-accurate-or-the-line-of-codes-are-wrong/96295/1 "2023-07-10T02:11:25Z")

</div>

Publish HLS Video and Mic Audio to Wowza Streaming Cloud

 Start Streaming Stop Streaming document.addEventListener("DOMContentLoaded", function () { const hlsVideo = document.getElementById("myVideo"); //const webcamVideo = document.getElementById("webcam-video");

```
  // Load HLS video stream
  if (Hls.isSupported()) {
    const hls = new Hls();
    hls.loadSource("MY_HLS_VIDEO_LINK");
    hls.attachMedia(hlsVideo);
  } else if (hlsVideo.canPlayType("application/vnd.apple.mpegurl")) {
    hlsVideo.src = "MY_HLS_VIDEO_LINK";
  }

});
</script>

```
