Skip to content

Commit

Permalink
docs: upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
oyuyue committed May 17, 2021
1 parent dbb52d9 commit 2a926c5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/08e3f1086b5748aaa745ca655ecd1c6a)](https://www.codacy.com/gh/woopen/nplayer/dashboard?utm_source=github.com&utm_medium=referral&utm_content=woopen/nplayer&utm_campaign=Badge_Grade)
[![Test](https://github.com/woopen/nplayer/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/woopen/nplayer/actions/workflows/test.yml)

NPlayer 是由 Typescript 加 Sass 编写,无任何第三方运行时依赖,兼容 IE11,支持移动端、支持 SSR、支持直播。高度可定制,所有图标、主题色等都可以替换,并且提供了内置组件方便二次开发。你可以自定义任意多个断点,不仅仅是兼容移动端,只要愿意,你可以非常轻松的兼容手机竖屏、手机横屏、平板等设备。它还拥有插件系统,弹幕功能就是使用插件形式提供,使用时按需引入即可。该播放器还可以接入任何流媒体,如 hls、dash 和 flv 等。欢迎 Star~
NPlayer 是由 Typescript 加 Sass 编写,无任何第三方运行时依赖,兼容 IE11,支持移动端、支持 SSR、支持直播。高度可定制,所有图标、主题色等都可以替换,并且提供了内置组件方便二次开发。你可以自定义任意多个断点,不仅仅是兼容移动端,只要愿意,你可以非常轻松的兼容手机竖屏、手机横屏、平板等设备。它还拥有插件系统,弹幕功能就是使用插件形式提供,使用时按需引入即可。该播放器还可以接入任何流媒体,如 hls、dash 和 flv 等。欢迎 Star~

![](website/static/img/preview.jpg)

Expand Down
21 changes: 12 additions & 9 deletions website/docs/examples/quantity-switch.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,18 @@ const Quantity = {
// 2. 我们把它放到 spacer 后面
window.player = new Player({
controls: [
"play",
"volume",
"time",
"spacer",
Quantity,
"airplay",
"settings",
"web-fullscreen",
"fullscreen"
[
"play",
"volume",
"time",
"spacer",
Quantity,
"airplay",
"settings",
"web-fullscreen",
"fullscreen"
],
["progress"]
]
})

Expand Down

0 comments on commit 2a926c5

Please sign in to comment.