Once content has been encrypted and a license has been pre-generated, the license may be embedded into the encrypted content.
To embed a license, obtain an instance of com.adobe.flashaccess.sdk.media.drm.contentupdate.MediaKeyMetaDataUpdater. If you know the type of the encrypted content, use the constructor for FLVKeyMetaDataUpdater or F4VKeyMetaDataUpdater; otherwise, use MediaProcessorFactory.getMediaProcessor() to return an instance based on the file type detected. Construct a KeyMetaDataCallback and invoke modifyKeyMetaData(). Your callback implementation will be invoked when the DRM metadata is located in the encrypted content. Based on the metadata found, you can choose a license to embed and set the license using EmbedLicenseKeyMetaData.setEmbeddedLicenses().
For sample code demonstrating embedded licenses, see com.adobe.flashaccess.samples.licenseembedder.EmbedLicense in the Reference Implementation Command Line Tools “Samples” directory.
See Out-of-band Licenses.