# How can i play de video with javascript? ( like autoplay)

**URL:** <https://community.wowza.com/t/how-can-i-play-de-video-with-javascript-like-autoplay/54878>\
**Category:** Wowza Player\
**Created:** [March 26, 2020, 6:36pm UTC](https://community.wowza.com/t/how-can-i-play-de-video-with-javascript-like-autoplay/54878 "2020-03-26T18:36:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luis\_Camacho](https://avatars.discourse-cdn.com/v4/letter/l/838e76/32.png) [@Luis\_Camacho](https://community.wowza.com/u/Luis_Camacho)\
**Post date:** [March 26, 2020, 6:36pm UTC](https://community.wowza.com/t/how-can-i-play-de-video-with-javascript-like-autoplay/54878/1 "2020-03-26T18:36:25Z")

</div>

I would like star the video when user enter to the site, because they have to click on play button, there is a way to do this with javascript? i know autoplay is not avaible any more, but i need it.!! thanks

---

<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:** [March 26, 2020, 6:39pm UTC](https://community.wowza.com/t/how-can-i-play-de-video-with-javascript-like-autoplay/54878/2 "2020-03-26T18:39:48Z")

</div>

Please take a look at this document, some browsers allow autoplay if the video is muted - [https://www.wowza.com/docs/use-autoplay-with-wowza-player](https://www.wowza.com/docs/use-autoplay-with-wowza-player)

---

<div class="post-metadata">

**Author:** ![Luis\_Camacho](https://avatars.discourse-cdn.com/v4/letter/l/838e76/32.png) [@Luis\_Camacho](https://community.wowza.com/u/Luis_Camacho)\
**Post date:** [March 28, 2020, 4:55pm UTC](https://community.wowza.com/t/how-can-i-play-de-video-with-javascript-like-autoplay/54878/3 "2020-03-28T16:55:09Z")

</div>

Hello, this is the way to autoplay a streaming with audio

WowzaPlayer.create(“playerElement”,

{

“license”: “your license”,

“sources”: [{

“sourceURL”: “your source”

},

{

“sourceURL”: “”

}],

“title”: “”,

“description”: “”,

“autoPlay”: true,

“mute”: true,

“volume”: 100

}

).mute(false);
