Impossible to instantiate LibVLC object

This forum is about all development around libVLC.
leykan
New Cone
New Cone
Posts: 7
Joined: 18 May 2015 14:23

Impossible to instantiate LibVLC object

Postby leykan » 17 Jun 2015 11:10

I am working on a Android project and I want to creat a media player using the LibVLC.
To creat a media player with this lib I need to instantiate a LibVLC object.
But when I try to do that the instantiation will failed and the app will close automatically.

Code: Select all

public class MediaPlayerActivity extends Activity { private String path; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.activity_media_player); LibVLC lib = new LibVLC(); // path = (String) getIntent().getSerializableExtra("path"); } }

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Impossible to instantiate LibVLC object

Postby Jean-Baptiste Kempf » 09 Jul 2015 22:00

Look at our current code.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 30 guests