com.adobe.flashaccess.sdk.media.drm.format.flv
Class FLVDRMParameters

java.lang.Object
  extended by com.adobe.flashaccess.sdk.media.drm.format.flv.FLVDRMParameters
All Implemented Interfaces:
DRMParameters, AudioDRMParameters, VideoDRMParameters

public class FLVDRMParameters
extends java.lang.Object
implements DRMParameters, AudioDRMParameters, VideoDRMParameters

The parameters for encrypting FLV media.


Constructor Summary
FLVDRMParameters()
          Create an FLVDRMParameters instance.
 
Method Summary
 boolean getEncryptAudio()
          Indicates whether audio content will be encrypted.
 int getEncryptionStartTime()
          Specifies that content should be encrypted starting this many seconds into the content.
 boolean getEncryptScript()
          Indicates whether script data will be encrypted.
 boolean getEncryptVideo()
          Indicates whether video content will be encrypted.
 KeyParameters getKeyParameters()
          Gets the parameters for obtaining a key.
 SignatureParameters getSignatureParameters()
          Gets the signature parameters.
 void setEncryptAudio(boolean encryptFlag)
          Determines whether to encrypt audio content.
 void setEncryptionStartTime(int seconds)
          Specifies that content should be encrypted starting this many seconds into the content.
 void setEncryptScript(boolean encryptFlag)
          Indicates whether script data should be encrypted.
 void setEncryptVideo(boolean encryptFlag)
          Determines whether video content is to be encrypted.
 void setKeyParameters(KeyParameters keyParams)
          Sets the parameters for obtaining a key.
 void setSignatureParameters(SignatureParameters sigParams)
          Sets the signature parameters.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FLVDRMParameters

public FLVDRMParameters()
Create an FLVDRMParameters instance.

Method Detail

getSignatureParameters

public SignatureParameters getSignatureParameters()
Description copied from interface: DRMParameters
Gets the signature parameters.

Specified by:
getSignatureParameters in interface DRMParameters
Returns:
The signature parameters.
See Also:
DRMParameters.getSignatureParameters()

setSignatureParameters

public void setSignatureParameters(SignatureParameters sigParams)
Description copied from interface: DRMParameters
Sets the signature parameters.

Specified by:
setSignatureParameters in interface DRMParameters
Parameters:
sigParams - The signature parameters.
See Also:
DRMParameters.setSignatureParameters(SignatureParameters)

getKeyParameters

public KeyParameters getKeyParameters()
Description copied from interface: DRMParameters
Gets the parameters for obtaining a key.

Specified by:
getKeyParameters in interface DRMParameters
Returns:
The parameters for obtaining a key.
See Also:
DRMParameters.getKeyParameters()

setKeyParameters

public void setKeyParameters(KeyParameters keyParams)
Description copied from interface: DRMParameters
Sets the parameters for obtaining a key.

Specified by:
setKeyParameters in interface DRMParameters
Parameters:
keyParams - The parameters for obtaining a key.
See Also:
DRMParameters.setKeyParameters(KeyParameters)

setEncryptScript

public void setEncryptScript(boolean encryptFlag)
Indicates whether script data should be encrypted. Note: "onMetaData" and "onXMP" script data will not be encrypted, even if this flag is set.

Parameters:
encryptFlag - true if script data should be encrypted, false otherwise.

getEncryptScript

public boolean getEncryptScript()
Indicates whether script data will be encrypted.

Returns:
true if script data should be encrypted, false otherwise.

setEncryptVideo

public void setEncryptVideo(boolean encryptFlag)
Description copied from interface: VideoDRMParameters
Determines whether video content is to be encrypted.

Specified by:
setEncryptVideo in interface VideoDRMParameters
Parameters:
encryptFlag - true if video is to be encrypted, false otherwise.
See Also:
VideoDRMParameters.setEncryptVideo(boolean)

getEncryptVideo

public boolean getEncryptVideo()
Description copied from interface: VideoDRMParameters
Indicates whether video content will be encrypted.

Specified by:
getEncryptVideo in interface VideoDRMParameters
Returns:
true if video will be encrypted, false otherwise.
See Also:
VideoDRMParameters.getEncryptVideo()

setEncryptAudio

public void setEncryptAudio(boolean encryptFlag)
Description copied from interface: AudioDRMParameters
Determines whether to encrypt audio content.

Specified by:
setEncryptAudio in interface AudioDRMParameters
Parameters:
encryptFlag - true if audio is to be encrypted, false otherwise.
See Also:
AudioDRMParameters.setEncryptAudio(boolean)

getEncryptAudio

public boolean getEncryptAudio()
Description copied from interface: AudioDRMParameters
Indicates whether audio content will be encrypted.

Specified by:
getEncryptAudio in interface AudioDRMParameters
Returns:
true if audio will be encrypted, false otherwise.
See Also:
AudioDRMParameters.getEncryptAudio()

getEncryptionStartTime

public int getEncryptionStartTime()
Description copied from interface: DRMParameters
Specifies that content should be encrypted starting this many seconds into the content. 0 indicates that content will be encrypted from the start of the file.

Specified by:
getEncryptionStartTime in interface DRMParameters
Returns:
seconds to leave unencrypted at the start of the content
See Also:
DRMParameters.getEncryptionStartTime()

setEncryptionStartTime

public void setEncryptionStartTime(int seconds)
Description copied from interface: DRMParameters
Specifies that content should be encrypted starting this many seconds into the content. Specify 0 to indicate that content will be encrypted from the start of the file (this is the default).

Specified by:
setEncryptionStartTime in interface DRMParameters
Parameters:
seconds - number of seconds to leave unencrypted at the start of the content
See Also:
DRMParameters.setEncryptionStartTime(int)


[an error occurred while processing this directive] [an error occurred while processing this directive]