Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
347cc8cc
Commit
347cc8cc
authored
Jul 19, 2008
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extra info about compiler and revision name added binded from libvlc
parent
a3b88389
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
bindings/java/core/src/main/java/org/videolan/jvlc/internal/LibVlc.java
...core/src/main/java/org/videolan/jvlc/internal/LibVlc.java
+6
-0
bindings/java/core/src/main/java/org/videolan/jvlc/internal/LibVlcImpl.java
.../src/main/java/org/videolan/jvlc/internal/LibVlcImpl.java
+9
-6
No files found.
bindings/java/core/src/main/java/org/videolan/jvlc/internal/LibVlc.java
View file @
347cc8cc
...
...
@@ -293,6 +293,12 @@ public interface LibVlc extends Library
LibVlcInstance
libvlc_new
(
int
argc
,
String
[]
argv
,
libvlc_exception_t
exception
);
void
libvlc_release
(
LibVlcInstance
libvlc_instance_t
);
String
libvlc_get_version
();
String
libvlc_get_compiler
();
String
libvlc_get_changeset
();
// video
...
...
bindings/java/core/src/main/java/org/videolan/jvlc/internal/LibVlcImpl.java
View file @
347cc8cc
...
...
@@ -26,7 +26,6 @@
package
org.videolan.jvlc.internal
;
import
java.awt.Canvas
;
import
java.awt.Component
;
import
javax.swing.JFrame
;
import
javax.swing.JPanel
;
...
...
@@ -56,14 +55,18 @@ public class LibVlcImpl
final
Object
lock
=
new
Object
();
System
.
out
.
println
(
"Starting vlc"
);
System
.
out
.
println
(
"version: "
+
libVlc
.
libvlc_get_version
());
System
.
out
.
println
(
"changeset: "
+
libVlc
.
libvlc_get_changeset
());
System
.
out
.
println
(
"compiler: "
+
libVlc
.
libvlc_get_compiler
());
LibVlcInstance
libvlc_instance_t
=
libVlc
.
libvlc_new
(
0
,
new
String
[]
{
"/usr/local/bin/vlc"
},
exception
);
LibVlcMediaDescriptor
mediaDescriptor
=
libVlc
.
libvlc_media_new
(
libvlc_instance_t
,
"/home/carone/a.avi"
,
exception
);
LibVlcMediaInstance
media
Instance
=
libVlc
.
libvlc_media_player_new_from_media
(
mediaDescriptor
,
exception
);
LibVlcMediaInstance
media
Player
=
libVlc
.
libvlc_media_player_new_from_media
(
mediaDescriptor
,
exception
);
LibVlcEventManager
mediaInstanceEventManager
=
libVlc
.
libvlc_media_player_event_manager
(
media
Instance
,
exception
);
LibVlcEventManager
mediaInstanceEventManager
=
libVlc
.
libvlc_media_player_event_manager
(
media
Player
,
exception
);
LibVlcCallback
played
=
new
LibVlcCallback
()
{
...
...
@@ -115,9 +118,9 @@ public class LibVlcImpl
frame
.
pack
();
long
drawable
=
com
.
sun
.
jna
.
Native
.
getComponentID
(
canvas
);
libVlc
.
libvlc_video_set_parent
(
libvlc_instance_t
,
drawable
,
exception
);
libVlc
.
libvlc_media_player_play
(
mediaInstance
,
exception
);
libVlc
.
libvlc_media_player_play
(
mediaPlayer
,
exception
);
libVlc
.
libvlc_media_player_set_drawable
(
mediaPlayer
,
drawable
,
exception
);
}
}
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