├── public
├── favicon.ico
├── video.flv
├── video.mp4
└── index.html
├── src
├── assets
│ └── logo.png
├── main.js
├── App.vue
└── components
│ └── LivePlayerDemo.vue
├── babel.config.js
├── .gitignore
├── README.md
├── vue.config.js
└── package.json
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/livegbs/liveplayer-vc/HEAD/public/favicon.ico
--------------------------------------------------------------------------------
/public/video.flv:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/livegbs/liveplayer-vc/HEAD/public/video.flv
--------------------------------------------------------------------------------
/public/video.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/livegbs/liveplayer-vc/HEAD/public/video.mp4
--------------------------------------------------------------------------------
/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/livegbs/liveplayer-vc/HEAD/src/assets/logo.png
--------------------------------------------------------------------------------
/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/cli-plugin-babel/preset'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/src/main.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import App from './App.vue'
3 |
4 | Vue.config.productionTip = false
5 |
6 | new Vue({
7 | render: h => h(App),
8 | }).$mount('#app')
9 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 | # local env files
6 | .env.local
7 | .env.*.local
8 |
9 | # Log files
10 | npm-debug.log*
11 | yarn-debug.log*
12 | yarn-error.log*
13 | pnpm-debug.log*
14 |
15 | # Editor directories and files
16 | .idea
17 | .vscode
18 | *.suo
19 | *.ntvs*
20 | *.njsproj
21 | *.sln
22 | *.sw?
23 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # liveplayer-vc
2 |
3 | LivePlayer H5 播放器, 使用 vue-cli 集成示例
4 |
5 | ## Project setup
6 | ```
7 | yarn install
8 | ```
9 |
10 | ### Compiles and hot-reloads for development
11 | ```
12 | yarn serve
13 | ```
14 |
15 | ### Compiles and minifies for production
16 | ```
17 | yarn build
18 | ```
19 |
20 | ### Lints and fixes files
21 | ```
22 | yarn lint
23 | ```
24 |
25 | ### Customize configuration
26 | See [Configuration Reference](https://cli.vuejs.org/config/).
27 |
--------------------------------------------------------------------------------
/vue.config.js:
--------------------------------------------------------------------------------
1 | const CopyWebpackPlugin = require('copy-webpack-plugin');
2 |
3 | module.exports = {
4 | configureWebpack: {
5 | plugins: [
6 | new CopyWebpackPlugin([
7 | { from: 'node_modules/@liveqing/liveplayer/dist/component/crossdomain.xml'},
8 | { from: 'node_modules/@liveqing/liveplayer/dist/component/liveplayer-lib.min.js', to: 'js/'},
9 | { from: 'node_modules/@liveqing/liveplayer/dist/component/liveplayer.swf'}
10 | ])
11 | ]
12 | }
13 | }
--------------------------------------------------------------------------------
/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |