I'm developing a MediaPlayer application which plays videos and want to show mini controller at the bottom of every screen while something is playing.
Question
I want to show mini controller at the bottom of every screen while something is playing, you can refer application like Spotify, google play, and other music applications.app
MiniController that appear when the user navigates away from the current content page. The mini controller provides instant access and a visible reminder for the current mediaplayer is playing or not.
I just checked cast sdk codelabb and found this. It has MiniControllerFragment which manages everything for cast session. Is there any MiniControllerFragment for mediaplayer application so I can show MiniController at bottom of every page when my application does play any video.
Please provide your valuable inputs on this.
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.
I need to implement a youtube like behavior video player. If user clicks back while on the player activity and video is playing, the desired behavior is:
kill current activity
show a mini floating player on the previous activity
seamlessly continue playing from same position on the floating player.
This can be achieved with passing the position while moving from one screen to another, but the player will have load from scratch and lose all the buffered (cached) data.
What are the common patterns to achieve this continuous playing of a video? (keeping a static instance of the player? launch a service that hold the player?)
I have an activity with a YouTubePlayerSupportFragment within it to play youtube videos.
The youtube player's style is set to CHROMELESS (only video, no controls), and playback is controlled by my own custom play/pause button outside of the player's view. Every thing works as expected until the moment I leave the video activity for whatever reason and then come back to it.
Upon leaving the activity the video is paused - as expected - but after returning to it, requesting the player to player.play() does nothing. No errors nor exceptions, it just does nothing. Play() will only work again after I load a new video..
I've trying using YouTubePlayerFragment instead, but the result is the same. However, when using the DEFAULT style pressing the default play button will apparently reload the video (I see the buffer being flushed) from the previous position and work as expected. This leads me to believe that they're handling it somehow directly on their UI control code instead of on the player API..
I can reproduce this issue on the SDK's custom controls sample just by starting a video, pressing the recents key and returning to it so I think it's safe to assume that this is a bug..
Has anyone been able to work around this issue? is there any way to detect that the video needs to be reloaded while this isn't fixed?
Info: I'm using youtube's android player API v1.2.2 and the latest youtube app v10.49.59
After hours, the only solution I found was to save video position on Pause event and reload video (player.loadVideo) on PostResume event (when YouTubeFragment is resumed). But I don't known if this is the only/best solution.
I have developed one application in android and now I wish to add one more functionality in it. I want to capture the video of my application, means there will be one button and when user clicks on that button it starts recording each and everything which user do in the application. Let say user has press 2 buttons and play some sound, animations, etc. This all should be recorded and when user stop recording it gives options to play the video. I got this idea from the Talking Tom app available in android market.
Here is the link of that app.
Talking tom
See the screens, on the top of it the button of movie is there, which is used for recording whatever the user will do after pressing that button will be recorded and then play it, so it will play all the recorded things.
I want to do the same thing, if anyone is having any idea please kindly let me know.
Thnaks
Beside recording a screencapture, you may can only record the users inputs in an file?
So every method the user calls will be recorded with a Timestamp in that file (or something like that). That can be done by the method itself, so all you have to do for playback is, calling your methods in the same order the user did. Games like StarCraft are recording userinputs and repeat them in playback mode. But your App has to produce excatly the same results with the same inputs, any variations in results will crash your playback.