Commit 23c60f76 authored by Filippo Carone's avatar Filippo Carone

Do not use absolute paths in java VlcClient

parent ced0913d
...@@ -71,7 +71,7 @@ class VLCPlayerFrame extends Frame { ...@@ -71,7 +71,7 @@ class VLCPlayerFrame extends Frame {
add( fullScreenButton, gridBagConstraints); add( fullScreenButton, gridBagConstraints);
jTextField1.setText("file:///home/little/a.avi"); jTextField1.setText("file://a.avi");
gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0; gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 1; gridBagConstraints.gridy = 1;
...@@ -143,7 +143,7 @@ class VLCPlayerFrame extends Frame { ...@@ -143,7 +143,7 @@ class VLCPlayerFrame extends Frame {
private void setButtonActionPerformed(java.awt.event.ActionEvent evt) { private void setButtonActionPerformed(java.awt.event.ActionEvent evt) {
try { try {
jvlc.playlist.add("file:///home/little/a.avi", "a.avi"); jvlc.playlist.add("file://a.avi", "a.avi");
jvlc.playlist.play(-1, null); jvlc.playlist.play(-1, null);
} catch (VLCException e) { } catch (VLCException e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment