Setting up single-player tests before adding spinner

The tests that you did do using jsitor, every single one of them are gone.

It turns out, codes don’t stay saved inside jsitor.

This code here I believe I put together from this post.

https://jsfiddle.net/2vs7d95g/

 function onPlayerReady(event) {
    const iframe = player.h;
    iframe.dispatchEvent(events.afterPlayerReady);
  }

    const iframe = player.h;
    const eventHandler = eventHandlers.afterPlayerReady;
    iframe.addEventListener("afterPlayerReady", eventHandler);
  }

The code that I put together using this: https://jsfiddle.net/1bow0y8x/1/

 function getIframe(player) {
    return player.h;
  }

That was this post:

I think those 2 codes I made, which are nearly identical, I used the instructions from the single player code examples, which is what is being used in this post, a single video code.

1 Like