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
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
Show 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
...
@@ -50,16 +50,23 @@ public class JVLC
...
@@ -50,16 +50,23 @@ public class JVLC
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
)
...
@@ -177,4 +184,14 @@ public class JVLC
...
@@ -177,4 +184,14 @@ public class JVLC
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