-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
83 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,77 @@ | ||
# oplayer-theme-snow | ||
|
||
Offical ui for oplayer | ||
ui plugin for oplayer | ||
|
||
## Usage | ||
|
||
```ts | ||
OUI({ | ||
autoFocus: true, | ||
screenshot: true, | ||
theme: { primaryColor: '#f00' }, | ||
subtitle: { | ||
color: 'hotpink', | ||
fontSize: isMobile ? 16 : 20, | ||
source: [ | ||
{ | ||
name: 'Default', | ||
default: true, | ||
src: 'https://oplayer.vercel.app/君の名は.srt' | ||
} | ||
] | ||
}, | ||
thumbnails: { | ||
src: 'https://oplayer.vercel.app/thumbnails.jpg', | ||
number: 100 | ||
}, | ||
highlight: [ | ||
{ | ||
time: 12, | ||
text: '谁でもいいはずなのに' | ||
}, | ||
{ | ||
time: 34, | ||
text: '夏の想い出がまわる' | ||
}, | ||
{ | ||
time: 58, | ||
text: 'こんなとこにあるはずもないのに' | ||
}, | ||
{ | ||
time: 88, | ||
text: '--终わり--' | ||
} | ||
], | ||
menu: [ | ||
{ | ||
name: 'source', | ||
children: [ | ||
{ | ||
name: 'mp4', | ||
default: true, | ||
value: 'https://oplayer.vercel.app/君の名は.mp4' | ||
}, | ||
{ | ||
name: 'hls', | ||
value: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8' | ||
}, | ||
{ | ||
name: 'dash', | ||
value: 'https://dash.akamaized.net/akamai/bbb_30fps/bbb_30fps.mpd' | ||
} | ||
], | ||
onChange({ value }) { | ||
player.changeSource({ src: value }) | ||
} | ||
} | ||
] | ||
}) | ||
``` | ||
|
||
## Icon | ||
|
||
- [Boy\_\_Yan](https://www.iconfont.cn/collections/detail?cid=40262) | ||
- [1214monkey](https://www.iconfont.cn/collections/detail?spm=a313x.7781069.0.da5a778a4&cid=12086) | ||
- [loop](https://www.iconfont.cn/collections/detail?spm=a313x.7781069.0.da5a778a4&cid=15901) | ||
- [quality](https://www.iconfont.cn/collections/detail?spm=a313x.7781069.0.da5a778a4&cid=13520) | ||
- [speed](https://www.iconfont.cn/collections/detail?spm=a313x.7781069.0.da5a778a4&cid=39216) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5eafeac
There was a problem hiding this comment.
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-git-main-shiyiya.vercel.app
oplayer.vercel.app