]> git.sesse.net Git - vlc/blob - bindings/java/org/videolan/jvlc/Input.java
7b71231a342438760ae09a7cd8dad141d82f2125
[vlc] / bindings / java / org / videolan / jvlc / Input.java
1 package org.videolan.jvlc;
2
3 public class Input implements InputIntf {
4         
5     private long libvlcInstance;
6
7         /*
8      *  Input native methods
9      */
10     private native long     _getLength();
11     private native float    _getPosition();
12     private native long     _getTime();
13     private native float        _getFPS();
14     private native void         _setTime(long value);
15     private native void         _setPosition(float value);
16     private native boolean  _isPlaying();
17     private native boolean  _hasVout() throws VLCException;
18
19     
20     public Input( long instance ) {
21         this.libvlcInstance = instance;
22     }
23
24         public long getLength() throws VLCException {
25         return _getLength();        
26     }
27
28     public long getTime() throws VLCException {
29         return _getTime();
30     }
31
32     public float getPosition() throws VLCException {
33         return _getPosition();
34         
35     }
36
37     public void setTime(long time) throws VLCException {
38         _setTime(time);
39     }
40
41     public void setPosition(float position) throws VLCException {
42         _setPosition(position);
43     }
44
45     public double getFPS() throws VLCException {
46         return _getFPS();
47     }
48     
49     public boolean isPlaying() throws VLCException {
50         return _isPlaying();
51     }
52
53     public boolean hasVout() throws VLCException {
54         return _hasVout();
55     }
56     
57         public long getInstance() {
58                 return libvlcInstance;
59         }
60
61 }