npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

gddnvideoplayer-ynjt

v3.0.7-ynjt-beta0.0.1

Published

gddn video player component

Downloads

3

Readme

#研发六部 - 数字企业线 视频播放组件(ISC 萤石云 flash flv) Current version: 0.0.1

  • 页面需要引入 jsencrypt.min.js jsWebControl-1.0.0.min.js
  • 页面onload时 需要 如下代码
<script>
    window.onload = function () {
      WebCameraInit && WebCameraInit()
    }
</script>

变更记录

hikplayer 海康OCX 播放控件js

import React, {useRef, useState} from 'react';
import {Button, Space} from 'antd';
import ReactDOM from 'react-dom';
import PmPlayer from '../../src/index';
import 'antd/dist/antd.css';

const {Hikplayer} = PmPlayer;
const config = {
  appSecret: 'UD1sMwCKgOO0UV3H6lkH',
  appKey: '21046550',
  host: '172.16.8.66',
  port: 443,
};
const cameraUuidArray = ['caf8838a8d9445ec966c67c2938ef004',];
const Index = () => {
  const [playback, setPlayback] = useState(false);
  const isc = useRef(null);

  return (
    <div style={{padding: 20}}>
      <Hikplayer
        ref={isc}
        width={800}
        height={600}
        streamMode={0}
        cameraUuidArray={cameraUuidArray}
        layout='1x1'
        config={config}
      />
    </div>
  )
};
ReactDOM.render(<Index/>, document.getElementById('container'));

operatePlayer 视频播放集成组件,包含 H5、OCX 两种播放模式; 相关接口调用视频中心接口; 包含回放、云台、切换播放模式、抓拍功能

/*
 * @params videoObj:{
 *    cameraName:摄像头 name
 *    cameraUuid:摄像头uuid,
 *    platformType:camera平台类型 根据平台类型 判断播放方式 1 OCX; 3 H5
 *    appKey : ISC 播放参数
 *    appSecret : ISC 播放参数,
 *    host : ISC 播放参数
 *    videoW : 视频区域宽度
 *    videoH :视频区域高度
 *    platformId : 平台Id 
 *    platformType : 平台类型
/

import React from 'react';
import VideoPlayer from "gddnvideoplayer/src/pages/operatePlayer";
const SESSIONKEY = "session_gddn_player_tower_video";

export default function(videoObj) {
   const {
    appKey,
    appSecret,
    cameraName,
    cameraUuid,
    host,
    platformId,
    platformType,
    videoH,
    videoW,
    ptzControl
  } = videoObj;

  const cameraParam = {
    cameraName,
    cameraUuidList: [cameraUuid],
    platformType,
    platformId,
    streamMode: 0
  };

  const operateParam = {
    playBack: false,
    capability: ptzControl,
    sessionKey: SESSIONKEY
  };

  const iscConfig = {
    appKey,
    appSecret,
    port: +host?.split(":")[1] || 443,
    host: host?.split(":")[0]
  };

  const data = {
    operateParam,
    iscConfig,
    cameraParam,
    width: videoW,
    height: videoH
  };


  return (
    <section style={{ width: '100vw', height: '100vh', background: '#000' }}>
     <VideoPlayer {...data} />
    </section>
  );
}