I am newbie to android, and want to set mp3 tune as a background tune for an animation. I have an animation(clock) running as a frame animation and I want to set an mp3 file for that.
the mp3 should play sequentially with the seconds hand in my clock animation,any Idea?
Thanks in advance....!
Android audio tutorial
Take a look to Audio and Video processing on Developer.android.com
Related
Hi I'm developing an application that uses Android MediaPlayer to play a background video usually of 30 seconds length.
With some videos that are less than 5-7MB the Player starts immediately, but when the video size goes over 10-15MB the video takes over 30 seconds before playing.
My question is: is there a way to speed up Android native MediaPlayer Buffering in order to play the first frame of the video as soon as it is available like YouTube?
Thanks in advance
Don't know much about android native MediaPlayer but got similar problems using ExoPlayer and solve it by using LoadControl. If you don't find any solution with MediaPlayer maybe think about use ExoPlayer. Here is the link for discussion about DefaultLoadControl:
https://github.com/google/ExoPlayer/issues/2438
I want to create an app which record video from camera, and while video recording save pieces of this streaming - length is 30 second. And when recording will stop I will have a lot of video files - each duration 30 seconds.
Is it possible to do in Android? If yes - what libraries or methods use for this task?
Thank you
Is it possible to do in Android?
Yes. it is possible
what libraries or methods use for this task?
1)MediaRecorder. it is android framework API.
2)MediaCodec + MediaMuxer. also framework APIs.
with second option you will have more control but is complex to implement. while first option is relatively straight forward. but with first option you wont be able to create video clips that is continuous. as stopping and starting a MediaRecorder isn't instantaneous.
I am a little miss guided here and it seems i am totally lost. I am developing an android app and its core idea is to develop a video recorder and video player that applies some sound effects on the voice of the people or any sound that it records. Sound effect means that if i make a video of a person who is giving some speech then there should be no effect on video but his/her voice should appear like voice in talking tom cat app. I hope you understand the idea. Similar app is Helium Booth you can check it here. I am trying to use libraries like libSonic, libpd and tried to use XUGGLE too.
Read somewhere that Xuggle is not really developed for mobile devices so left it. Now what i want is that it should apply this effect on voice on the run time i.e while recording the pitch of the sound should be alterd and saved immediately. And what i am getting with these libraries is that i can apply sound effect after video is recorded. So it means i need to rip the audio from the video and then apply the change in pitch and frequency and again concatenate this audio file with the old video file. And i have no idea how to do it.
Please show me the right approach and tools if possible.
Regards
I'm going to make an app related to sound modulation , where i need to record a sound and after recording the sound i need to play it in different modulation or sound effects like Reversing,Resampling,Pitchshifting,Robatization effect when I press the play button .Now I have the code to record a sound ,but don't know how to modulate the recorder sound as the above effects.
I search the whole web but did not find any solution.how do i implement this effects?
There are many apis which helps to accomplish this. For example-
Open SLES. AudioTrack.
Please have a look at this page.
I think it may help you.
how to fast forwarding an Audio file using media player in android on seekbar progress change?
I would use the 'seekTo()'-method and jump about 10 or 20 seconds each time.
I don't think MediaPlayer can do much more than play/pause actually. I'm using SoundPool non-stop, so someone should correct me if I'm wrong here.
I think you might need to add different versions of the song (with different speed) and change the actual source each time you want to speed up.