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

pdplayerkit

v1.0.0

Published

PDPlayerKit is a lightweight JavaScript library that provides embedded HTML5 video players and YouTube players, featuring highly customizable control panels and visual effects.

Downloads

11

Readme

PDPlayerKit (JavaScript Library)

PDPlayerKit 是一個輕量級的 JavaScript 播放器 JavaScript 庫,提供嵌入式的 HTML5 影片播放器和 YouTube 播放器,具備高度自定義的控制面板和視覺效果。 PDPlayerKit is a lightweight JavaScript library that provides embedded HTML5 video players and YouTube players, featuring highly customizable control panels and visual effects.

特點 / Feature

  • 支援 HTML5 視頻和 YouTube 視頻播放, Supports HTML5 video and YouTube video playback.

  • 自定義控制面板,包括播放、暫停、音量控制、播放速率調整等功能。 Customizable control panel, including play, pause, volume control, playback speed adjustment, and more.

  • 支援行動裝置 playsinline 的狀態下支援全螢幕播放。 Supports fullscreen playback on mobile devices when playsinline is enabled.

  • 使用純 JavaScript / CSS 開發。 Built using pure JavaScript and CSS.

  • 使用 PDExtension-js 進行渲染。 Rendered using PDExtension-js.

  • 使用 Font Awesome 6 圖標。 Use Font Awesome 6 icons.

  • 使用 iframe-api 進行 Youtube 操作。 YouTube operations are handled via the iframe-api.

  • 可在 此處 預覽。 Preview available Here.

開發者 / Creator

Pardn Chiu 邱敬幃

授權 / License

此源代碼項目採用 GPL-3.0 許可證授權。 This source code project is licensed under the GPL-3.0 license.

如何使用 / How to use

  • 添加依賴 PDExtension-js
<script src="https://cdn.jsdelivr.net/gh/pardnchiu/PDExtension-js@[VERSION]/dist/PDExtension.min.js" copyright="Pardn Ltd"></script>
  • 導入 player
import { player } from "https://cdn.jsdelivr.net/gh/pardnchiu/PDPlayerKit@[VERSION]/dist/PDPlayerKit.js";

const elm = new player({
    /* Youtube 影片ID 或 其他影片來源 */
    videoId: "UmR9zlez4OE"
    src: "/img/sample.mp4",
    /* 預設參數 */
    volume: 100,    //預設音量
    mute: false,    //預設靜音
    /* 控制器 */
    panel: [
        "play",     //播放鍵
        "timebar",  //進度條
        "time",     //進度時間
        "mute",     //靜音鍵
        "volume",   //音量鍵
        "rate",     //速率鍵
        "full",     //影片
    ],
    event: {
        ready: function() {
            console.log("ready");
        },
        playing: function() {
            console.log("playing");
        },
        pause: function() {
            console.log("pause");
        },
        end: function() {
            console.log("end");
        }
    }
});

[DOM].appendChild(elm.body);

翻譯皆靠 ChatGPT


©️ 2023 Pardn Chiu 邱敬幃