~ubuntu-branches/ubuntu/maverick/vlc/maverick

« back to all changes in this revision

Viewing changes to bindings/java/org/videolan/jvlc/Input.java

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-09-17 21:56:14 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: james.westby@ubuntu.com-20080917215614-tj0vx8xzd57e52t8
Tags: 0.9.2-1ubuntu1
* New Upstream Release, exception granted by
    - dktrkranz, norsetto, Hobbsee (via irc). LP: #270404

Changes done in ubuntu:

* add libxul-dev to build-depends
* make sure that vlc is build against libxul in configure. This doesn't
  change anything in the package, but makes it more robust if building
  in an 'unclean' chroot or when modifying the package.
* debian/control: make Vcs-* fields point to the motumedia branch
* add libx264-dev and libass-dev to build-depends
  LP: #210354, #199870
* actually enable libass support by passing --enable-libass to configure
* enable libdca: add libdca-dev to build depends and --enable-libdca
* install the x264 plugin.

Changes already in the pkg-multimedia branch in debian:

* don't install usr/share/vlc/mozilla in debian/mozilla-plugin-vlc.install  
* new upstream .desktop file now registers flash video mimetype LP: #261567
* add Xb-Npp-Applications to mozilla-plugin-vlc
* remove duplicate entries in debian/vlc-nox.install

Show diffs side-by-side

added added

removed removed

Lines of Context:
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();
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
 
}