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

@work6189/poplayers

v1.0.32

Published

A modern, customizable video PoPlayers similar to JWPlayer

Readme

PoPlayers

jwplayer와 같은 현대적이고 커스터마이징 가능한 HTML5 비디오 PoPlayers입니다.

기능

  • 🎥 HTML5 비디오 지원
  • 🎛️ 완전한 재생 컨트롤 (재생/일시정지, 진행바, 볼륨, 전체화면)
  • ⚡ TypeScript로 작성
  • 🎨 커스터마이징 가능한 테마
  • 📱 반응형 디자인
  • ⌨️ 키보드 단축키 지원
  • 🔧 다양한 설정 옵션
  • 🌐 CDN 및 NPM 배포 지원

설치

NPM

npm install @work6189/poplayers

CDN

<link rel="stylesheet" href="https://unpkg.com/@work6189/poplayers@latest/dist/poplayers.css">
<script src="https://unpkg.com/@work6189/poplayers@latest/dist/poplayers.min.js"></script>

사용법

기본 사용법

<div id="poplayers-container"></div>

<script>
const poplayers = new PoPlayers('poplayers-container', {
  width: '800px',
  height: '450px',
  controls: true,
  autoplay: false
});

poplayers.load('path/to/your/video.mp4');
</script>

ES 모듈

import { createPoPlayers } from '@work6189/poplayers';

const poplayers = createPoPlayers('poplayers-container', {
  width: '100%',
  height: '400px',
  theme: 'dark'
});

poplayers.load('https://example.com/video.mp4');

TypeScript

import { createPoPlayers, PoPlayersConfig } from '@work6189/poplayers';

const config: PoPlayersConfig = {
  width: '800px',
  height: '450px',
  controls: true,
  autoplay: false,
  theme: 'dark'
};

const poplayers = createPoPlayers('poplayers-container', config);
poplayers.load('video.mp4');

설정 옵션

interface PoPlayersConfig {
  width?: string | number;           // PoPlayers 너비
  height?: string | number;          // PoPlayers 높이
  controls?: boolean;                // 컨트롤 표시 여부
  autoplay?: boolean;                // 자동 재생
  muted?: boolean;                   // 음소거
  loop?: boolean;                    // 반복 재생
  preload?: 'none' | 'metadata' | 'auto';  // 미리 로드
  poster?: string;                   // 포스터 이미지
  playbackRates?: number[];          // 재생 속도 옵션
  volume?: number;                   // 초기 볼륨 (0-1)
  startTime?: number;                // 시작 시간 (초)
  theme?: 'default' | 'dark' | 'light';  // 테마
  responsive?: boolean;              // 반응형
}

API 메서드

// 재생 제어
poplayers.play();                     // 재생
poplayers.pause();                    // 일시정지
poplayers.stop();                     // 중지

// 비디오 로드
poplayers.load('video.mp4');          // 단일 소스
poplayers.load([                      // 다중 소스
  { src: 'video.mp4', type: 'video/mp4' },
  { src: 'video.webm', type: 'video/webm' }
]);

// 탐색 및 설정
poplayers.seek(30);                   // 30초로 이동
poplayers.setVolume(0.5);             // 볼륨 50%
poplayers.setPlaybackRate(1.5);       // 1.5배속

// 전체화면
poplayers.enterFullscreen();          // 전체화면 진입
poplayers.exitFullscreen();           // 전체화면 해제

// 상태 조회
const state = poplayers.getState();   // 현재 상태 반환

// 정리
poplayers.destroy();                  // PoPlayers 제거

이벤트

poplayers.on('ready', () => {
  console.log('PoPlayers 준비됨');
});

poplayers.on('play', () => {
  console.log('재생 시작');
});

poplayers.on('pause', () => {
  console.log('일시정지');
});

poplayers.on('timeupdate', (currentTime) => {
  console.log('현재 시간:', currentTime);
});

poplayers.on('error', (error) => {
  console.error('에러 발생:', error);
});

키보드 단축키

  • Space: 재생/일시정지
  • : 10초 뒤로
  • : 10초 앞으로
  • : 볼륨 증가
  • : 볼륨 감소
  • F: 전체화면 토글
  • M: 음소거 토글
  • [: 배속 0.25 감소 (최소 0.25배속)
  • ]: 배속 0.25 증가 (최대 3배속)

개발

# 의존성 설치
npm install

# 개발 서버 실행
npm run dev

# 빌드
npm run build

# 타입 체크
npm run type-check

# 린트
npm run lint

# 테스트
npm test

브라우저 지원

  • Chrome 60+
  • Firefox 55+
  • Safari 12+
  • Edge 79+

라이선스

MIT License

기여

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

변경 사항

v1.0.0

  • 초기 릴리스
  • 기본 비디오 PoPlayers 기능
  • TypeScript 지원
  • 다양한 테마 지원
  • 반응형 디자인