Nossie
Nossie
NNuxt
Created by Nossie on 9/11/2024 in #❓・help
Youtube SDK
after the --force upgrade everything works ! thanks @harlan
29 replies
NNuxt
Created by Nossie on 9/11/2024 in #❓・help
Youtube SDK
i will give that a try
29 replies
NNuxt
Created by Nossie on 9/11/2024 in #❓・help
Youtube SDK
also cant wait untill its out of beta 🙂
29 replies
NNuxt
Created by Nossie on 9/11/2024 in #❓・help
Youtube SDK
i will post an update in this channel ! keep up the good work !!
29 replies
NNuxt
Created by Nossie on 9/11/2024 in #❓・help
Youtube SDK
mmm 🤔 i thought i updated latest nuxt version , but thanks for the tip !
29 replies
NNuxt
Created by Nossie on 9/11/2024 in #❓・help
Youtube SDK
i also going to try later this week why im getting the error with unhead after i add nuxt-scripts to my other project
29 replies
NNuxt
Created by Nossie on 9/11/2024 in #❓・help
Youtube SDK
this will work
const player = ref(null);

onLoaded(async ({ YT }) => {
// we need to wait for the internal YouTube APIs to be ready
const YouTube = await YT;
await new Promise<void>((resolve) => {
if (typeof YT.Player === "undefined") YouTube.ready(resolve);
else resolve();
});
// load the API
player.value = new YT.Player(video.value, {
videoId: props.videoId,
});
});
const player = ref(null);

onLoaded(async ({ YT }) => {
// we need to wait for the internal YouTube APIs to be ready
const YouTube = await YT;
await new Promise<void>((resolve) => {
if (typeof YT.Player === "undefined") YouTube.ready(resolve);
else resolve();
});
// load the API
player.value = new YT.Player(video.value, {
videoId: props.videoId,
});
});
29 replies
NNuxt
Created by Nossie on 9/11/2024 in #❓・help
Youtube SDK
the player.playVideo wont work then
29 replies
NNuxt
Created by Nossie on 9/11/2024 in #❓・help
Youtube SDK
let player; should be const player = ref(null);
29 replies
NNuxt
Created by Nossie on 9/11/2024 in #❓・help
Youtube SDK
nice ! there is a error on the sdk example for youtube scripts
29 replies
NNuxt
Created by Nossie on 9/11/2024 in #❓・help
Youtube SDK
ok for some reason i got it working on a new fresh install, i will check ik out later in my current project if it will work, also @harlan are you a member of nuxt-scripts ?
29 replies
NNuxt
Created by Nossie on 9/11/2024 in #❓・help
Youtube SDK
let me check
29 replies
NNuxt
Created by Nossie on 9/11/2024 in #❓・help
Youtube SDK
well thats the problem i couldt see it work because after the npx add module ( on fresh nuxt ) it already gives error out of the box so didnt see it working , i can however take a look at the code
29 replies
NNuxt
Created by Nossie on 9/11/2024 in #❓・help
Youtube SDK
@harlan i already tried nuxt scripts but it is broken, when added unhead gives errors on tagElements cannot be mapped ( also nuxt scripts is in beta .. ), so not usable
29 replies
NNuxt
Created by Nossie on 9/11/2024 in #❓・help
Youtube SDK
also it does works when navigation to another page and back it shows the rest , but on initial load or refresh it dont
29 replies
NNuxt
Created by Nossie on 7/9/2024 in #❓・help
Nuxt 3 + GSAP
Fixed it with a for each loop an keeping track of the index
2 replies
NNuxt
Created by Nossie on 6/26/2024 in #❓・help
JsonToken
nvm figured it out with state management
2 replies