라이선스 권한 부여 개요
백엔드에서 시청 권한을 확인한 뒤 Playback Session API를 사용합니다. 재생 규칙을 선택하고 플레이어를 연결한 후 재생이 끝나면 세션을 해제합니다.
재생이 승인되는 과정
백엔드가 시청 가능한 사용자를 결정합니다. DRM-X는 재생 승인 정보를 제공하며, 플레이어는 이를 사용해 DRM 라이선스를 요청합니다.
- 시청자
서비스에 로그인하고 동영상 재생을 요청합니다.
- 고객 백엔드
사용자의 구매 내역, 구독 상태 또는 기타 시청 권한을 확인합니다.
- DRM-X
선택한 재생 규칙을 적용하고 재생 설정과 승인 정보를 반환합니다.
- 플레이어
반환된 승인 정보를 사용해 재생에 필요한 DRM 라이선스를 요청합니다.
재생 세션 생성#
POST https://api6.drm-x.com/api/v1/playback/environments/{siteId}/sessions
Accept: application/json
Content-Type: application/json
X-DRMX-Client-Id: {siteKey}
X-DRMX-Client-Secret: {accessKey}{
"contentId": "course-12-lesson-4",
"contentType": "vod",
"drmSystem": "widevine",
"subject": "customer-user-1001",
"sessionId": "new-unpredictable-id-per-playback",
"playbackMode": "streaming",
"licensePolicyTemplate": "multi-tier-standard",
"useEnvironmentDefaults": true,
"applicationId": "customer-web"
}모든 값은 클라이언트의 기능을 감지하지 않고 신뢰할 수있는 서버 상태에서 온다. 허용 목록에 대한 입력을 검증하고 클라이언트의 제목, 정책, 또는 URL을 수용 할 수 없습니다.
이름의 정책 템플릿 선택#
| 지원하다 | 이용하기 |
|---|---|
single-software | 광범위한 소프트웨어 해독 호환성을 갖춘 단일 키 콘텐츠. |
single-hdcp | Single-key 콘텐츠는 승인된 디지털 출력 보호를 요구합니다. |
single-hardware | 단일 키 프리미엄 재생 자격을 갖춘 하드웨어-보안 장치에. |
multi-tier-standard | 별도의 AUDIO, SD, HD 및 UHD 규칙과 멀티 키 콘텐츠. |
사용자 지정 정책은 서버에서 승인된 DRM-X License Policy JSON v2 전체 문서로 보내세요. licensePolicyTemplate 또는 licensePolicy 중 하나만 선택하고 둘 다 보내지 마세요.
직접 토큰 또는 고객 프록시#
퀵메뉴
가장 빠른 통합. 클라이언트는 짧은 라이브 DRM License Token을 수신하고 반품 된 라이센스 또는 FairPlay 인증서 엔드 포인트에만 첨부합니다.
토큰 프록시
서버는 바인딩된 만료 캐시에 있는 실제 토큰을 저장하고 고객 통제된 프록시 URL을 가진 불투명한 손잡이를 반환합니다. 사용자, Content ID, DRM 및 만료에 손잡이를 삽입하십시오.
lifecycle#를 완료하십시오.
Cache-Control: no-store과 세션 응답을 반환합니다.- 네이티브 DRM 도전과 응답 몸을 위해 정확한 바이너리 패스를 사용합니다.
- 리디렉션 및 캡 인증서, 라이센스 및 로그 요청 크기 거부.
- 중지, 교체, 터미널 오류 및 종료에 반환된 릴리스 경로 호출.
- 승인 헤더, 성공적인 세션 바디, 라이센스 바이트, 도전, 또는 콘텐츠 키를 로그하지 마십시오.
License usage and billing#
License usage counts successful license issuances. Failed or denied requests are not charged.
Standard costs $299/month and includes 20,000 licenses. Professional costs $499/month and includes 50,000 licenses. Allowances reset each monthly billing period, including on annual subscriptions.
Duplicate processing of the same accounting event counts once. A new successful license issuance or renewal can count again. A viewer or playback may require more than one license.
Creating a DRM License Token, packaging content or uploading files does not itself consume a playback license.
Historical invoices and billing periods retain their original terms, allowances and calculations. New purchases use License usage.
Future PDF and protected-web products will define successful license issuances for documents or bounded protected-web sessions. PDF pages, web resources and reuse of an existing valid license will not be separate license charges. These future rules do not imply that those products are production-ready.
See the current pricing page for progressive additional license charges, optional hosting and applicable taxes.
DRM-X 6.0