Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pfan/video-player-vue

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pfan/video-player-vue

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

安装使用

类型表示及介绍

hls

hls流的播放形式

http://kbs-dokdo.gscdn.com/dokdo_300/_definst_/dokdo_300.stream/playlist.m3u8

rtsp

rtsp播放需要后端配套服务支持
基本流程

  • 调用接口将 rtsp地址及id(作为标识) 传给中间服务器(蒋伟负责)
  • 服务器 返回 flv 地址
  • 前端调用 flv.js 从插件 播放 服务器返回的flv的流
  • 注意两点
    • 调用接口 通知服务器 停止转换流 推流
    • 调用心跳函数 保持服务器不间断 拉流 推流

标准入参

参数类型说明备注hlsrtsp
idString,Number摄像头唯一标识无用必填
urlstring播放地址必填必填
apiUrlstringrtsp调用中间服务器的 api前置无用选填
flvAgentUrlstringrtsp flv播放的代理前缀无用选填

FAQs

Package last updated on 23 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc