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
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
private
VLM
vlm
;
private
volatile
boolean
released
;
private
MediaListPlayer
mediaListPlayer
;
public
JVLC
()
{
String
[]
args
=
new
String
[]
{};
instance
=
createInstance
(
args
);
mediaList
=
new
MediaList
(
this
);
mediaListPlayer
=
new
MediaListPlayer
(
this
);
mediaListPlayer
.
setMediaList
(
mediaList
);
}
public
JVLC
(
String
[]
args
)
{
instance
=
createInstance
(
args
);
mediaList
=
new
MediaList
(
this
);
mediaListPlayer
=
new
MediaListPlayer
(
this
);
mediaListPlayer
.
setMediaList
(
mediaList
);
}
public
JVLC
(
String
args
)
...
...
@@ -79,10 +86,10 @@ public class JVLC
public
MediaPlayer
play
(
String
media
)
{
MediaDescriptor
mediaDescriptor
=
new
MediaDescriptor
(
this
,
media
);
MediaPlayer
media
Instance
=
new
MediaPlayer
(
mediaDescriptor
);
media
Instance
.
play
();
MediaPlayer
media
Player
=
new
MediaPlayer
(
mediaDescriptor
);
media
Player
.
play
();
mediaDescriptor
.
release
();
return
media
Instance
;
return
media
Player
;
}
public
void
setVideoOutput
(
Canvas
canvas
)
...
...
@@ -176,5 +183,15 @@ public class JVLC
release
();
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