add video
This commit is contained in:
1 parent
db9c7e09b9
commit
8ba15c9126
818 files changed
+3979
-2
No files matched your search
@@ -90,6 +90,9 @@ onBeforeUnmount(() => {
|
||||
if (window.screen?.orientation) {
|
||||
window.screen.orientation.removeEventListener("change", onOrientationChanged);
|
||||
}
|
||||
if (document.fullscreenElement) {
|
||||
document.exitFullscreen();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@ const iframe = useTemplateRef("iframe");
|
||||
|
||||
onMounted(() => {
|
||||
const { YT } = window as any;
|
||||
if (YT?.Player) {
|
||||
player.value = new YT.Player("yt-player");
|
||||
if (YT?.Player && iframe.value) {
|
||||
player.value = new YT.Player(iframe.value);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user