Commit 4f2191dc9f2766746664534e57c1f0bfbafd809d
1 parent
c4fc4abf
增加liveplayer播放器
Showing
3 changed files
with
11 additions
and
0 deletions
Too many changes to show.
To preserve performance only 3 of 6 files are displayed.
web_src/build/webpack.dev.conf.js
| @@ -65,6 +65,11 @@ const devWebpackConfig = merge(baseWebpackConfig, { | @@ -65,6 +65,11 @@ const devWebpackConfig = merge(baseWebpackConfig, { | ||
| 65 | to: config.dev.assetsSubDirectory, | 65 | to: config.dev.assetsSubDirectory, |
| 66 | ignore: ['.*'] | 66 | ignore: ['.*'] |
| 67 | } | 67 | } |
| 68 | + ]), | ||
| 69 | + new CopyWebpackPlugin([ | ||
| 70 | + { from: 'node_modules/@liveqing/liveplayer/dist/component/crossdomain.xml'}, | ||
| 71 | + { from: 'node_modules/@liveqing/liveplayer/dist/component/liveplayer.swf'}, | ||
| 72 | + { from: 'node_modules/@liveqing/liveplayer/dist/component/liveplayer-lib.min.js', to: config.build.assetsSubDirectory + '/js/'}, | ||
| 68 | ]) | 73 | ]) |
| 69 | ] | 74 | ] |
| 70 | }) | 75 | }) |
web_src/build/webpack.prod.conf.js
| @@ -115,6 +115,11 @@ const webpackConfig = merge(baseWebpackConfig, { | @@ -115,6 +115,11 @@ const webpackConfig = merge(baseWebpackConfig, { | ||
| 115 | to: config.build.assetsSubDirectory, | 115 | to: config.build.assetsSubDirectory, |
| 116 | ignore: ['.*'] | 116 | ignore: ['.*'] |
| 117 | } | 117 | } |
| 118 | + ]), | ||
| 119 | + new CopyWebpackPlugin([ | ||
| 120 | + { from: 'node_modules/@liveqing/liveplayer/dist/component/crossdomain.xml'}, | ||
| 121 | + { from: 'node_modules/@liveqing/liveplayer/dist/component/liveplayer.swf'}, | ||
| 122 | + { from: 'node_modules/@liveqing/liveplayer/dist/component/liveplayer-lib.min.js', to: config.build.assetsSubDirectory + '/js/'}, | ||
| 118 | ]) | 123 | ]) |
| 119 | ] | 124 | ] |
| 120 | }) | 125 | }) |
web_src/index.html
| @@ -11,6 +11,7 @@ | @@ -11,6 +11,7 @@ | ||
| 11 | <body> | 11 | <body> |
| 12 | <script type="text/javascript" src="./static/js/jessibuca/jessibuca.js"></script> | 12 | <script type="text/javascript" src="./static/js/jessibuca/jessibuca.js"></script> |
| 13 | <script type="text/javascript" src="./static/js/EasyWasmPlayer.js"></script> | 13 | <script type="text/javascript" src="./static/js/EasyWasmPlayer.js"></script> |
| 14 | + <script type="text/javascript" src="./static/js/liveplayer-lib.min.js"></script> | ||
| 14 | <script type="text/javascript" src="./static/js/ZLMRTCClient.js"></script> | 15 | <script type="text/javascript" src="./static/js/ZLMRTCClient.js"></script> |
| 15 | <script type="text/javascript" src="./static/js/mapConfig.js"></script> | 16 | <script type="text/javascript" src="./static/js/mapConfig.js"></script> |
| 16 | <div id="app"></div> | 17 | <div id="app"></div> |