Offline license
To request for an offline license, please make the alongside changes in your content auth string.
- NODE
- PHP
const contentAuthObj = {
contentId: CONTENT_ID,
expires: timestamp + 900,
licenseRules: JSON.stringify({
canPersist: true,
rentalDuration: 15 * 24 * 3600, // 15 days
}),
};
$contentAuthStr = urlSafeBase64Encode(json_encode([
"contentId" => $contentId,
"expires" => $timestamp + 900,
"licenseRules" => json_encode([
"canPersist" => true,
"rentalDuration" => 15 * 24 * 3600, // 15 days
])
]));