Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getPlayerInstance() Does not Return player instance #47

Open
GardenRouteGold opened this issue Jan 6, 2022 · 0 comments
Open

getPlayerInstance() Does not Return player instance #47

GardenRouteGold opened this issue Jan 6, 2022 · 0 comments

Comments

@GardenRouteGold
Copy link

GardenRouteGold commented Jan 6, 2022

<youtube autoplay class="rounded-borders" previewImageSize="hqdefault" :src="videoSource" ref="youtube" enablejsapi injectPlayerScript @init:player="onPlayerInit" ></youtube>

            `      let self = this;
  // console.info(params.instance.stopVideo());
  // console.info(params.instance.loadVideoById("4NJlUribp3c", 10));
  // console.info(self.$refs.youtube.playerInstance.pauseVideo());
  let ytInstance = self.$refs.youtube.getPlayerInstance();
  console.info(
    ytInstance.loadVideoById("bHQqvYy5KYo", 5, "large")
  );
  console.info(getMethods(ytInstance));
  // console.info(ytInstance.playerInfo());
  ytInstance.loadVideoById("4NJlUribp3c", 10);`
  

  I can't seem to get access to the actual YT.Player instance 

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant