Movatterモバイル変換


[0]ホーム

URL:


Looking for the old docs? Go here
K
GitHub
Twitter
Theme
K

Getting Started

JavaScript Installation Guide

Instructions to get your player installed and on-screen using JavaScript.

1. Select Framework

Section titled 1. Select Framework
JavaScript
Web Components

2. Select Provider

Section titled 2. Select Provider

3. Select Styling

Section titled 3. Select Styling
A layout refers to the arrangement and presentation of various player components. The CSS andTailwind CSS options below are if you want to style components from scratch and build your ownlayout. The Default Theme option is if you want to build your own layout on top of our componentstyles. Finally, the Default and Plyr layouts are our production-ready templates to get you up andrunning quickly.

4. Install Method

Section titled 4. Install Method
NPM
CDN
terminal

5. Check Support

Section titled 5. Check Support

Ensure the following browser support table is suitable for your application. We’ve built thelibrary for the modern web; thus, we try to avoid bloated polyfills and outdated environments asmuch as possible. At the moment, we only support browsers that fully implement theCustom Elements V1 spec.

INFO

We support at minimum ~94.18% of users tracked on caniuse.

6. Import Styles

Section titled 6. Import Styles
js

7. Create Player

Section titled 7. Create Player
player.js

Thetarget config option is a target element which can be a CSS string selector or aHTMLElement.The target can be any element but if it’s a<audio>,<video>, or<iframe> element it will bereplaced and enhanced (i.e., progressive enhancement).

Props can also be set on the target element using data attributes like so:

8. Next Steps

Section titled 8. Next Steps

Lastly, remember you’re not alone. You can reach out for help or to talk with other developers usingVidstack:


Next
Introduction

[8]ページ先頭

©2009-2025 Movatter.jp