I have no idea what these bars represent, but still I want to make them in my app on Android platform.
I want that the bars to change on a sound or in my case a recorded sample play.
For http://www.teamliquid.net/blogs/viewblog.php?topic_id=90197&docid=Cw1ObF4XGZQD4M&imgurl=http://i658.photobucket.com/albums/uu307/StimedFirebat/bars.jpg&w=1024&h=819&ei=0-6jT76WOc_U8QO-psyDCQ&zoom=1&iact=hc&vpx=812&vpy=156&dur=1559&hovh=201&hovw=251&tx=157&ty=133&sig=110361762640680792178&page=1&tbnh=154&tbnw=186&start=0&ndsp=28&ved=1t:429,r:2,s:0,i:72&biw=1680&bih=864">example the bars that windows media player displays while playing music.
take a look at this: https://github.com/felixpalmer/android-visualizer/tree/4054f8b6e2153b07c5af275372b9609d1019727a. this is a project with line, circle, and bar visualizers
and btw google beforehand.
The moving bars are called a graphical equaliser. I think this media API sample uses one.
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/media/AudioFxDemo.html
Related
I have developed a video player application. Now I want to implement Background play functionality. I have checked many video player apps but none of them supports this. However, VLC does support this and when the activity goes in the background or stops then the video continue to play in the background as notification bar i.e. the sound continues to play with a video thumbnail shown in the Notification bar. When tapping on the notification bar it goes to the video page. This is what VLC does.
I am unable to find any tutorial or guide to implementing this. Is it possible to implement something like this?
Show some code what you have tried - that's almost mandatory for questions on SO...
If VLC has this feature then it is possible obviously :) Also YT, if you pay subscription
Also you may check source code of VLC in HERE. For sure it is Service-based implementation, if your app is just simple player then you have probably Activity-based arch and you should migrate to Service
I am playing live (DVR-enabled) video on Chromecast and facing issue with seekbar.
Problem
The problem is that while chrome-casting/steaming live video, current time is changing but seek bar is showing pointer in (left most) beginning as it should be in the right most so that user can go backward as shown in the screen shot below, also the final time is 00:00 where it should be the time as much as it has been played.
But playing on device is working fine and showing seek bar to the right most
Receiver app is build using CastReferencePlayer library
Sender android app is build using CastVideos-android
Source: https://developers.google.com/cast/docs/downloads
The default Android music player displays the current playing album, along with play/pause and next/previous track buttons on the lock screen. Is there any good way to use or replicate this functionality, without going through a lot of pain, or making the app slow or brittle (e.g. not working on all devices)?
Related (getting information from the built-in music player): Can MediaPlaybackservice be used for getting information of currently playing audio file in android?
Thanks in advance!
Try looking at the RemoteControlClient documentation. I think think you can make use of the existing controls in the android os.
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.
I would like to add one video to the main screen of my application but I want to user to be able to do other things in the app meanwhile. Think about some video animation or flash movie for some website that you can watch the video and look on other things in the website.
lets say I have buttons and more things in the same screen and I want a small video to be playing there too in a loop.
is this possible?
I thought that Flash movie could be good for that, but its only for latest versions of android then I don't want to use it.
Thanks.
You can just use the VideoView.