Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
one of the default live wallpapers that came with my phone was a wallpaper that displayed the wave form of music playing in the background in real time. I was wondering how one could go about doing this. It seems I should somehow access the streaming data of the background music and compute the samples in real time, but I have no idea how to get the streaming data. I think I can display the wave form by following this tutorial http://codeidol.com/java/swing/Audio/Build-an-Audio-Waveform-Display/, but I'm not exactly sure how to do it. Help would be greatly appreciated/
There is an Android class called Visualizer that lets you access audio being played
http://developer.android.com/reference/android/media/audiofx/Visualizer.html
In addition, since Android is all open source, you can look at how the live wallpaper does it!
https://android.googlesource.com/platform/packages/wallpapers/MusicVisualization/
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I need to implement a requriment of adjust play speed when playing a video, how can I do that using Android API (MediaPlayer) or other 3rd-party library? I google it, and no any idea by far. Any suggestions welcome, thank you.
Media player does not provide what you want.
You have to use some other android api.
check link. Speed Control of MediaPlayer in Android
Or you can use media player with PlaybackParams(added in 23 api)
https://developer.android.com/reference/android/media/PlaybackParams.html
You can also use different media playback library than android built in, for example ExoMedia that also works below android 23 ,has same api as video view and allow you to set the PlaybackParams including speed.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Hello everyone tell me please: for me it is very important to me to record sound from audio output stream or other but am need record hardware sound from speakers for my piano application.
How do it work in other applications...
Please help me.
I not sure you want to record piano from your android application or you you want to create a sound bank from a piano and use it in the app, but either way you can use FMOD http://www.fmod.org/download/
It is a very powerful audio library (lots of game engines using it e.g. CryEngine, Unity, ...), it has both abilities of recording and playback and gives you a cross-platform unified API.
However if you only want to create a piano audio bank, I believe using MIDI instruments would be a better idea
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to create Android app, that will enable users to stream in real time audio and video from their phone to specified server. In addition, that server should save such recording to some file, to view it latter, but now it's not so important.
My question is: are there any simple or well documented ways of streaming video to remote server (not via wi-fi, I guess it can be important info)
I'm not sure how well Android handles WebRTC currently but I recommend you check it out! It uses Web-Protocols alongside Javascript/HTML5 components to stream-video/audio in real-time via the web-browser. I use it in 2 of my projects for similar applications. The only thing that differentiates is that you are wanting to store the video on your server.I'm guessing would also be possible but I haven't tried it! You can find all the documentation here.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm using JSoup for scraping a website that includes embedded videos. Not every video is hosted in YouTube, they are hosted in different websites. How can I display those videos in my app?
I have not tried anything because I have no idea if it is even possible.
It would be fine if I can at least display a thumb image and when the user click on it, it would open the browser or the default video app.
Update: http://www.viddler.com this is where the videos are hosted. I'm doing some research to see if some how I can stream the videos to my app. But this is my first time trying something like this some everything looks a bit complicated.
This entirely depends on the video content provider. You can write logic to look at the urls determine the provider and get additional information like thumbnail and even video playback based on whether the provider provides a method to do so. This isn't specific to Android if you really think about it.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm making a music player for android and I would like to get the average BPM (maybe also frequencies or tones) of a song BEFORE playing it, so I can show the user some info about the song, I know I probably have to open a stream and apply some maths to it to get the data I need, but I don't know how to act, can anyone help me?
I finally found the solution!
I'm using the Minim java audio library, which can performs offline analysis on the audio buffer :)
http://code.compartmental.net/tools/minim/manual-minim/
You can use the FFT
FFT library in android Sdk
This example may be helpful:
Android audio FFT to retrieve specific frequency magnitude using audiorecord
another one:
Get sound frequency with Android FFT