npm install react-dplayer -D Usage commonjs importDPlayerfrom"react-dplayer";classExampleextendsComponent{render(){return(<DPlayeroptions={{video:{url:'http://static.smartisanos.cn/common/video/t1-ui.mp4'}}}/>)}
video: { url: 'demo.m3u8', type: 'customHls', customType: { customHls: function (video, player) { const hls = new Hls(); hls.loadSource(video.src); hls.attachMedia(video); }, }, }, subtitle: { url: 'dplayer.vtt' } }); ...
移动端播放时,会有一个暂停按钮一直在屏幕上。 重现方法: 打开 demo https://codesandbox.io/s/react-dplayer-demo-i61n5 通过 devtools 将界面设置手机,刷新 播放,即可看到暂停图标
alitajs/react-dplayerPublic Notifications Fork0 Star2 LabelsMilestones New issue Welcome to issues! Issues are used to track todos, bugs, feature requests, and more. As issues are created, they’ll appear here in a searchable and filterable list. To get started, you shouldcreate an issue. ...
MoePlayer / react-dplayer Public archive Notifications Fork 21 Star 149 Code Issues Pull requests 9 Actions Projects Security Insights could you please update dplayer to version v1.26.0 #149 Closed amyhuangxbd opened this issue Oct 4, 2020· 1 comment ...
MoePlayer/react-dplayerPublic archive NotificationsYou must be signed in to change notification settings Fork21 Star149 Code Issues Pull requests9 Actions Projects Security Insights Additional navigation options Files master babelrc example src .browserslistrc ...
dist/DPlayer.min.js" /> ReactDOM.render(React.createElement( 'div', { style: { width: 800, margin: '0px auto' } }, React.createElement(ReactDPlayer, {options:{video: {url: 'http://static.smartisanos.cn/common/video/t1-ui.mp4'} }}) ), document.getElementById('example'))...
npm install react-dplayer -D Usage commonjs importDPlayerfrom"react-dplayer";classExampleextendsComponent{render(){return(<DPlayeroptions={{video:{url:'http://static.smartisanos.cn/common/video/t1-ui.mp4'}}}/>)}} browser ReactDOM.render(React.createElement('div',{style:{width...