I want to use videoask embed in nextjs

  • 27 July 2022
  • 2 replies

I am trying with provided javascript method but I am not getting required output. 

I am using this code in useEffect hook

window.addEventListener('load', () => {
              "kind": "widget",
              "url": "",
              "options": {
                "widgetType": "VideoThumbnailSmall",
                "text": "Primer entreno gratis",
                "backgroundColor": "#D3FF54",
                "position": "bottom-right",
                "widgetTarget": 'body',
                "dismissible": false

But output I am getting is like image below


its appearing bottom left of the page.



Best answer by Grace 28 July 2022, 16:40

View original

2 replies

Userlevel 7
Badge +5

Hey @sonikjim just checking this one for you! 

Userlevel 7
Badge +5

Hey again @sonikjim 

It should work with the widget code from your share and embed tab, are you copying the code directly from there?