Inherits JPanel, and org.sleuthkit.autopsy.contentviewers.MediaFileViewer.MediaViewPanel.
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 63 of file MediaPlayerPanel.java.
org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.MediaPlayerPanel |
( |
| ) |
throws GstException, UnsatisfiedLinkError |
void org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.customizeComponents |
( |
| ) |
|
|
private |
void org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.enableComponents |
( |
boolean |
isEnabled | ) |
|
|
private |
String org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.formatTime |
( |
long |
ns, |
|
|
boolean |
ceiling |
|
) |
| |
|
private |
List<String> org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.getSupportedExtensions |
( |
| ) |
|
List<String> org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.getSupportedMimeTypes |
( |
| ) |
|
void org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.initComponents |
( |
| ) |
|
|
private |
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 526 of file MediaPlayerPanel.java.
void org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.initGst |
( |
| ) |
throws GstException, UnsatisfiedLinkError |
|
private |
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 339 of file MediaPlayerPanel.java.
References org.sleuthkit.autopsy.modules.filetypeid.FileTypeDetector.getMIMEType().
void org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.playButtonActionPerformed |
( |
java.awt.event.ActionEvent |
evt | ) |
|
|
private |
void org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.updateTimeLabel |
( |
long |
start, |
|
|
long |
total |
|
) |
| |
|
private |
Formats current time and total time as the following ratio: HH:MM:SS / HH:MM:SS
- Parameters
-
Definition at line 381 of file MediaPlayerPanel.java.
javax.swing.JSlider org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.audioSlider |
|
private |
javax.swing.JPanel org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.controlPanel |
|
private |
Bus.EOS org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.endOfStreamListener |
|
private |
Bus.ERROR org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.errorListener |
|
private |
ExtractMedia org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.extractMediaWorker |
|
private |
final String [] org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.FILE_EXTENSIONS |
|
staticprivate |
Initial value:= new String[]{
".3g2",
".3gp",
".3gpp",
".aac",
".aif",
".aiff",
".amr",
".asf",
".au",
".avi",
".flac",
".flv",
".m4a",
".m4v",
".mka",
".mkv",
".mov",
".mp2",
".mp3",
".mp4",
".mpeg",
".mpg",
".mxf",
".ogg",
".wav",
".webm",
".wma",
".wmv",}
Definition at line 66 of file MediaPlayerPanel.java.
JavaFxAppSink org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.fxAppSink |
|
private |
volatile PlayBin org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.gstPlayBin |
|
private |
javax.swing.JLabel org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.infoLabel |
|
private |
final Logger org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.logger = Logger.getLogger(MediaPlayerPanel.class.getName()) |
|
staticprivate |
final String org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.MEDIA_PLAYER_ERROR_STRING |
|
staticprivate |
final List<String> org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.MIME_TYPES |
|
staticprivate |
javax.swing.JButton org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.playButton |
|
private |
final int org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.PROGRESS_SLIDER_SIZE = 2000 |
|
staticprivate |
javax.swing.JLabel org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.progressLabel |
|
private |
javax.swing.JSlider org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.progressSlider |
|
private |
Bus.STATE_CHANGED org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.stateChangeListener |
|
private |
final Timer org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.timer = new Timer(75, new VideoPanelUpdater()) |
|
private |
javax.swing.JPanel org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.videoPanel |
|
private |
javax.swing.JLabel org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.VolumeIcon |
|
private |
The documentation for this class was generated from the following file: