Autopsy  4.10.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel Class Reference

Inherits JPanel, and org.sleuthkit.autopsy.contentviewers.MediaFileViewer.MediaViewPanel.


class  ExtractMedia

Public Member Functions

 MediaPlayerPanel ()
JButton getPauseButton ()
JLabel getProgressLabel ()
JSlider getProgressSlider ()
List< String > getSupportedExtensions ()
List< String > getSupportedMimeTypes ()
JPanel getVideoPanel ()
boolean isInited ()
boolean isSupported (AbstractFile file)

Private Member Functions

void customizeComponents ()
void initComponents ()
boolean initGst ()
void pauseButtonActionPerformed (java.awt.event.ActionEvent evt)

Private Attributes

javax.swing.JPanel controlPanel
AbstractFile currentFile
long durationMillis = 0
ExtractMedia extractMediaWorker
boolean gstInited
volatile PlayBin gstPlayBin
GstVideoRendererPanel gstVideoRenderer
javax.swing.JLabel infoLabel
javax.swing.JButton pauseButton
final Object playbinLock = new Object()
javax.swing.JLabel progressLabel
javax.swing.JSlider progressSlider
Timer timer
int totalHours
javax.swing.JPanel videoPanel

Static Private Attributes

static final long END_TIME_MARGIN_NS = 50000000
static final String[] FILE_EXTENSIONS
static final Logger logger = Logger.getLogger(MediaPlayerPanel.class.getName())
static final String MEDIA_PLAYER_ERROR_STRING = NbBundle.getMessage(MediaPlayerPanel.class, "GstVideoPanel.cannotProcFile.err")
static final List< String > MIME_TYPES

Detailed Description

This is a video player that is part of the Media View layered pane. It uses GStreamer to process the video and JavaFX to display it.

Definition at line 67 of file

Constructor & Destructor Documentation

org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.MediaPlayerPanel ( )

Creates new form MediaViewVideoPanel

Definition at line 192 of file

Member Function Documentation

void org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.customizeComponents ( )

Definition at line 222 of file

JButton org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.getPauseButton ( )

Definition at line 197 of file

JLabel org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.getProgressLabel ( )

Definition at line 201 of file

JSlider org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.getProgressSlider ( )

Definition at line 205 of file

List<String> org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.getSupportedExtensions ( )

returns supported extensions (each starting with .)


Implements org.sleuthkit.autopsy.contentviewers.MediaFileViewer.MediaViewPanel.

Definition at line 632 of file

List<String> org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.getSupportedMimeTypes ( )
supported mime types

Implements org.sleuthkit.autopsy.contentviewers.MediaFileViewer.MediaViewPanel.

Definition at line 637 of file

JPanel org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.getVideoPanel ( )

Definition at line 209 of file

void org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.initComponents ( )

This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.

Definition at line 430 of file

boolean org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.initGst ( )
boolean org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.isInited ( )

Has this MediaPlayerPanel been initialized correctly?


Definition at line 218 of file

boolean org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.isSupported ( AbstractFile  file)

Although it seems too restrictive, requiring both a supported extension and a supported MIME type prevents two undesirable behaviors:

1) Until AUT-1766 and AUT-1801 are fixed, we incorrectly identify all iff files as audio/aiff. This means that if this panel went with the looser 'mime type OR extension' criteria we use for images, then this panel would attempt (and fail) to display all iff files, even non audio ones.

2) The looser criteria means we are less confident about the files we are potentialy sending to GStreamer on 32bit jvms. We are less comfortable with the error handling for GStreamer, and don't want to send it files which might cause it trouble.

Implements org.sleuthkit.autopsy.contentviewers.MediaFileViewer.MediaViewPanel.

Definition at line 642 of file

References org.sleuthkit.autopsy.modules.filetypeid.FileTypeDetector.getMIMEType().

void org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.pauseButtonActionPerformed ( java.awt.event.ActionEvent  evt)

Member Data Documentation

javax.swing.JPanel org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.controlPanel

Definition at line 551 of file

AbstractFile org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.currentFile

Definition at line 181 of file

long org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.durationMillis = 0

Definition at line 176 of file

final long org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.END_TIME_MARGIN_NS = 50000000

Definition at line 186 of file

ExtractMedia org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.extractMediaWorker

Definition at line 184 of file

final String [] org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.FILE_EXTENSIONS
Initial value:
= new String[] {

Definition at line 69 of file

boolean org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.gstInited

Definition at line 173 of file

volatile PlayBin org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.gstPlayBin

Definition at line 178 of file

GstVideoRendererPanel org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.gstVideoRenderer

Definition at line 179 of file

javax.swing.JLabel org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.infoLabel

Definition at line 552 of file

final Logger org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.logger = Logger.getLogger(MediaPlayerPanel.class.getName())

Definition at line 172 of file

final String org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.MEDIA_PLAYER_ERROR_STRING = NbBundle.getMessage(MediaPlayerPanel.class, "GstVideoPanel.cannotProcFile.err")

Definition at line 174 of file

final List<String> org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.MIME_TYPES

Definition at line 99 of file

javax.swing.JButton org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.pauseButton

Definition at line 553 of file

final Object org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.playbinLock = new Object()

Definition at line 180 of file

final int org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.PLAYER_STATUS_UPDATE_INTERVAL_MS = 50

Definition at line 187 of file

javax.swing.JLabel org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.progressLabel

Definition at line 554 of file

javax.swing.JSlider org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.progressSlider

Definition at line 555 of file

Timer org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.timer

Definition at line 183 of file

int org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.totalHours

Definition at line 177 of file

javax.swing.JPanel org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.videoPanel

Definition at line 556 of file

The documentation for this class was generated from the following file:

Copyright © 2012-2018 Basis Technology. Generated on: Fri Mar 22 2019
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.