@vizor-vr/svelte
v0.2.1
Published
Svelte 5 wrappers for Vizor VR Player
Downloads
79
Maintainers
Readme
@vizor-vr/svelte
Svelte 5 wrappers for the Vizor VR player. Type-safe components using runes.
Install
npm install @vizor-vr/svelte @vizor-vr/playerUsage
<script lang="ts">
import { VzVideo } from '@vizor-vr/svelte';
</script>
<VzVideo src="video.mp4" format="MONO_360" autoplay on:ready={onReady} />The wrappers import and register the underlying custom elements for you. They are client-only — under SvelteKit SSR, guard rendering with {#if browser} (from $app/environment) since the player requires the browser DOM.
Components
VzVideo, VzImg, VzTour, VzCinema, VzLive, VzPlaylist, VzAnnotation, VzCaption.
Security
See the monorepo security policy for how to report vulnerabilities ([email protected]).
License
MIT — see LICENSE.
