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 🙏

© 2024 – Pkg Stats / Ryan Hefner

dms-player-component

v1.0.26

Published

[![npm version](https://img.shields.io/npm/v/dms-player-component.svg?style=flat-square)](https://www.npmjs.com/package/dms-player-component) [![npm downloads](https://img.shields.io/npm/dm/dms-player-component.svg?style=flat-square)](https://www.npmjs.c

Downloads

10

Readme

dms-player-component.js

npm version npm downloads size

dms-player-component 는 이노뎁(주)dms-player 영상 연동 모듈을 활용한 preact 기반 컴포넌트 라이브러리 입니다.

🚩 Table of Contents

Install

Usage

ES6 Modules

import dmsPlayerComponent from 'dms-player-component';

CommonJS

const dmsPlayerComponent = require('dms-player-component');

Examples

...
<body>
  ...
  <div id="player"></div> 
</body>
...

// create player component
const options = {
    parentElementId: 'player',
    id: 'dms_video_1',
    url: 'vurix:///100869/1/0/0',
    protocol: 'http',
    host: 'ca-172-16-36-180.vurix.kr',
    transcode: 720
};

const playerInstance = new dmsPlayerComponent.Player(document.getElementById('player'));
playerInstance.render(options);
  
// remove player component
playerInstance.destroy();

Common API

| Name | Type | Default | Description | | ------------ | ------- | ------- | ----------- | | parentElementId | string | required | video 태그가 위치 할 부모 HTML Element ID | | id | string | required | 생성 대상 Player ID 지정 | | url | string | required | vurix or realhub(원본소스타입) -> ///[vms_id]/[dev_serial]/[channel]/[media] | | protocol | string | required | 프로토콜 정보, http or https | | host | string | required | Host 정보, 접속 Host URL 또는 사용 할 Media Server Host URL | | transcode | number | required | 인코딩 요청 값, -1=인코딩 적용 X, 0=원본, -1, 0을 제외한 최소 값은 32 | | startDate | number | | 저장 영상 요청 시작 utc datetime (실시간 재생 시 옵션 적용 X ) | | endDate | number | | 저장 영상 요청 종료 utc datetime (실시간 재생 시 옵션 적용 X )| | autoPlay | boolean | false | 자동 재생 여부 | | playSpeed | number | 1 | 저장 영상 배속 옵션, 해당 옵션이 없을 경우, 배속 버튼도 표시 되지 않으며 세가지 옵션 제공 1, 2(2배속), 4(4배속) | capture | boolean | false | 화면 캡쳐 버튼 활성화 여부 | | scale | number | | 저장영상 구간 눈금 표시 여부 및 눈금 표시 갯수 | | buttonTooltip | boolean | false | 플레이어 컨트롤 영역 버튼 Tooltip 표시 여부 | | errorMsgFunc | Function | | 에러 발생 콜백 함수 |