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

vpe-drm-helper

v0.1.6

Published

Ncloud DRM Helper

Downloads

68

Readme

NAVER CLOUD PLATFORM Video Player Enhancement + One Click Multi DRM Helper

NAVER CLOUD PLATFORM 에서 제공중인 Video Player Enhancement 를 이용하여 One Click Multi DRM 손쉽게 연동할 수 있는 플러그인 입니다.

  • 2024.07 : 공공클라우드 지원이 추가 되었습니다. (isGov : true)

실행 방법

$ npm install ncp-drm-helper 

사용 방법

import vpeDrmHelper from 'vpe-drm-helper';    
//DRM Helper
const NDRM = new vpeDrmHelper();

NDRM.isGov = false; //공공클라우드 사용 여부 설정 (기본값 : false)
NDRM.setUserId('test-user'); //사용자 아이디 설정
NDRM.setSiteId('SITEID'); //One Click Multi DRM Site ID 설정
NDRM.setApiKey('accessKey','secretKey'); //네이버클라우드 플랫폼 ACCESS KEY, SECRET KEY 설정

let drmSource = NDRM.drmSourceHelper({
    dash : '{DASH 재생소스}',
    hls : '{HLS 재생소스}',
},'{contentId}'); //contentId 필수 , VOD Station , LIVE Station 에서 확인 및 설정 가능

return drmSource;

VPE 연동하기

⚠️ 주의사항 : VPE SDK는 1.1.1 버전 이상을 사용해야 합니다.


window.player = null;
document.addEventListener('DOMContentLoaded', async () => {

    window.drmPlayer = await ncplayerDRM('player',{
        playlist:[
            {
                drm:drmSource, //DRM Helper에서 생성된 재생소스를 입력합니다.
                description:{
                    title:"DRM 테스트",
                    profile_name:"네이버클라우드",
                    profile_image:"https://nnbkegvqsbcu5297614.cdn.ntruss.com/profile/202208/d127c8db642716d84b3201f1d152e52a.png",
                }
            },
        ],
        autostart:true,
        muted:true,
        progressBarColor:"#ff0000",
    });
	
});

문의하기

SGRSOFT 개발팀 : [email protected]

채널톡 : https://sgrsoft.channel.io/home

영업 및 네이버클라우드 가입 문의 : [email protected]

SGRSOFT를 통하여 네이버클라우드 플랫폼 크래딧을 지원 받을 수 있습니다. (최대 300만원)