com.adobe.flashaccess.sdk.media.drm.format.f4v
Class F4VDRMParameters

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

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

The parameters for encrypting F4V media.


Nested Class Summary
static class F4VDRMParameters.EncryptionLevel
          Indicates whether high (all), medium, or low encryption should be used for video
 
Constructor Summary
F4VDRMParameters()
          Creates an F4VDRMParameters 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 getEncryptVideo()
          Indicates whether video content will be encrypted.
 KeyParameters getKeyParameters()
          Gets the parameters for obtaining a key.
 SignatureParameters getSignatureParameters()
          Gets the signature parameters.
 F4VDRMParameters.EncryptionLevel getVideoEncryptionLevel()
          Specifies whether video should be encrypted in its entirety or partially.
 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 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.
 void setVideoEncryptionLevel(F4VDRMParameters.EncryptionLevel level)
          Specifies whether video should be encrypted in its entirety or partially.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

F4VDRMParameters

public F4VDRMParameters()
Creates an F4VDRMParameters 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)

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) If video encryption is disabled, the video encryption level is ignored.

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()

setVideoEncryptionLevel

public void setVideoEncryptionLevel(F4VDRMParameters.EncryptionLevel level)
Specifies whether video should be encrypted in its entirety or partially. Only H.264 video content can be partially encrypted. Other video types will be fully encrypted regardless of this setting. If video encryption is disabled, the video encryption level is ignored. If the encryption start time is also set, the specified number of seconds will not be encrypted even if the encryption level is set to High.

Parameters:
level - EncryptionLevel

getVideoEncryptionLevel

public F4VDRMParameters.EncryptionLevel getVideoEncryptionLevel()
Specifies whether video should be encrypted in its entirety or partially. Only H.264 video content can be partially encrypted. Other video types will be fully encrypted regardless of this setting.

Returns:
EncryptionLevel

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]