Skip to content

Commit

Permalink
feat: nplayer-react component support deal stream media
Browse files Browse the repository at this point in the history
  • Loading branch information
haianweifeng committed Dec 2, 2021
1 parent 302920e commit 212612e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions scripts/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ module.exports = env => {
entry: ['webpack-dev-server/client', path.resolve(pkgDir, 'src', 'index.ts')],

devServer: {
static: [fixtureDir, path.resolve(__dirname, '..', 'packages')],
// contentBase: [fixtureDir, path.resolve(__dirname, '..', 'packages')],
// watchContentBase: true,
contentBase: [fixtureDir, path.resolve(__dirname, '..', 'packages')],
watchContentBase: true,
liveReload: true,
// injectClient: false,
injectClient: false,
host: '0.0.0.0'
},

Expand Down
2 changes: 1 addition & 1 deletion website/docs/ecosystem/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function App() {
className=" "
style={{ }}
options={{ src: url }}
onStreamLoad: handleStreamLoad,
onStreamLoad={handleStreamLoad}
/>
</div>
);
Expand Down

0 comments on commit 212612e

Please sign in to comment.