I am struggling to add media functionality to the app. At this point I am stuck to have a professional visual transition for mini player to full screen media player.
While It is a common feature for music player app, I could not find any article or guide related to this.
I am using Bottom sheet to handle mini player. Basically , my question is how to handle the transition of bottom sheet state from STATE COLLAPSED to STATE EXPANDED like in the video.
Desired Result:
Thanks for reading this. Any help is appreciated.
Related
I am currently working on an app that includes an audio media player. What I want to accomplish is to start a track on a fragment that represents the UI of the media player (like a bottom collapsed media player), and then when I click on this media player layout, I want to start an activity that will display the media player expanded (including skip buttons and progress bar). Right now, whenever I click on the above-mentioned layout, the activity starts but the track starts all over again instead of resuming. Summing up, I would like to ask if there is a proper way to connect with the media browser in another activity without causing the playlist to start from the beginning. Thank you in advance
I have music list screen and when press to play the music, the small music player is show at the end of the screen. If click or scroll up, full screen music player will show. User can click button to collapsed the full screen music player. I am using sliding_up_panel plugin to achieve this.
So my question is that I want to show the small music player on every screen in the app if music is playing.
May I know how where to put SlidingUpPanel?
Regards,
Alex
It will need to go in or above or in your router. You could put it in a Stack widget, where one layer is your player widget and the other is your routed view.
When you play video in YouTube app, at first it's full screen. When you click back button it goes to this mode:
I have seen similar thing made in this app.
How is it made? Is there any particularly library? Thanks.
How to develop a Vimeo-like Media player on Android?
What I like about Vimeo is
their translucent Play, Pause, Scrollbar shown only when needed i.e. on Mouseover - which ensure that the full screen size is occupied by the video.
Any links, tutorials greatly appreciated.
Thanks.
I have following queries.
How can I display icon in Signal Area(what it is called?) ? Like default audio player when playback is on and u press HOME or BACK at last screen of audio player, Play icon is displayed in that areA? Kind of minimize application.
How to display shortcut of media player? the minimal version of media player in that area
They're called notifications, and the documentation has a very detailed guide: http://developer.android.com/guide/topics/ui/notifiers/notifications.html
Look at the source code for ApiDemos. You will find exactly what you are looking for, and more.