Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
feat: use super-media-element
Browse files Browse the repository at this point in the history
  • Loading branch information
luwes committed Jun 7, 2022
1 parent 422bb23 commit 5788921
Show file tree
Hide file tree
Showing 9 changed files with 6,501 additions and 3,048 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn test
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm ci
- run: npm run build
- run: npm test
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,20 @@ One of the goals was to have `<wistia-video>` seamlessly integrate with [Media C
npm install wistia-video-element --save
```

Or yarn

```bash
yarn add wistia-video-element
```

Include in your app javascript (e.g. src/App.js)

```js
import 'wistia-video-element';
```

This will register the custom elements with the browser so they can be used as HTML.

## Related

- [Media Chrome](https://github.com/muxinc/media-chrome) Your media player's dancing suit. 🕺
- [`<mux-video>`](https://github.com/muxinc/elements/tree/main/packages/mux-video) A Mux-flavored HTML5 video element w/ hls.js and Mux data builtin.
- [`<youtube-video>`](https://github.com/muxinc/youtube-video-element) A web component for the YouTube player.
- [`<jwplayer-video>`](https://github.com/luwes/jwplayer-video-element) A web component for the JW player.
- [`<hls-video>`](https://github.com/muxinc/hls-video-element) A web component for playing HTTP Live Streaming (HLS) videos.
- [`castable-video`](https://github.com/muxinc/castable-video) Cast your video element to the big screen with ease!
- [`<mux-player>`](https://github.com/muxinc/elements/tree/main/packages/mux-player) The official Mux-flavored video player web component.
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
}
wistia-video {
aspect-ratio: 16 / 9;
background: #000;
}
</style>
<script type="module" src="./dist/wistia-video-element.js"></script>
Expand All @@ -26,6 +27,8 @@ <h1>&lt;wistia-video&gt;</h1>
<wistia-video
controls
src="https://wesleyluyten.wistia.com/medias/oifkgmxnkb"
loop
muted
></wistia-video>
</body>
</html>
Loading

0 comments on commit 5788921

Please sign in to comment.