LiteAVSDK
Tencent Cloud TRTC SDK, is a high availability components serving tens of thousands of enterprise customers, which is committed to helping you to minimize your research and development costs.
TXPlayerDrmBuilder

Data Structures

class  TXPlayerDrmBuilder
 

Detailed Description

DRM playback information, used with TXVodPlayer::startPlayDrm.


Data Structure Documentation

◆ com::tencent::rtmp::TXPlayerDrmBuilder

class com::tencent::rtmp::TXPlayerDrmBuilder

Public Member Functions

 TXPlayerDrmBuilder ()
 
 TXPlayerDrmBuilder (String licenseUrl, String playUrl)
 
TXPlayerDrmBuilder setDeviceCertificateUrl (String deviceCertificateUrl)
 
String getDeviceCertificateUrl ()
 
TXPlayerDrmBuilder setKeyLicenseUrl (String keyLicenseUrl)
 
String getKeyLicenseUrl ()
 
TXPlayerDrmBuilder setPlayUrl (String playUrl)
 
String getPlayUrl ()
 
String toString ()
 

Constructor & Destructor Documentation

◆ TXPlayerDrmBuilder() [1/2]

TXPlayerDrmBuilder ( )
inline

The VOD DRM constructor.

◆ TXPlayerDrmBuilder() [2/2]

TXPlayerDrmBuilder ( String  licenseUrl,
String  playUrl 
)
inline

construct TXPlayerDrmBuilder object

Parameters
licenseUrlThe URL of the decryption key
playUrlThe playback URL

Member Function Documentation

◆ getDeviceCertificateUrl()

String getDeviceCertificateUrl ( )
inline

This API is used to get the URL of a certificate provider.

Returns

◆ getKeyLicenseUrl()

String getKeyLicenseUrl ( )
inline

This API is used to get the URL of a decryption key.

Returns

◆ getPlayUrl()

String getPlayUrl ( )
inline

This API is used to get the URL of the media file to be played back.

Returns

◆ setDeviceCertificateUrl()

TXPlayerDrmBuilder setDeviceCertificateUrl ( String  deviceCertificateUrl)
inline

This API is used to set the URL of a certificate provider.

Parameters
deviceCertificateUrlis the certificate provider URL. If the provider is Widevine, you can leave this parameter empty to use the default settings.
Returns
TXPlayerDrmBuilder

◆ setKeyLicenseUrl()

TXPlayerDrmBuilder setKeyLicenseUrl ( String  keyLicenseUrl)
inline

This API is used to set the URL of a decryption key.

Parameters
keyLicenseUrlThe URL of the decryption key
Returns
TXPlayerDrmBuilder

◆ setPlayUrl()

TXPlayerDrmBuilder setPlayUrl ( String  playUrl)
inline

This API is used to set the URL of the media file to be played back.

Parameters
playUrlThe playback URL
Returns
TXPlayerDrmBuilder

◆ toString()

String toString ( )
inline