Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@mux/mux-active-viewer-count
Advanced tools
A custom Mux element to show the current viewer count for the browser that Just Works™
<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.
If you're using npm
or yarn
, install that way:
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');
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>
<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.
FAQs
A custom Mux element to show the current viewer count for the browser that Just Works™
The npm package @mux/mux-active-viewer-count receives a total of 25 weekly downloads. As such, @mux/mux-active-viewer-count popularity was classified as not popular.
We found that @mux/mux-active-viewer-count demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.