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 86 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 |
void org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.fastForwardButtonActionPerformed |
( |
java.awt.event.ActionEvent |
evt | ) |
|
|
private |
String org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.formatTime |
( |
long |
ns | ) |
|
|
private |
double org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.getPlayBackRate |
( |
| ) |
|
|
private |
Reads the current selected playback rate from the speed combo box.
- Returns
- The selected rate.
Definition at line 483 of file MediaPlayerPanel.java.
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 813 of file MediaPlayerPanel.java.
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 428 of file MediaPlayerPanel.java.
References org.sleuthkit.autopsy.modules.filetypeid.FileTypeDetector.getMIMEType().
void org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.playBackSpeedComboBoxActionPerformed |
( |
java.awt.event.ActionEvent |
evt | ) |
|
|
private |
void org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.playButtonActionPerformed |
( |
java.awt.event.ActionEvent |
evt | ) |
|
|
private |
void org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.rewindButtonActionPerformed |
( |
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 474 of file MediaPlayerPanel.java.
javax.swing.JSlider org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.audioSlider |
|
private |
javax.swing.JPanel org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.buttonPanel |
|
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 |
javax.swing.JButton org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.fastForwardButton |
|
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 89 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 |
volatile boolean org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.IS_GST_ENABLED = true |
|
staticprivate |
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 |
final ImageIcon org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.pauseIcon = new ImageIcon(getClass().getResource("/org/sleuthkit/autopsy/contentviewers/images/Pause-01.png")) |
|
private |
javax.swing.JPanel org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.playBackPanel |
|
private |
javax.swing.JComboBox<String> org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.playBackSpeedComboBox |
|
private |
javax.swing.JLabel org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.playBackSpeedLabel |
|
private |
javax.swing.JButton org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.playButton |
|
private |
final ImageIcon org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.playIcon = new ImageIcon(getClass().getResource("/org/sleuthkit/autopsy/contentviewers/images/Play-arrow-01.png")) |
|
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 |
javax.swing.JButton org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.rewindButton |
|
private |
final int org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.SKIP_IN_SECONDS = 30 |
|
staticprivate |
final Semaphore org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.sliderLock |
|
private |
Bus.STATE_CHANGED org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.stateChangeListener |
|
private |
final Timer org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.timer = new Timer(16, 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: