0.2.0-alpha.13 • Published 8 months ago

@mux/mux-active-viewer-count v0.2.0-alpha.13

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Introduction

<mux-active-viewer-count></mux-active-viewer-count> is a Mux-flavored HTML5 viewer count element.

This element shows the current number of viewers for the specified video.

Installation

If you're using npm or yarn, install that way:

Package manager

yarn add @mux/mux-active-viewer-count

or

npm i @mux/mux-active-viewer-count

Then, import the library into your application with either import or require:

import '@mux/mux-active-viewer-count';

or

require('@mux/mux-active-viewer-count');

CDN option

Alternatively, use the CDN hosted version of this package:

<script src="https://cdn.jsdelivr.net/npm/@mux/mux-active-viewer-count@0"></script>

If you are using ecmascript modules, you can also load the mux-active-viewer-count.mjs file with type=module:

<script type="module" src="https://cdn.jsdelivr.net/npm/@mux/mux-active-viewer-count@0/dist/mux-active-viewer-count.mjs"></script>

Usage

<mux-active-viewer-count> has two attributes. The first is called token, and it should be a signed JavaScript Web Token (JWT) for which you want the viewer count. (For more information on creating a JWT for a particular video, see https://docs.mux.com/guides/data/see-how-many-people-are-watching.

The second attribute is called poll-interval. It specifies the number of seconds that the component should wait between requests to get the viewer count. It defaults to 20 seconds, and should be no lower than 15 seconds.

0.1.1-canary.270

11 months ago

0.1.1-canary.271

10 months ago

0.1.1-canary.272

10 months ago

0.1.1-canary.273

10 months ago

0.1.1-canary.278

10 months ago

0.1.1-canary.279

10 months ago

0.1.1-canary.274

10 months ago

0.1.1-canary.275

10 months ago

0.1.1-canary.276

10 months ago

0.1.1-canary.277

10 months ago

0.1.1-canary.260

12 months ago

0.1.1-canary.261

11 months ago

0.1.1-canary.262

11 months ago

0.1.1-canary.267

11 months ago

0.1.1-canary.268

11 months ago

0.1.1-canary.269

11 months ago

0.1.1-canary.263

11 months ago

0.1.1-canary.264

11 months ago

0.1.1-canary.265

11 months ago

0.1.1-canary.266

11 months ago

0.1.1-canary.258

12 months ago

0.1.1-canary.259

12 months ago

0.1.1-canary.292

8 months ago

0.1.1-canary.293

8 months ago

0.1.1-canary.294

8 months ago

0.1.1-canary.295

8 months ago

0.1.1-canary.290

9 months ago

0.1.1-canary.291

9 months ago

0.1.1-canary.281

10 months ago

0.1.1-canary.282

10 months ago

0.1.1-canary.283

9 months ago

0.1.1-canary.284

9 months ago

0.1.1-canary.280

10 months ago

0.1.1-canary.289

9 months ago

0.1.1-canary.285

9 months ago

0.1.1-canary.286

9 months ago

0.1.1-canary.287

9 months ago

0.1.1-canary.288

9 months ago

0.2.0-alpha.13

11 months ago

0.2.0-alpha.12

12 months ago

0.2.0-alpha.11

1 year ago

0.2.0-alpha.10

1 year ago

0.1.1-canary.0

1 year ago

0.2.0-alpha.9

1 year ago

0.2.0-alpha.8

2 years ago

0.2.0-alpha.7

2 years ago

0.2.0-alpha.6

2 years ago

0.2.0-alpha.5

2 years ago

0.2.0-alpha.2

2 years ago

0.2.0-alpha.1

2 years ago

0.2.0-alpha.4

2 years ago

0.2.0-alpha.3

2 years ago

0.2.0-alpha.0

3 years ago