# My embaded code does not work anymore

**URL:** <https://community.wowza.com/t/my-embaded-code-does-not-work-anymore/49294>\
**Category:** Wowza Player\
**Created:** [July 28, 2017, 10:07am UTC](https://community.wowza.com/t/my-embaded-code-does-not-work-anymore/49294 "2017-07-28T10:07:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanjay\_Pawar](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@Sanjay\_Pawar](https://community.wowza.com/u/Sanjay_Pawar)\
**Post date:** [July 28, 2017, 10:07am UTC](https://community.wowza.com/t/my-embaded-code-does-not-work-anymore/49294/1 "2017-07-28T10:07:29Z")

</div>

I am using this code in my web form but this is not working

$(’.playerElement’).show(); $(’.playerElement’).prepend(‘Loading…’); WowzaPlayer.create(‘playerElement’, { “license”: “”, “title”: “Wowza Player”, “description”: “This is my Wowza Player Video description.”, “sourceURL”: “[http://localhost:54645](http://localhost:54645):/Video/Kronopress/f8964486-83db-4e9f-8e37-15dee302ca88.mp4”, “autoPlay”: true, });

---

<div class="post-metadata">

**Author:** ![Alex\_C](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Alex\_C](https://community.wowza.com/u/Alex_C)\
**Post date:** [July 29, 2017, 3:48am UTC](https://community.wowza.com/t/my-embaded-code-does-not-work-anymore/49294/2 "2017-07-29T03:48:10Z")

</div>

Hello @Sanjay Pawar,

Looking at the code, it does not look like something you would get from Wowza player builder.

Try accessing it [here](http://player.wowza.com/en/builder), get the HLS url from Wowza Engine and then get the embed code again. See if this would resolve the issue.

Note: Issues I see in the code you have now:

1. localhost - this should be either your domain or ip address

2. the ulr ends in .mp4 but it should end in /playlist.m3u8

Hope this helps,

Alex C.

---

<div class="post-metadata">

**Author:** ![Sanjay\_Pawar](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@Sanjay\_Pawar](https://community.wowza.com/u/Sanjay_Pawar)\
**Post date:** [July 29, 2017, 7:28am UTC](https://community.wowza.com/t/my-embaded-code-does-not-work-anymore/49294/3 "2017-07-29T07:28:35Z")

</div>

Yes, But I have copied the code again from wowza builder but it displays the black screen only, It does not play the video. Please have a look this code which I get from wowza builder.

WowzaPlayer.create(‘playerElement’, { “license”: “PLAY1-kk8kH-RmBkN-kJkcJ-7najM-Xrxhc”, “title”: “Sloode%20Player”, “description”: “”, “sourceURL”: “[http://live.sloode.com:1935/canale21\_vod/mp4:sample.mp4/playlist.m3u8](http://live.sloode.com:1935/canale21_vod/mp4:sample.mp4/playlist.m3u8)”, “autoPlay”: false, “volume”: “75”, “mute”: false, “loop”: false, “audioOnly”: false, “uiShowQuickRewind”: true, “uiQuickRewindSeconds”: “30” }

---

<div class="post-metadata">

**Author:** ![Alex\_C](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Alex\_C](https://community.wowza.com/u/Alex_C)\
**Post date:** [July 30, 2017, 2:32am UTC](https://community.wowza.com/t/my-embaded-code-does-not-work-anymore/49294/4 "2017-07-30T02:32:27Z")

</div>

Looks like it’s not the embed code that does not work, the application for the stream is not configured correctly. When I try to play that url, I get a cross origin error.

I would suggest [opening a new support ticket](https://www.wowza.com/support/open-ticket) so our support team can take a look at your Wowza Engine configuration for further troubleshooting.

Alex C.
