Skip to content

Commit

Permalink
添加效果展示
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyi501 committed Jul 18, 2019
1 parent 330a069 commit b7c7887
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# web 播放视频流/直播

放弃了之前使用 [D2Admin](https://github.com/d2-projects/d2-admin) 开发的版本,原因是代码太乱了,重新使用 vue-cli 改了一版。

在 H5 上播放视频流,有很多开源的播放器可以使用,比如:

1. [flv.js](https://github.com/bilibili/flv.js)(B站开源)使用纯JavaScript而不使用Flash编写的HTML5 Flash视频(FLV)播放器。
Expand All @@ -18,7 +16,11 @@

## 展示效果

http://live.fuwenwei.com
在一个做视频监控的项目中使用了 flv.js ,效果如下:

![](http://img.fuwenwei.com/blog/20190718220244.jpg)

![](http://img.fuwenwei.com/blog/20190718220732.png)

## 可用的视频流

Expand Down
2 changes: 1 addition & 1 deletion src/components/HlsLive.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import 'videojs-contrib-hls'
export default {
name: 'hls-live', // 不能使用 video 命名
name: 'hls-live',
props: {
src: {
type: String,
Expand Down
2 changes: 1 addition & 1 deletion src/components/RtmpLive.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<script>
import 'videojs-flash'
export default {
name: 'rtmp-live', // 不能使用 video 命名
name: 'rtmp-live',
props: {
src: {
type: String,
Expand Down
2 changes: 1 addition & 1 deletion src/components/flv.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import flvjs from 'flv.js'
export default {
name: 'flvjs', // 不能使用 video 命名
name: 'flvjs',
props: {
src: {
type: String,
Expand Down
2 changes: 1 addition & 1 deletion src/components/httpFlv.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import flvjs from 'flv.js'
export default {
name: 'flvjs', // 不能使用 video 命名
name: 'httpflv',
props: {
src: {
type: String,
Expand Down

0 comments on commit b7c7887

Please sign in to comment.