Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
72f3bf6b
Commit
72f3bf6b
authored
Apr 03, 2006
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audio / video libvlc functions binded.
parent
fcd621cc
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
419 additions
and
150 deletions
+419
-150
bindings/java/org/videolan/jvlc/JVLC.java
bindings/java/org/videolan/jvlc/JVLC.java
+71
-35
bindings/java/vlc-libvlc-jni.cc
bindings/java/vlc-libvlc-jni.cc
+348
-115
No files found.
bindings/java/org/videolan/jvlc/JVLC.java
View file @
72f3bf6b
/*****************************************************************************
/*****************************************************************************
* JVLC.java: Main Java Class, represents a libvlc_instance_t object
* JVLC.java: Main Java Class, represents a libvlc_instance_t object
*****************************************************************************
*****************************************************************************
*
* Copyright (C) 1998-2006 the VideoLAN team
* Copyright (C) 1998-2006 the VideoLAN team
*
* Author: Filippo Carone <filippo@carone.org>
*
* Created on 28-feb-2006
*
*
* $Id$
* $Id$
*
*
* Authors: Filippo Carone <filippo@carone.org>
* This program is free software; you can redistribute it
*
* and/or modify it under the terms of the GNU General Public License
* This program is free software; you can redistribute it and/or modify
* as published by the Free Software Foundation; either version 2 of the
* it under the terms of the GNU General Public License as published by
* License, or (at your option) any later version.
* the Free Software Foundation; either version 2 of the License, or
*
* (at your option) any later version.
* This program is distributed in the hope that it will be useful, but
*
* WITHOUT ANY WARRANTY; without even the implied warranty of
* This program is distributed in the hope that it will be useful,
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* General Public License for more details.
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
*
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public
*
* License along with this program; if not, write to the Free Software
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
*
*/
/**
* @author Filippo Carone <filippo@carone.org>
*/
package
org.videolan.jvlc
;
package
org.videolan.jvlc
;
public
class
JVLC
implements
JLibVLC
{
public
class
JVLC
implements
JLibVLC
{
static
{
static
{
System
.
load
(
System
.
getProperty
(
"user.dir"
)
+
"/libjvlc.so"
);
System
.
load
(
System
.
getProperty
(
"user.dir"
)
+
"/libjvlc.so"
);
}
}
...
@@ -36,50 +43,72 @@ public class JVLC implements JLibVLC {
...
@@ -36,50 +43,72 @@ public class JVLC implements JLibVLC {
public
JVLC
()
{
public
JVLC
()
{
_instance
=
createInstance
();
_instance
=
createInstance
();
playlist
=
new
Playlist
(
_instance
);
playlist
=
new
Playlist
(
_instance
);
}
}
public
JVLC
(
String
[]
args
)
{
public
JVLC
(
String
[]
args
)
{
_instance
=
createInstance
(
args
);
_instance
=
createInstance
(
args
);
playlist
=
new
Playlist
(
_instance
);
playlist
=
new
Playlist
(
_instance
);
}
}
/*
* Core methods
*/
private
native
long
createInstance
();
private
native
long
createInstance
();
private
native
long
createInstance
(
String
[]
args
);
private
native
long
createInstance
(
String
[]
args
);
/*
* Audio native methods
*/
private
native
boolean
_getMute
();
private
native
void
_setMute
(
boolean
value
);
private
native
void
_toggleMute
();
private
native
int
_getVolume
();
private
native
void
_setVolume
(
int
volume
);
public
void
getMute
()
{
/*
* Video native methods
*/
private
native
void
_toggleFullscreen
();
private
native
void
_setFullscreen
(
boolean
value
);
private
native
boolean
_getFullscreen
();
public
boolean
getMute
()
{
// TODO Auto-generated method stub
// TODO Auto-generated method stub
return
_getMute
();
}
}
public
void
setMute
()
{
public
void
setMute
(
boolean
value
)
{
// TODO Auto-generated method stub
_setMute
(
value
);
}
}
public
void
toggleMute
()
{
_toggleMute
();
}
public
void
getVolume
()
{
public
int
getVolume
()
{
// TODO Auto-generated method stub
return
_getVolume
();
}
}
public
void
setVolume
()
{
public
void
setVolume
(
int
volume
)
{
// TODO Auto-generated method stub
_setVolume
(
volume
);
}
}
public
void
toggleFullscreen
()
{
public
void
toggleFullscreen
()
{
// TODO Auto-generated method stub
_toggleFullscreen
();
}
}
public
void
setFullscreen
()
{
public
void
setFullscreen
(
boolean
value
)
{
// TODO Auto-generated method stub
_setFullscreen
(
value
);
}
}
public
void
getFullscreen
()
{
public
boolean
getFullscreen
()
{
// TODO Auto-generated method stub
return
_getFullscreen
();
}
}
public
void
getLength
()
{
public
void
getLength
()
{
...
@@ -111,4 +140,11 @@ public class JVLC implements JLibVLC {
...
@@ -111,4 +140,11 @@ public class JVLC implements JLibVLC {
return
_instance
;
return
_instance
;
}
}
/*
* Getters and setters
*/
public
Playlist
getPlaylist
()
{
return
playlist
;
}
}
}
bindings/java/vlc-libvlc-jni.cc
View file @
72f3bf6b
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment