Example usage for com.liferay.portal.kernel.util PropsKeys DL_FILE_ENTRY_PREVIEW_VIDEO_HEIGHT

List of usage examples for com.liferay.portal.kernel.util PropsKeys DL_FILE_ENTRY_PREVIEW_VIDEO_HEIGHT

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util PropsKeys DL_FILE_ENTRY_PREVIEW_VIDEO_HEIGHT.

Prototype

String DL_FILE_ENTRY_PREVIEW_VIDEO_HEIGHT

To view the source code for com.liferay.portal.kernel.util PropsKeys DL_FILE_ENTRY_PREVIEW_VIDEO_HEIGHT.

Click Source Link

Usage

From source file:com.liferay.portlet.documentlibrary.util.LiferayVideoConverter.java

License:Open Source License

public LiferayVideoConverter(String inputURL, String outputURL, String tempFileName, Properties videoProperties,
        Properties ffpresetProperties) {

    _inputURL = inputURL;//from   w w w .ja  v  a2  s.c om
    _outputURL = outputURL;
    _tempFileName = tempFileName;
    _ffpresetProperties = ffpresetProperties;

    _height = GetterUtil.getInteger(videoProperties.getProperty(PropsKeys.DL_FILE_ENTRY_PREVIEW_VIDEO_HEIGHT),
            _height);
    _width = GetterUtil.getInteger(videoProperties.getProperty(PropsKeys.DL_FILE_ENTRY_PREVIEW_VIDEO_WIDTH),
            _width);
    _previewVideoContainers = StringUtil
            .split(videoProperties.getProperty(PropsKeys.DL_FILE_ENTRY_PREVIEW_VIDEO_CONTAINERS));

    initVideoBitRateMap(videoProperties);
    initVideoFrameRateMap(videoProperties);
}