How Traditional media app works - devrath/MediaAlchemySuite GitHub Wiki

Consists of 2 main components
Player
--> which is used to render audio
and video
content.
User Interface
--> which is used to display the metadata of the content that is playing.
How communication happens
- The
User Interface
send the commands to the player
.
- It sends the command to change the state of the eplayer.
- The commands can be
pause
,play
,seek
.
- it then
receives
the callback from the player once the state of the player changes
What is the problem
- The Android system does not have any idea what is happening with the player and what is currently playing.
- The other apps in the device also are not aware that currently a media is playing.
- So they cannot provide a convenient way for users to control the playback.