I now have MediaPlayer implemented in the activation itself and all operations with it occur in the activation. I had a need when minimizing the application to continue playing in the notification window of the notification as in VK. Interested in how all this should work so that everything was as it should? If I bring MediaPlayer to the service and when the application will be able to onPause launch the notification and transfer the state of the MediaPlayer from the service to control, will this be the right approach?
- 2Yes, it will be right. The player should not depend on the life cycle of the activation and should be located in the service. Activation of information from the service can be obtained in different ways, but it should not interact directly with the player. - Yuriy SPb ♦
- You can make a response, I will note. - McDaggen
|