Learn how to check out viewer engagement on Livepeer
@livepeer/react
version 4.2.0 or higher.playbackId
of an existing stream/assetplaybackId
of an existing asset. A playbackId
can be found in the
stream/asset page on the dashboard or from any Asset API call. If you haven’t created
a stream/asset yet, you can follow the
upload a video asset guide.
playbackId
can be a canonical playback ID from a specific Livepeer asset
or stream objects, or dStorage identifiers for assets. Queries by dStorage ID
are universal/cross-account, as explained below, so check what makes the most
sense for your app.ipfs://
or ar://
URLs, or CID/txID), you
will get views for all assets with that dStorage ID across any Livepeer account.
This is useful to display global metrics from a video. To display the viewership
metrics only from the videos in your account, use the API objects playbackId
.
playbackId
, you can make a request to get the viewership
data.
assetId
or streamId
values, which are private values today that only
the asset creator should have access. Soon this creator ownership will be
validated using wallet signatures instead.
The idea for this API is to build creator analytics dashboards. It can be called
from the frontend and can provide detailed insights to creators about their
assets and streams.