Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play music in background. #120

Open
ErJeetChaudhary opened this issue Feb 21, 2018 · 1 comment
Open

Play music in background. #120

ErJeetChaudhary opened this issue Feb 21, 2018 · 1 comment

Comments

@ErJeetChaudhary
Copy link

Using this library can we play music in background without showing video.? Thanx...

@KnIfER
Copy link

KnIfER commented Feb 25, 2018

just don't attach views.

    mLibVLC = new LibVLC(context);    
    mPlayer = new MediaPlayer(mLibVLC);  
    mPlayer.setMedia(....)  
    mPlayer.play();  

and you can try this:

    ArrayList<String> options = new ArrayList(1);  
    options.add("--no-video");  
    mLibVLC = new LibVLC(context,options);  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants