Comments (2)
播放器是响应式布局,在小屏幕可以自己设置对应屏幕尺寸的布局,默认配置如下。https://nplayer.js.org/docs/responsive
import Player from 'nplayer'
const player = new Player({
bpControls: { // 默认值
650: [
['play', 'progress', 'time', 'web-fullscreen', 'fullscreen'],
[],
['spacer', 'airplay', 'settings'],
]
}
})
如果你想展示输入框和设置,可以在布局里面添加 danmaku-send
和 danmaku-settings
。
const player = new Player({
bpControls: { // 默认值
650: [
['play', 'danmaku-send'],
[],
['spacer', 'airplay', 'settings'],
]
}
})
from nplayer.
感谢解答 @woopen
from nplayer.
Related Issues (20)
- 问题反馈:全屏时状态栏无法隐藏。
- 请问支持h264,h265,AV1编解码吗?AAC,MP3音频解码?协议支持RTMP和webRTC不? HOT 1
- 请问播放器在IOS手机上,音量调节不可滑动。清晰度设置在手机为啥不显示?浏览器显示自动,可切换清晰度,手机不显示直接不显示,如何手机横屏显示呢? HOT 11
- 流媒体无法展示新增弹幕 HOT 2
- 是否支持SSR渲染 ? 我看到说是支持SSR, 能否给个nuxt.js的使用例子 HOT 4
- 添加 markers 功能,可以在进度条上输入自定义文字 HOT 2
- 使用hls播放直播流,IOS移动端播放不了 HOT 10
- 请问可以使用在普通HTML的<script>脚本中吗? HOT 3
- 视频进度条缩略图有偏差,以及重复显示缩略图 HOT 5
- 视频点击全屏后如何实现视频横向播放?
- iPad可以播放,但是iPhone无法播放 HOT 1
- 网页全屏有些问题
- 请问支持websocket拉流吗
- 不能隐藏控制条吗
- permission denied
- HLS模式下,如何改变播放器的状态
- 有没有打赏码呀
- 弹幕bug HOT 4
- vue demo request
- 使用vite项目打包后在服务器端播放报错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nplayer.