clappr/clappr-stats
clappr/clappr-stats has 43 GitHub stars and 15 forks. GitHot measured 0 in 7 days and 0 in 15 days. Last checked 2026-11-11 02:28 UTC. Last push 2024-07-31.
A clappr plugin to report playback statuses (timers: session, buffering, watch and counters: play, pause, error, fps)
측정된 스타 증가
- in 24h
- 업데이트 지연
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalUsage
You can use it from JSDelivr https://cdn.jsdelivr.net/npm/@clappr/stats-plugin@latest/dist/clappr-stats.min.js or as a npm package.
<script>
var player = new Clappr.Player({
parentId: '#player',
plugins: [ClapprStats],
source: 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4',
height: 360,
width: 640,
clapprStats: {
// optional: time in miliseconds for each report.
// default: 5000
runEach: 5000,
// optional: callback function.
// default: console.log
onReport: (metrics) => {console.log(metrics)},
// Fire PERCENTAGE_EVENT when video complete some percentage.
// default: []
onCompletion: [10, 20, 55, 100],
// optional: provide an img uri hosted at the same place as your farm
// or near of it prefferable 1x1px, without caching.
// default: none
uriToMeasureLatency: 'http://www.example.com/images/tv/pixel-1x1-red.gif',
// optional: provide some assets uris hosted at the same place as your farm
// or near of it prefferable in an uncompressible file format, without caching.
// default: none
urisToMeasureBandwidth: [
{url: 'http://www.example.com/images/tv/500kb.jpg', timeout: 3000},
{url: 'http://www.example.com/images/tv/1mb.jpg', timeout: 6000},
{url: 'http://www.example.com/images/tv/5mb.jpg', timeout: 12000}
],
// optional: number of reports between two consecutive bandwidth tests.
// default: 10
runBandwidthTestEvery: 10
}
})
</script>
Metrics
{
counters: {
play: 0, // number of plays
pause: 0, // number of pauses
error: 0, // number of errors
buffering: 0, // number of bufferings
decodedFrames: 0, // number of decoded frames (when available)
droppedFrames: 0, // number of dropped frames (when available)
fps: 0, // frames per second (when available)
changeLevel: 0, // number of adaptative bitrate changes
seek: 0, // number of seeks
fullscreen: 0, // number of times that user went to fullscreen
dvrUsage: 0 // number of time that user used dvr seek (at live stream)
},
timers: {
startup: 0, // time (ms) since user click/touch play (intent to play) to the play
watch: 0, // time (ms) of watched content (does not include pause and buffering)
pause: 0, // time (ms) of paused content
buffering: 0, // time (ms) of buffering
session: 0, // time (ms) of session (sum of watch+pause+buffering)
latency: 0, // time (ms) of latency between user and the provided uri
},
extra: {
playbackName: '', // playback name (hls, html5_video, flashls)
playbackType: '', // vod or live
buffersize: 0, // buffersize in ms
duration: 0, // duration time in ms
currentTime: 0, // current time in ms
bitratesHistory: [], // the bitrates changes history
bitrateWeightedMean: 0, // bitrate weighted mean (bps)
bitrateMostUsed: 0, // most used (based on time) bitrate (bps)
watchHistory: [], // an array of an array of watched range time ex: [0, 2200]
watchedPercentage: 0, // % of watched time
bufferingPercentage: 0, // % of buffering time
bandwidth: 0, // user bandwidth (bps)
}
}
관련 프로젝트 살펴보기
Asabeneh/30-Days-Of-Python
30 Days of Python 프로그래밍 챌린지는 Python 프로그래밍 언어를 30일 동안 배우기 위한 단계별 가이드입니다. 이 챌린지는 100일 이상 걸릴 수 있습니다. 자신의 속도에 맞춰 진행하세요. 다음 동영상도 도움이 될 수 있습니다: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,560 스타grafana/grafana
개방적이고 조합 가능한 옵저버빌리티 및 데이터 시각화 플랫폼입니다. Prometheus, Loki, Elasticsearch, InfluxDB, Postgres 등 여러 소스의 메트릭, 로그, 트레이스를 시각화합니다.
77,830 스타redis/redis
실시간 데이터 기반 애플리케이션을 구축하는 개발자에게 Redis는 가장 선호되고, 가장 빠르며, 기능이 가장 풍부한 캐시, 데이터 구조 서버이자 문서 및 벡터 쿼리 엔진입니다.
77,395 스타apache/superset
Apache Superset는 데이터 시각화 및 데이터 탐색 플랫폼입니다.
75,473 스타