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

Link mediaplayer in background service? #10

Open
vankhoadesign opened this issue Jun 29, 2014 · 5 comments
Open

Link mediaplayer in background service? #10

vankhoadesign opened this issue Jun 29, 2014 · 5 comments

Comments

@vankhoadesign
Copy link

I has app, I want to use visualizer, But mediaplayer in service,
I can't link it with visualize on activity?
Please help me.
THanks pro.

@longtaoge
Copy link

Sorry. I don't know. But your project is very good

------------------ 原始邮件 ------------------
发件人: "Khoa Nguyen";[email protected];
发送时间: 2014年6月29日(星期天) 下午4:43
收件人: "felixpalmer/android-visualizer"[email protected];

主题: [android-visualizer] Link mediaplayer in background service? (#10)

I has app, I want to use visualizer, But mediaplayer in service,
I can't link it with visualize on activity?
Please help me.
THanks pro.


Reply to this email directly or view it on GitHub.

@impex93
Copy link

impex93 commented Jan 19, 2015

Try to pass the reference of the VisualizerView at the service and execute the ".link()" there,
it worked nice for me.

@opnchaudhary
Copy link

Can you please describe how we can pass the VisualizerView reference to the service? I tried sending it as parcelable and serilizable in a bundle from the activity to the service. But unfortunately VisualizerView cannot be cast to either of them.

@impex93
Copy link

impex93 commented Jan 15, 2016

I know that this is a bit dirty bit you could write a method that return the instance of the VisualizerView and then call it from the service, let me know!

Il giorno 04 dic 2015, alle ore 09:20, Paras Nath Chaudhary [email protected] ha scritto:

Can you please describe how we can pass the VisualizerView reference to the service? I tried sending it as parcelable and serilizable in a bundle from the activity to the service. But unfortunately VisualizerView cannot be cast to either of them.


Reply to this email directly or view it on GitHub.

@Misiorator21
Copy link

I had the same issue, I discovered that when I'm referring to VisualizerView in service initialization, every think works as it supposed to. Sorry but I'm just beginning my journey with Android. Maybe this is not the best solution, and I'm pretty sure that there is a better one but it works for me. I'm writing allow application with music player as a service. This solution works perfectly for my.

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

5 participants