mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-03 01:31:53 +02:00
jvlc: audio is an instance property
This commit is contained in:
parent
f810fad01c
commit
c6c3b26a16
@ -48,6 +48,8 @@ public class JVLC
|
||||
|
||||
private VLM vlm;
|
||||
|
||||
private Audio audio;
|
||||
|
||||
private volatile boolean released;
|
||||
|
||||
private MediaListPlayer mediaListPlayer;
|
||||
@ -56,17 +58,21 @@ public class JVLC
|
||||
{
|
||||
String[] args = new String[] {};
|
||||
instance = createInstance(args);
|
||||
mediaList = new MediaList(this);
|
||||
mediaListPlayer = new MediaListPlayer(this);
|
||||
mediaListPlayer.setMediaList(mediaList);
|
||||
init();
|
||||
}
|
||||
|
||||
public JVLC(String[] args)
|
||||
{
|
||||
instance = createInstance(args);
|
||||
init();
|
||||
}
|
||||
|
||||
private void init()
|
||||
{
|
||||
mediaList = new MediaList(this);
|
||||
mediaListPlayer = new MediaListPlayer(this);
|
||||
mediaListPlayer.setMediaList(mediaList);
|
||||
audio = new Audio(this);
|
||||
}
|
||||
|
||||
public JVLC(String args)
|
||||
@ -193,5 +199,13 @@ public class JVLC
|
||||
{
|
||||
return mediaListPlayer;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
public Audio getAudio()
|
||||
{
|
||||
return audio;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user