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

vue-video-streaming

v1.1.0

Published

## Project setup ``` yarn install ```

Downloads

25

Readme

vue-video-streaming

Install & Use

npm install vue-video-streaming
#or
yarn add vue-video-streaming

Import and register component

Global

import Vue from 'vue'
import VueVideoStreaming from 'vue-video-streaming'
Vue.use(VueVideoStreaming)

Local

<template>
    <vue-video-streaming
        :videodatas="videoDatas"
        :commentlist="commentList"
        :commenttotal="commentTotal"
        :userinfo="info"
        :sliderimg="sliderImg"
        @uploaddata="getvideoList"
        @getcomment="getcommentList"
        @updatecomment="updateComment"
    ></vue-video-streaming>
</template>
<script>
import { VueVideoStreaming } from 'vue-video-streaming'
export default {
    components: {
        VueVideoStreaming,
    },
}
</script>

Props

| 属性 | 说明 | 类型 | 是否必填 | | :----------------------- | :----------------- | :----- | :--------------------------- | | videodatas | 视频数据 | Array | 是 | | videodatas[].id | 视频 id | String | 是 | | videodatas[].postAvatar | 发布视频者的头像 | String | 否 | | videodatas[].nickname | 发布视频者的名字 | String | 否 | | videodatas[].title | 视频的标题 | String | 是 | | videodatas[].description | 视频的描述 | String | 否 | | videodatas[].videoWidth | 视频的宽度 | Number | 是 | | videodatas[].videoHeight | 视频的高度 | Number | 是 | | videodatas[].sourceUrl | 视频的来源 | String | 是 | | videodatas[].poster | 视频的封面 | String | 否 | | videodatas[].upNum | 视频的点赞人数 | Number | 是 | | videodatas[].commentNum | 视频的评论数 | Number | 是 | | videodatas[].isUp | 视频是否点赞 | Number | 是(0 为未点赞,1 为已点赞) | | commentList | 当前视频的评论 | Array | 否(可为[]) | | commentList[].id | 评论 id | String | 是 | | commentList[].content | 评论内容 | String | 是 | | commentList[].nickname | 评论人的名字 | String | 否 | | commentList[].avatar | 评论人的头像 | String | 否 | | commentList[].createDate | 评论时间 | String | 是 | | commenttotal | 当前视频评论总数 | Number | 是 | | userinfo | 当前观看用户的信息 | Object | 否 | | userinfo.avatar | 当前观看用户的头像 | String | 否 | | userinfo.nickname | 当前观看用户的名字 | String | 否 | | sliderimg | 视频进度条滑块图片 | String | 否 |

Events

| 事件名 | 说明 | 返回值 | | :------------ | :----------------------------------------------------- | :------------------------------------------------------ | | uploaddata | 现有视频播放结束,需根据上一个视频的 id 加载后续的视频 | id(最后一条视频的 id) | | getcomment | 加载评论 | videoId(需加载评论的视频 id),page(评论分页加载的页数) | | updatecomment | 评论发送 | videoId(评论的视频 id),comment(评论的内容) |