title: Music player with all functionalities , play, pause, stop, next , previous using service
body: <p>i am working on a music player app. I have created playlist, and i want to use service component for player functions like play, pause, previous, next, stop, shuffle etc..</p>
  
  <p>For this i have found this answer at <a href="https://stackoverflow.com/questions/12909115/sending-commands-from-activity-to-service-in-android">Sending Commands to service from activity</a> and according to it , there are two different ways for doing this(giving commands to service for handling all music player functions), one is using local service and another is by using broadcast receiver.</p>
  
  <p>So my question is that, which of the following method should I choose or best in terms of efficiency and simplicity. And in future versions I want to add video playing feature, so  answer accordingly.</p>
  
  <p>Thanks.</p>