15% off membership for Easter! Learn more. Close

Provide an overview of a media app architecture.

Asked at Twitch
500 views
Asked at
eye 500 views eye 500 views
Answers (1)
crownAccess expert answers by becoming a member

You'll get access to over 3,000 product manager interview questions and answers

badge Platinum PM

The media app architecture has the following components:

UI -->Media controller -->Media session -->Player

UI Transport protocols are used to run the player and displays the players state

Player- Player takes the digital media and plays the video/audio. E.g. Mediaplayer and Exoplayer libraries in android

Media controller- Media controller takes transport protocol commands from the UI and translates it into callbacks against the media session

Media session- Media sessions maintains the current state of the player, metadata and information about the playback. The media session isolates the Player from the media controller

Media Session calls-

 

 On play()

On Pause()

On Stop()

 Audio Focus

 requestfocus() passing in your OnAudioFocusChangeListener

 

 Abandon Audio Focus()

 Media Session

 setActive()= True - update metadata and state

 Update metadata and state

  setActive()= False

Player implementation()Start the PlayerPause the playerStop the player
Becoming NoisyRegister your broadcast receiverUnregister your broadcast receiver 
NotificationShow notificationsUpdate notification 

 

Access expert answers by becoming a member
0 likes   |  
Get unlimited access for $12/month
Get access to 2,346 pm interview questions and answers to give yourself a strong edge against other candidates that are interviewing for the same position
Get access to over 238 hours of video material containing an interview prep course, recorded mock interviews by expert PMs, group practice sessions, and QAs with expert PMs
Boost your confidence in PM interviews by attending peer to peer mock interview practices, group practices, and QA sessions with expert PMs
Get unlimited access for $12/month
Get access to 2,346 pm interview questions and answers to give yourself a strong edge against other candidates that are interviewing for the same position
Get access to over 238 hours of video material containing an interview prep course, recorded mock interviews by expert PMs, group practice sessions, and QAs with expert PMs
Boost your confidence in PM interviews by attending peer to peer mock interview practices, group practices, and QA sessions with expert PMs