001/*
002 * (C) Copyright 2015 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 *
016 * Contributors:
017 *     Thomas Roger
018 */
019package org.nuxeo.ecm.platform.video.service;
020
021import org.nuxeo.common.xmap.annotation.XNode;
022import org.nuxeo.common.xmap.annotation.XObject;
023
024/**
025 * Configuration of the {@link VideoService}.
026 * <p>
027 * Contains
028 *
029 * @since 7.4
030 */
031@XObject("configuration")
032public class Configuration {
033
034    public static final Configuration DEFAULT_CONFIGURATION = new Configuration();
035
036    @XNode("previewScreenshotInDurationPercent")
037    protected double previewScreenshotInDurationPercent = 10.0;
038
039    @XNode("storyboardMinDuration")
040    protected double storyboardMinDuration = 10.0;
041
042    @XNode("storyboardThumbnailCount")
043    protected int storyboardThumbnailCount = 9;
044
045    public double getPreviewScreenshotInDurationPercent() {
046        return previewScreenshotInDurationPercent;
047    }
048
049    public int getStoryboardThumbnailCount() {
050        return storyboardThumbnailCount;
051    }
052
053    public double getStoryboardMinDuration() {
054        return storyboardMinDuration;
055    }
056}