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
0bf6d260
Commit
0bf6d260
authored
Dec 22, 2008
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jvlc: make the medialistplayer a property of the jvlc instance
parent
f66de63b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
bindings/java/core/src/main/java/org/videolan/jvlc/JVLC.java
bindings/java/core/src/main/java/org/videolan/jvlc/JVLC.java
+20
-3
No files found.
bindings/java/core/src/main/java/org/videolan/jvlc/JVLC.java
View file @
0bf6d260
...
@@ -49,17 +49,24 @@ public class JVLC
...
@@ -49,17 +49,24 @@ public class JVLC
private
VLM
vlm
;
private
VLM
vlm
;
private
volatile
boolean
released
;
private
volatile
boolean
released
;
private
MediaListPlayer
mediaListPlayer
;
public
JVLC
()
public
JVLC
()
{
{
String
[]
args
=
new
String
[]
{};
String
[]
args
=
new
String
[]
{};
instance
=
createInstance
(
args
);
instance
=
createInstance
(
args
);
mediaList
=
new
MediaList
(
this
);
mediaList
=
new
MediaList
(
this
);
mediaListPlayer
=
new
MediaListPlayer
(
this
);
mediaListPlayer
.
setMediaList
(
mediaList
);
}
}
public
JVLC
(
String
[]
args
)
public
JVLC
(
String
[]
args
)
{
{
instance
=
createInstance
(
args
);
instance
=
createInstance
(
args
);
mediaList
=
new
MediaList
(
this
);
mediaListPlayer
=
new
MediaListPlayer
(
this
);
mediaListPlayer
.
setMediaList
(
mediaList
);
}
}
public
JVLC
(
String
args
)
public
JVLC
(
String
args
)
...
@@ -79,10 +86,10 @@ public class JVLC
...
@@ -79,10 +86,10 @@ public class JVLC
public
MediaPlayer
play
(
String
media
)
public
MediaPlayer
play
(
String
media
)
{
{
MediaDescriptor
mediaDescriptor
=
new
MediaDescriptor
(
this
,
media
);
MediaDescriptor
mediaDescriptor
=
new
MediaDescriptor
(
this
,
media
);
MediaPlayer
media
Instance
=
new
MediaPlayer
(
mediaDescriptor
);
MediaPlayer
media
Player
=
new
MediaPlayer
(
mediaDescriptor
);
media
Instance
.
play
();
media
Player
.
play
();
mediaDescriptor
.
release
();
mediaDescriptor
.
release
();
return
media
Instance
;
return
media
Player
;
}
}
public
void
setVideoOutput
(
Canvas
canvas
)
public
void
setVideoOutput
(
Canvas
canvas
)
...
@@ -176,5 +183,15 @@ public class JVLC
...
@@ -176,5 +183,15 @@ public class JVLC
release
();
release
();
super
.
finalize
();
super
.
finalize
();
}
}
/**
* Returns the mediaListPlayer.
* @return the mediaListPlayer
*/
public
MediaListPlayer
getMediaListPlayer
()
{
return
mediaListPlayer
;
}
}
}
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