Skip to content

Commit

Permalink
doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya committed Jul 29, 2024
1 parent 4dd967c commit a6f564d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
- **Picture-in-Picture** - supports picture-in-picture mode
- **Multiple captions** - support for multiple caption tracks(SRT, WEBVTT)
- **i18n support** - support for internationalization of controls
- **Preview thumbnails** - support for displaying preview thumbnails (spirit or [vtt](https://oplayer.vercel.app/plugins/vtt-thumbnails))
- **Preview thumbnails** - support for displaying preview thumbnails (spirit or [vtt](https://oplayer.vercel.app/docs/plugins/vtt-thumbnails))
- **No frameworks** - written in "vanilla" JavaScript, no dependencies required
- **[Chromecast](https://oplayer.vercel.app/plugins/chromecast)** - cast video to your device
- **[AirPlay](https://oplayer.vercel.app/plugins/airplay)** - cast video to apple device
- **[Playlist](https://oplayer.vercel.app/plugins/playlist)** - supports playlist list ui
- **[Chromecast](https://oplayer.vercel.app/docs/plugins/chromecast)** - cast video to your device
- **[AirPlay](https://oplayer.vercel.app/docs/plugins/airplay)** - cast video to apple device
- **[Playlist](https://oplayer.vercel.app/docs/plugins/playlist)** - supports playlist list ui
- **[Danmaku](https://oplayer.vercel.app/danmaku)** - biu biu biu ~
- **... and much more!**

Expand Down
4 changes: 4 additions & 0 deletions packages/docs/src/pages/docs/guide/start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Player.make('#oplayer', {
<Tab>
```html filename="app.html"
<!-- Includes ui & hls & dash & mpegts -->
<!-- Lazy load hls.js dashjs ... -->
<script src="https://cdn.jsdelivr.net/npm/@oplayer/full@latest/dist/index.min.js"></script>
<script>
OPlayer.make('#oplayer', {
Expand All @@ -57,12 +58,15 @@ Player.make('#oplayer', {
OUI(),
OHls({
forceHLS: true,
// lazy load
library: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/hls.min.js'
}),
ODash({ library: 'https://cdn.dashjs.org/latest/dash.all.min.js' }),
OMpegts({ library: 'https://cdn.jsdelivr.net/npm/mpegts.js@latest/dist/mpegts.min.js' }),
])
.create()
</script>
```
</Tab>
Expand Down
3 changes: 3 additions & 0 deletions packages/torrent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@

## Install

**MUST [email protected]**

```bash
# [email protected] !!
npm i @oplayer/core @oplayer/torrent [email protected]
```

Expand Down

0 comments on commit a6f564d

Please sign in to comment.