-
Notifications
You must be signed in to change notification settings - Fork 279
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
Comments
Sorry. I don't know. But your project is very good ------------------ 原始邮件 ------------------ 主题: [android-visualizer] Link mediaplayer in background service? (#10) I has app, I want to use visualizer, But mediaplayer in service, — |
Try to pass the reference of the VisualizerView at the service and execute the ".link()" there, |
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. |
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!
|
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. |
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.
The text was updated successfully, but these errors were encountered: