The examples below are using web components but there are bindings for React, Vue, Svelte, Stencil and Angular. If you want to see how they look check out our Demo.
<vime-player autoplay muted> <vime-video poster="/media/poster.png" cross-origin> <!-- Why `data-src`? Lazy loading. You can always use `src` if you don't need it. --> <source data-src="/media/video.mp4" type="video/mp4" /> <track default kind="subtitles" src="/media/subs/en.vtt" srclang="en" label="English" /> </vime-video> <!-- Loads the default Vime UI. --> <vime-default-ui /> </vime-player>
<!-- Here we are requesting to use the native controls. --> <vime-player autoplay muted controls> <vime-audio cross-origin> <source data-src="/media/audio.mp3" type="audio/mp3" /> </vime-audio> </vime-player>
<!-- Lets add a little splash of color throughout the player. --> <vime-player autoplay muted style="--vm-player-theme: #1873d3"> <!-- Loading a YouTube video. --> <vime-youtube video-id="DyTCOwB0DVw" /> <vime-ui> <vime-click-to-play /> <vime-captions /> <vime-poster /> <vime-spinner /> <vime-default-settings /> <vime-controls pin="bottomLeft" active-duration="2750" full-width> <!-- These are all predefined controls that you can easily customize. You could also build your own controls completely from scratch. --> <vime-playback-control tooltip-direction="right" /> <vime-volume-control /> <vime-time-progress /> <vime-control-spacer /> <vime-caption-control /> <vime-pip-control keys="p" /> <vime-settings-control /> <vime-fullscreen-control keys="f" tooltip-direction="left" /> </vime-controls> </vime-ui> </vime-player>
There are framework specific bindings for:
Keep in mind, that at its core Vime is still simply web components. Even if your framework is not mentioned in the list above, it most likely still supports Vime natively. You can check here if your framework has complete support for web components.
There are also examples for loading and using Vime with:
Vime is forward thinking and built for the modern web. All ES6 Compatible browsers are supported, some of which are listed below.
Documentation can be found at https://vimejs.com.
â�“ Looking for V1 docs? -> https://v1.vimejs.com
Feel free to join our Discord channel if you'd like help with anything related to Vime. Please remember to be respectful and patient as this is a community driven project.
If you'd like to contribute and help in building a better media player for the web, then everything you need to get started can be found in the Contributing Guide.
A huge thanks to our sponsors who support open-source projects like Vime.