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

hls-video-player

v0.1.77

Published

hls视频流在线播放预览仅支持H264格式,内部继承了videojs.

Downloads

23

Readme

hls-video-player

vue播放hls视频流的播放器组件( 内部集成了videojs )

install

npm install hls-video-player

or

yarn add hls-video-player

全局注册调用 global registry component

import Vue from 'vue'
import { HlsPlayer } from 'hls-video-player'

Vue.component('HlsPlayer',HlsPlayer)

vue组件内部调用 in vue component


import { HlsPlayer } from 'hls-video-player'
export default {
    name: 'MyComponent',
    component:{
        HlsPlayer
    }
}

测试地址

http://220.161.87.62:8800/hls/1/index.m3u8
http://220.161.87.62:8800/hls/0/index.m3u8

播放hls流

  <HlsPlayer
    play-url="http://220.161.87.62:8800/hls/1/index.m3u8"
  ></HlsPlayer>

播放mp4

  <HlsPlayer
    play-url="http://vjs.zencdn.net/v/oceans.mp4"
    video-type="video/mp4"
  ></HlsPlayer>

萤石云flv播放支持H264 H265

官方API手册链接 https://open.ys7.com/help/1852

注意: 暂不提供CDN地址, decoder静态资源需要放置在自己的public文件夹下(node_modules/ezuikit-flv下 decoder.wasm 和 decoder.js 文件, 这两个文件需要在同一个文件夹下)

注意: 暂不提供CDN地址,decoder静态资源需要放置在自己的public文件夹下(node_modules/ezuikit-flv下 decoder.wasm 和 decoder.js 文件, 这两个文件需要在同一个文件夹下)

注意: 暂不提供CDN地址,decoder静态资源需要放置在自己的public文件夹下(node_modules/ezuikit-flv下 decoder.wasm 和 decoder.js 文件, 这两个文件需要在同一个文件夹下)

import { EzuikitFlvPlayer } from 'hls-video-player'

export default {
	name: 'Index',
	components: {
		EzuikitFlvPlayer
	},
	computed: {
		playUrl() {
			// return `https://open.ys7.com/v3/openlive/L19580942_1_1.m3u8?expire=1757815420&id=756817781770788864&t=933e82356dcb650aaf5526f3dfbcd52cb89d1fe5421350ce46710e522d5b18dc&ev=100`
			return `https://rtmp01open.ys7.com:9188/v3/openlive/L19580942_1_1.flv?expire=1757817010&id=756824453853216768&t=1ab171ac6b5964c913fccc0e28c1c1b6084477965c6f4cf5b1301ab7516bf013&ev=100`
		}
	}
}
<template>
	<ezuikit-flv-player :play-url="playUrl" />
</template>

<style></style>