Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
8dc81141
Commit
8dc81141
authored
Jul 21, 2008
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jvlc: MediaInstance* renamed to MediaPlayer*
parent
f3ebe393
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
bindings/java/core/src/main/java/org/videolan/jvlc/MediaPlayer.java
...ava/core/src/main/java/org/videolan/jvlc/MediaPlayer.java
+6
-6
bindings/java/core/src/main/java/org/videolan/jvlc/event/MediaPlayerCallback.java
...ain/java/org/videolan/jvlc/event/MediaPlayerCallback.java
+3
-3
bindings/java/core/src/main/java/org/videolan/jvlc/event/MediaPlayerListener.java
...ain/java/org/videolan/jvlc/event/MediaPlayerListener.java
+1
-1
No files found.
bindings/java/core/src/main/java/org/videolan/jvlc/MediaPlayer.java
View file @
8dc81141
...
...
@@ -29,8 +29,8 @@ import java.util.ArrayList;
import
java.util.EnumSet
;
import
java.util.List
;
import
org.videolan.jvlc.event.Media
Instance
Callback
;
import
org.videolan.jvlc.event.Media
Instance
Listener
;
import
org.videolan.jvlc.event.Media
Player
Callback
;
import
org.videolan.jvlc.event.Media
Player
Listener
;
import
org.videolan.jvlc.internal.LibVlc
;
import
org.videolan.jvlc.internal.LibVlcEventType
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcEventManager
;
...
...
@@ -47,7 +47,7 @@ public class MediaPlayer
private
final
LibVlcEventManager
eventManager
;
private
List
<
Media
InstanceCallback
>
callbacks
=
new
ArrayList
<
MediaInstance
Callback
>();
private
List
<
Media
PlayerCallback
>
callbacks
=
new
ArrayList
<
MediaPlayer
Callback
>();
private
MediaDescriptor
mediaDescriptor
;
...
...
@@ -151,9 +151,9 @@ public class MediaPlayer
return
libvlc
.
libvlc_media_player_get_fps
(
instance
,
exception
);
}
public
void
addListener
(
final
Media
Instance
Listener
listener
)
public
void
addListener
(
final
Media
Player
Listener
listener
)
{
Media
InstanceCallback
callback
=
new
MediaInstance
Callback
(
this
,
listener
);
Media
PlayerCallback
callback
=
new
MediaPlayer
Callback
(
this
,
listener
);
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
for
(
LibVlcEventType
event
:
EnumSet
.
range
(
LibVlcEventType
.
libvlc_MediaPlayerPlaying
,
...
...
@@ -171,7 +171,7 @@ public class MediaPlayer
protected
void
finalize
()
throws
Throwable
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
for
(
Media
InstanceCallback
callback
:
callbacks
)
for
(
Media
PlayerCallback
callback
:
callbacks
)
{
for
(
LibVlcEventType
event
:
EnumSet
.
range
(
LibVlcEventType
.
libvlc_MediaPlayerPlaying
,
...
...
bindings/java/core/src/main/java/org/videolan/jvlc/event/Media
Instance
Callback.java
→
bindings/java/core/src/main/java/org/videolan/jvlc/event/Media
Player
Callback.java
View file @
8dc81141
...
...
@@ -35,13 +35,13 @@ import org.videolan.jvlc.internal.LibVlc.media_player_time_changed;
import
com.sun.jna.Pointer
;
public
class
Media
Instance
Callback
implements
LibVlcCallback
public
class
Media
Player
Callback
implements
LibVlcCallback
{
private
Media
Instance
Listener
listener
;
private
Media
Player
Listener
listener
;
private
MediaPlayer
mediaInstance
;
public
Media
InstanceCallback
(
MediaPlayer
mediaInstance
,
MediaInstance
Listener
listener
)
public
Media
PlayerCallback
(
MediaPlayer
mediaInstance
,
MediaPlayer
Listener
listener
)
{
this
.
mediaInstance
=
mediaInstance
;
this
.
listener
=
listener
;
...
...
bindings/java/core/src/main/java/org/videolan/jvlc/event/Media
Instance
Listener.java
→
bindings/java/core/src/main/java/org/videolan/jvlc/event/Media
Player
Listener.java
View file @
8dc81141
...
...
@@ -28,7 +28,7 @@ package org.videolan.jvlc.event;
import
org.videolan.jvlc.MediaPlayer
;
public
interface
Media
Instance
Listener
public
interface
Media
Player
Listener
{
void
played
(
MediaPlayer
mediaInstance
);
...
...
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