0.5.19 • Published 5 years ago

grouper-media-client v0.5.19

Weekly downloads
215
License
-
Repository
github
Last release
5 years ago

grouper-media-client

Quick Start

npm install grouper-media-client -S

vue-conponent

// videoPage
<media-components
      :sidename="sidename" // "single"||"left"|| "right" 可以为三个中一个 
      
      :col="col" // number 列数
      :row="row" // number 行数
      :first="first"  // number 从第几个序号开始
      :initVideo="initVideo" // async Function  初始化视频列表(可选)
      :lockVideo="lockVideo"// async Function  锁定视频通道(可选)
      :getLockVideo="getLockVideo"// async Function  获取锁定的视频通道(可选)
    ></media-components>



// singleVideo
// 不支持动态绑定,必须销毁组件重新生成
<media-components
      :path="url" // string  rtsp地址
    ></media-components>


// method using

    // create
    let infovideo = Vue.extend(videoVue);
      this.clusterVideoWindow = new infovideo({
        propsData: {
          path: prop.url
        }
      });
      let ele = document.createElement("div");
      this.$refs.videoChange.appendChild(ele);
      this.clusterVideoWindow.$mount(
        this.$refs.videoChange.querySelector("div")
      );
    // destory
      this.clusterVideoWindow.$destroy();
      this.clusterVideoWindow = null;
      let ele = this.$refs.videoChange.querySelector("div");
      this.$refs.videoChange.removeChild(ele);

需要srs作为流媒体服务器

// docker镜像启动命令 sudo docker run -d --name httpflv -it -p 8080:8080 -p 443:443 -p 1935:1935 -v ~/nginx/rtmp.conf:/etc/nginx/conf.d/rtmp/rtmp.conf -v ~/nginx/http-flv.conf:/etc/nginx/conf.d/http/http-flv.conf -v ~/nginx/nginx.crt:/etc/nginx/nginx.crt -v ~/nginx/nginx.key:/etc/nginx/nginx.key mugennsou/nginx-http-flv:dev

// ffmpeg推流命令 ffmpeg -hwaccel cuvid -c:v h264_cuvid -vsync 0 -i rtsp://admin:12345@10.2.0.62:554/Streaming/Channels/0501 -q 8 -vf scale_npp=1280:720 -aspect 1.7777 -vcodec h264_nvenc -acodec ACC -aframes 0 -f flv -an rtmp://10.2.0.14:1935/rtsp/10.2.0.64:554/Streaming/Channels/1301

0.5.19

5 years ago

0.5.18

5 years ago

0.5.17

5 years ago

0.5.16

5 years ago

0.5.15

5 years ago

0.5.14

5 years ago

0.5.13

5 years ago

0.5.12

5 years ago

0.5.11

5 years ago

0.5.10

5 years ago

0.5.9

5 years ago

0.5.8

5 years ago

0.5.7

5 years ago

0.5.6

5 years ago

0.5.5

5 years ago

0.5.4

5 years ago

0.5.3

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.41

5 years ago

0.1.40

5 years ago

0.1.39

5 years ago

0.1.38

5 years ago

0.1.37

5 years ago

0.1.36

5 years ago

0.1.35

5 years ago

0.1.34

5 years ago

0.1.33

5 years ago

0.1.32

5 years ago

0.1.31

5 years ago

0.1.30

5 years ago

0.1.29

5 years ago

0.1.28

5 years ago

0.1.27

5 years ago

0.1.26

5 years ago

0.1.25

5 years ago

0.1.24

5 years ago

0.1.23

5 years ago

0.1.22

5 years ago

0.1.21

5 years ago

0.1.20

5 years ago

0.1.19

5 years ago

0.1.18

5 years ago

0.1.17

5 years ago

0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago