Commit 5a0c3a51 authored by Filippo Carone's avatar Filippo Carone

create a medialist on JVLC creation

parent 61a056a7
...@@ -29,26 +29,29 @@ ...@@ -29,26 +29,29 @@
package org.videolan.jvlc; package org.videolan.jvlc;
import java.awt.Canvas;
import org.videolan.jvlc.internal.LibVlc; import org.videolan.jvlc.internal.LibVlc;
import org.videolan.jvlc.internal.LibVlc.LibVlcInstance; import org.videolan.jvlc.internal.LibVlc.LibVlcInstance;
import org.videolan.jvlc.internal.LibVlc.libvlc_exception_t; import org.videolan.jvlc.internal.LibVlc.libvlc_exception_t;
import com.sun.jna.Native; import com.sun.jna.Native;
import java.awt.Canvas;
public class JVLC public class JVLC
{ {
private final LibVlcInstance instance; private final LibVlcInstance instance;
private final LibVlc libvlc = LibVlc.SYNC_INSTANCE; private final LibVlc libvlc = LibVlc.SYNC_INSTANCE;
private MediaList mediaList;
public JVLC() public JVLC()
{ {
String[] args = new String[1]; String[] args = new String[1];
args[0] = "jvlc"; args[0] = "jvlc";
instance = createInstance(args); instance = createInstance(args);
mediaList = new MediaList(this);
} }
public JVLC(String[] args) public JVLC(String[] args)
...@@ -113,4 +116,14 @@ public class JVLC ...@@ -113,4 +116,14 @@ public class JVLC
libvlc.libvlc_release(instance); libvlc.libvlc_release(instance);
super.finalize(); super.finalize();
} }
/**
* Returns the mediaList.
* @return the mediaList
*/
public MediaList getMediaList()
{
return mediaList;
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment