Search in sources :

Example 1 with VideoManifestPanel

use of com.att.aro.ui.view.videotab.VideoManifestPanel in project VideoOptimzer by attdevsupport.

the class StartupDelayDialog method launchStartupCalculations.

/**
 * @param startupTime
 */
public void launchStartupCalculations(double startupTime) {
    try {
        if (startupTime >= segmentChosen.getVideoEvent().getEndTS() && segmentChosen.isSelected()) {
            if (videoStreamStartup != null) {
                videoStreamStartup.setValidationStartup(ValidationStartup.USER);
            }
            if (!allUserEventList.isEmpty()) {
                segmentChosen.getVideoEvent().setPlayRequestedTime(Double.valueOf(playRequestedTime.getText()));
                videoStream.setPlayRequestedTime(Double.valueOf(playRequestedTime.getText()));
            }
            saveStartupDelay(startupTime, segmentChosen.getVideoEvent(), videoStream, userEventChosen);
            videoSegmentAnalyzer.applyStartupDelayToStream(startupTime, segmentChosen.getVideoEvent(), videoStream, streamingVideoData);
            AROTraceData aroTraceData = mainFrame.getController().getTheModel();
            IVideoBestPractices videoBestPractices = ContextAware.getAROConfigContext().getBean(IVideoBestPractices.class);
            videoBestPractices.analyze(aroTraceData);
            getGraphPanel().setTraceData(aroTraceData);
            VideoManifestPanel videoManifestPanel = segmentTablePanel.getVideoManifestPanel();
            videoManifestPanel.refresh(segmentTablePanel.getAnalyzerResult());
            mainFrame.refreshBestPracticesTab();
            destroy();
        }
    } catch (Exception ex) {
        LOG.error("Error generating video chunk and buffer plots", ex);
        MessageDialogFactory.showMessageDialog(parentPanel, "Error in drawing buffer graphs", "Failed to generate buffer plots", JOptionPane.ERROR_MESSAGE);
    }
}
Also used : VideoManifestPanel(com.att.aro.ui.view.videotab.VideoManifestPanel) IVideoBestPractices(com.att.aro.core.IVideoBestPractices) AROTraceData(com.att.aro.core.pojo.AROTraceData)

Aggregations

IVideoBestPractices (com.att.aro.core.IVideoBestPractices)1 AROTraceData (com.att.aro.core.pojo.AROTraceData)1 VideoManifestPanel (com.att.aro.ui.view.videotab.VideoManifestPanel)1