Overview
The User Recordings module (part of the NPVR service) lets end users record live (broadcast) content in the cloud and watch the recordings on their devices. This page explains what you can configure as the operator, and lists the operator APIs. For how client applications use NPVR, see User recordings (NPVR).
Operator functionality
As an operator, you can:
-
Enable or disable recording on a per-channel and per-event basis, which allows you to comply with content agreements.
-
Manage subscriber access to NPVR. NPVR can be enabled/disabled per account.
-
Specify an expiry time for recordings, after which they will be purged. The asset lifecycle is fully automated and transparent.
-
Set guard times for the beginning and end of recordings to take account of possible schedule changes. (Note that the additional recording time does not affect the user's quota.)
-
Manage subscriber NPVR storage limits. You can define multiple quota profiles, each with a different quota, which you apply to subscriber accounts.
You can enable auto-delete for a quota, whereby if a recording request is made when an account has no free quota available, User Recordings will delete the account's oldest recordings to make space (seeCreate a quota profile for details).
Setting up NPVR
Setting up NPVR consists of the following main steps:
These are explained in the following sections.
Configuring channels and events
-
In OpCon, enable NPVR for a particular editorial channel at the global level and for all its technical channels. Also enable it for all new events. See Replay TV.
You can also set this at ingest or using CPM's editorialChannel, technical channel, and eventAPIs by setting the following:
-
"networkPvrSupport" : "true"(for editorial channels, technical channels, and events) -
In
technicalChannel > timeshifting > networkPvrParameters, set "validityDuration"to the required time. -
In
editorialChannel > timeshifting > networkPvrParameters,"eventDefaultFlag" : "true"
-
-
In OpCon, set the source ID for each technical channel to the ID of the rolling buffer stream for the channel.
You can find this within the technical channel's URI field – it's the part in parentheses immediately before the final slash. For example, if the URI is:http://cdn-nagravision-01.secure.footprint.net/Content/DASH/Live/channel(c24a1dc9-6ac5-4a7f-90e7-db11e3f03509)/manifest.mpd... then the source ID is
c24a1dc9-6ac5-4a7f-90e7-db11e3f03509.
You can also set this at ingest or using CPM's technical channelAPIs by setting the following:-
In
technical Channel > timeshifting > networkPvrParameters, setsourceIdto the stream ID.
-
-
Specify the IDs of the capture, validate, purge, and feature profiles for the technical channel. Use CPM's technical channel updateAPIs to add the IDs to the
profileIdSetfield.
Notes:-
These profiles are configured by NAGRAVISION. Contact your NAGRAVISION representative to find out the IDs. You can use the config-manager get profilesAPI to view these profiles.
-
Feature profiles allow you to specify the types of device that a technical channel supports. For example, you could use a feature profile to specify that a 4K channel should not be available to low-powered mobile devices. To enable such a feature profile, please contact your NAGRAVISION representative.
-
-
For encrypted content:
-
For each technical channel, specify the DRM system ID in
securityDeviceIdwithinsecurityInfousing CPM's technical channel updateAPI. You can find the ID using the config-manager devicesAPI. (The DRM system is configured as a security device in config-manager by NAGRAVISION.) -
For each technical channel, specify the DRM system's identifier for the channel in the
idfield withinsecurityInfousing the technical channelAPIs. (You can query the encoder to get this ID for each packaging format.) -
If the technical channel is not already associated to a subscription product, associate it using CPM's ProductLinksAPIs.
To do this, send a PUT request to the following URL, with one or more validity periods in the payload:https://<server>:<port>/cpm/content/v1/productLinks/technicalChannel/{technicalChannelId}/product/{productId}
-
-
If you want to enable users to download recorded content for offline viewing, enable Download2Go for the appropriate products, channels, contents, and/or events. You can do this:
-
In OpCon
-
At ingest, by setting the
storageAllowedflag in therightselement totrue -
By setting
storageAllowedtotruewhen creating or updating these entities through the CPM APIs
When the content is captured during recording, the content that is created will also have the
storageAllowedflag. -
Tip: When updating a technical channel in CPM, you can save time by using a GET to get the whole channel, making the changes you need, and using it as the body in a PUT request.
But remove the id fields and the editorialChannelRef section from the body before submitting the request.
Configuring accounts and quotas
-
Enable NPVR for all the applicable accounts. (For example, if you have three packages, bronze, silver, and gold, and NPVR is only part of silver and gold, you would enable NPVR for all silver and gold accounts.)
-
Create one or more quota profiles. (For example, you may want to set up a small quota for subscribers to the silver package, and a larger quota for subscribers to the gold package.)
-
Assign the appropriate quota profiles to all accounts for which NPVR is enabled. (For example, assign the small quota profile to silver accounts and the large one to gold accounts.)
-
Grant entitlements for applicable accounts to the product that the channel is associated with using RMG's entitlementsAPI. The
productIdthat you specify here is the same as the ID of the product in step 4c, above.
Alternatively, you can enable NPVR and create and apply quota profiles in OpCon. SeeNPVR quotas andAccount profiles.
Configuring guard times
Guard times are configured at the editorial channel level. You can configure an editorial channel's guard times in one of two ways:
-
At ingest, using the editorialChannel
guardTimestartandendfields (see theContent and Product Manager (CPM) API documentation: content v1). -
By using the Content and Product Manager (CPM) editorial channelAPI to update one or more channels.
These guard times are used for both user recordings and long-term catch-up (LTCU). It is not possible to set separate guard times for user recordings and LTCU.
Supported actions
The following actions are supported:
-
Create a quota profile -
View a specific quota profile -
View all quota profiles -
Update a quota profile -
Delete a quota profile -
Assign a quota profile to an account -
Assign a quota profile to multiple accounts -
Enable/disable NPVR for an account -
Enable/disable NPVR for multiple accounts -
Retrieve the recordings for an account (operator endpoint)
See also
-
NPVR quotas (OpCon documentation)
-
Replay TV (OpCon documentation)