Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
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
Show 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
...
...
@@ -294,6 +294,12 @@ public interface LibVlc extends Library
void
libvlc_release
(
LibVlcInstance
libvlc_instance_t
);
String
libvlc_get_version
();
String
libvlc_get_compiler
();
String
libvlc_get_changeset
();
// video
void
libvlc_video_set_parent
(
LibVlcInstance
libvlc_instance
,
long
drawable
,
libvlc_exception_t
exception
);
...
...
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
()
{
...
...
@@ -116,8 +119,8 @@ public class LibVlcImpl
long
drawable
=
com
.
sun
.
jna
.
Native
.
getComponentID
(
canvas
);
libVlc
.
libvlc_
video_set_parent
(
libvlc_instance_t
,
drawable
,
exception
);
libVlc
.
libvlc_
media_player_play
(
mediaPlayer
,
exception
);
libVlc
.
libvlc_media_player_
play
(
mediaInstanc
e
,
exception
);
libVlc
.
libvlc_media_player_
set_drawable
(
mediaPlayer
,
drawabl
e
,
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