Search in sources :

Example 1 with IVideoPlayer

use of com.att.aro.ui.view.video.IVideoPlayer in project VideoOptimzer by attdevsupport.

the class MainFrame method initVideoPlayerController.

private void initVideoPlayerController() {
    List<IVideoPlayer> players = new ArrayList<IVideoPlayer>();
    // Add all the video players intended to be used
    players.add(new VlcjPlayer(this));
    videoPlayerController = new VideoPlayerController(diagnosticsTab, players);
    modelObserver.registerObserver(videoPlayerController);
    videoPlayerController.launchPlayer(rtEdge, 0, playbackWidth, playbackHeight);
}
Also used : IVideoPlayer(com.att.aro.ui.view.video.IVideoPlayer) ArrayList(java.util.ArrayList) VlcjPlayer(com.att.aro.ui.view.video.VlcjPlayer) VideoPlayerController(com.att.aro.ui.view.video.VideoPlayerController)

Example 2 with IVideoPlayer

use of com.att.aro.ui.view.video.IVideoPlayer in project VideoOptimzer by attdevsupport.

the class SegmentTablePanel method launchStartUpDelayDialog.

public void launchStartUpDelayDialog() {
    GoogleAnalyticsUtil.getGoogleAnalyticsInstance().sendViews("StartupDelayDialog");
    IVideoPlayer player = aroView.getVideoPlayer();
    double maxDuration = player.getDuration();
    List<UserEvent> userEventList = analyzerResult.getAnalyzerResult().getTraceresult().getUserEvents();
    if (maxDuration >= 0) {
        selectVideoStreamWithRefresh(videoStream);
        try {
            dialog = new StartupDelayDialog(aroView.getGraphPanel(), maxDuration, videoStream, userEventList, this, viewIndex);
            dialog.pack();
            dialog.setSize(dialog.getPreferredSize());
            dialog.validate();
            dialog.setModalityType(ModalityType.APPLICATION_MODAL);
            dialog.setVisible(true);
        } catch (Exception e) {
            LOG.error("Exception in StartupDelayDialog:", e);
            new MessageDialogFactory().showErrorDialog(null, ResourceBundleHelper.getMessageString("startupdelay.error.message"));
        }
    }
}
Also used : IVideoPlayer(com.att.aro.ui.view.video.IVideoPlayer) MessageDialogFactory(com.att.aro.ui.commonui.MessageDialogFactory) StartupDelayDialog(com.att.aro.ui.view.diagnostictab.StartupDelayDialog) UserEvent(com.att.aro.core.peripheral.pojo.UserEvent)

Aggregations

IVideoPlayer (com.att.aro.ui.view.video.IVideoPlayer)2 UserEvent (com.att.aro.core.peripheral.pojo.UserEvent)1 MessageDialogFactory (com.att.aro.ui.commonui.MessageDialogFactory)1 StartupDelayDialog (com.att.aro.ui.view.diagnostictab.StartupDelayDialog)1 VideoPlayerController (com.att.aro.ui.view.video.VideoPlayerController)1 VlcjPlayer (com.att.aro.ui.view.video.VlcjPlayer)1 ArrayList (java.util.ArrayList)1