Package com.volantis.mcs.policies.variants.audio

Examples of com.volantis.mcs.policies.variants.audio.AudioMetaData


            // into attributes' srcType
            if (variantType == VariantType.VIDEO) {
                VideoMetaData metaData = (VideoMetaData) variant.getMetaData();
                encodingIterator = metaData.getVideoEncoding().mimeTypes();
            } else if (variantType == VariantType.AUDIO) {
                AudioMetaData metaData = (AudioMetaData) variant.getMetaData();
                encodingIterator = metaData.getAudioEncoding().mimeTypes();
            } else if (variantType == VariantType.IMAGE) {
                // This is incorrect if the asset is marked as
                // <conversion-mode>always</conversion-mode>
                // as we do not know what MAP will convert it to.
                ImageMetaData metaData = (ImageMetaData) variant.getMetaData();
                encodingIterator = metaData.getImageEncoding().mimeTypes();
            }

            int counter = 0;
            while (encodingIterator != null && encodingIterator.hasNext()) {
                if (counter > 0) {
View Full Code Here


        if (variant == null) {
            MediaUtilities.tryAltText(attributes, pageContext, policy,
                    attributes.getAlt(), aAttributes.getStyles());
        } else {

            AudioMetaData audio = (AudioMetaData) variant.getMetaData();

            // Currently this audio tag is only supported by the MMS_SMIL_2_0
            // protocol.  This only suports AMR so we need only deal with
            // assets that have AMR encoding.
            AudioEncoding encoding = audio.getAudioEncoding();
            if (encoding == AudioEncoding.AMR) {
                doAMR(selected, attributes, protocol, pageContext);
                if (logger.isDebugEnabled()) {
                    logger.debug("Done a Audio tag");
                }
View Full Code Here

    public RepositoryObject createOldObject(
            ActivatedVariablePolicy policy, Variant variant,
            InternalDevice device) {

        // Convert the variant into an asset.
        AudioMetaData metaData = (AudioMetaData) variant.getMetaData();

        AudioAsset asset = new AudioAsset();

        setAssetIdentity(policy, asset);

        asset.setEncoding(ENCODING.get(metaData.getAudioEncoding()));

        setValue(asset, variant);

        return asset;
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.policies.variants.audio.AudioMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.