Skip to content

Commit

Permalink
chore(doc): update
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya committed Jan 13, 2024
1 parent f59916a commit 8de6dc8
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

## Who use OPlayer?

- [UPV](https://onime.netlify.app) : free anime no ad
- [NGEWIBU.TV](https://ngewibu.tv/) : Nonton Anime Sub Indo | Nonton Anime Subtitle Indonesia Gratis
- [Animex](https://www.animex.live/) : Watch Anime for free in HD quality with English subbed or dubbed.
- [UPV](https://onime.netlify.app) : free animes no ad
- **Feel free to submit yours in [Let me know!](https://github.com/shiyiya/oplayer/discussions/new?category=show-and-tell)**

## Feature
Expand All @@ -33,10 +33,10 @@
- Danmaku
- Screenshot
- Hotkeys
- Thumbnails (spirit or vtt)
- Thumbnails (spirit or [vtt](https://oplayer.vercel.app/plugins/vtt-thumbnails))
- Subtitles (formats: SRT, WEBVTT with HTML tags support; subtitles from HLS; multiple subtitles for video)
- Highlight Marker
- [Playlist](./packages/plugins/README.md#playlist)
- [Chromecast](https://oplayer.vercel.app/plugins/chromecast)
- [Playlist](https://oplayer.vercel.app/plugins/playlist)
- ... and much more!

## Support
Expand Down
20 changes: 20 additions & 0 deletions packages/docs/src/pages/plugins/chromecast.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Chromecast

```shell
npm i @oplayer/plugins
```

```js
import { chromecast } from '@oplayer/plugins'
```

```html
<!-- Chromecast -->
<script src="https://cdn.jsdelivr.net/npm/@oplayer/plugins@latest/dist/chromecast.min.js"></script>
```

### Chromecast

```js
Player.make('#oplayer').use([chromecast]).create()
```
16 changes: 12 additions & 4 deletions packages/plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ npm i @oplayer/plugins
```

```js
import { PlaylistPlugin, vttThumbnails, chormecast, ad } from '@oplayer/plugins'
import { PlaylistPlugin, vttThumbnails, chromecast, ad } from '@oplayer/plugins'
```

```html
Expand All @@ -18,8 +18,8 @@ import { PlaylistPlugin, vttThumbnails, chormecast, ad } from '@oplayer/plugins'
<!-- VTT Thumbnails -->
<script src="https://cdn.jsdelivr.net/npm/@oplayer/plugins@latest/dist/vttThumbnails.min.js"></script>

<!-- Chormecast -->
<script src="https://cdn.jsdelivr.net/npm/@oplayer/plugins@latest/dist/chormecast.min.js"></script>
<!-- Chromecast -->
<script src="https://cdn.jsdelivr.net/npm/@oplayer/plugins@latest/dist/chromecast.min.js"></script>

<!-- AD -->
<script src="https://cdn.jsdelivr.net/npm/@oplayer/plugins@latest/dist/ad.min.js"></script>
Expand Down Expand Up @@ -86,6 +86,14 @@ player.context.playlist.changeSourceList([]) //change playlist sources

![](./vtt.png)

### Chormecast
```js
Player.make('#oplayer')
.use([vttThumbnails({ src: 'your-file-path' })])
.create()
```

### Chromecast

Player.make('#oplayer').use([chromecast]).create()

### AD

1 comment on commit 8de6dc8

@vercel
Copy link

@vercel vercel bot commented on 8de6dc8 Jan 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

oplayer – ./

oplayer-shiyiya.vercel.app
oplayer.vercel.app
oplayer-git-main-shiyiya.vercel.app

Please sign in to comment.