List of usage examples for com.liferay.portal.kernel.util PropsKeys DL_FILE_ENTRY_PREVIEW_VIDEO_FRAME_RATE_DENOMINATOR
String DL_FILE_ENTRY_PREVIEW_VIDEO_FRAME_RATE_DENOMINATOR
To view the source code for com.liferay.portal.kernel.util PropsKeys DL_FILE_ENTRY_PREVIEW_VIDEO_FRAME_RATE_DENOMINATOR.
Click Source Link
From source file:com.liferay.portlet.documentlibrary.util.LiferayVideoConverter.java
License:Open Source License
protected void initVideoFrameRateMap(Properties videoProperties) { _videoFrameRateMap = new HashMap<String, IRational>(); for (String previewVideoContainer : _previewVideoContainers) { int numerator = GetterUtil.getInteger( videoProperties.getProperty(PropsKeys.DL_FILE_ENTRY_PREVIEW_VIDEO_FRAME_RATE_NUMERATOR + "[" + previewVideoContainer + "]")); int denominator = GetterUtil.getInteger( videoProperties.getProperty(PropsKeys.DL_FILE_ENTRY_PREVIEW_VIDEO_FRAME_RATE_DENOMINATOR + StringPool.OPEN_BRACKET + previewVideoContainer + StringPool.CLOSE_BRACKET)); if ((numerator > 0) && (denominator > 0)) { IRational iRational = IRational.make(numerator, denominator); _videoFrameRateMap.put(previewVideoContainer, iRational); if (_log.isInfoEnabled()) { _log.info("Frame rate for " + previewVideoContainer + " set to " + iRational.getNumerator() + "/" + iRational.getDenominator()); }/*from w w w. ja v a 2 s . co m*/ } } }