Android, How to Play song while i'm capturing video from camera? - android

when user clicks a button i nee to direct him to a page which it has list of songs. Then when an items selected by user the i need to play song and let him to capture movie together. Its something like karaoke.
Is it possible? please tell me how can i find a reference?
Thanks

Yes it is possible, I can tell because my cam playing button click sound when I am recording.
I don't think you need a service for that, just try using MediaPlayer

Use of service will help in this case. For this you need to create two services, one for recording video and other for playing music. Through your main activity control both.
I hope it solve the work. But as per the devices seen like samsung devices, they dont provide this functionality. When camera recording is done, you cant play music.
Logically using service we can do the task.
Let me know if it works :)

Related

Track time duration for which video was played - Web, iOS and Android

I need a web based video player that provides "time duration for which a user played a video" and "instance at which the video stopped playing".
It would be great if it can provide details like the time at which the video was started (if he has skipped to a certain location when the video has started) and the stop time of the video.
Could anyone please suggest a ready made player available in market which provides all these information OR some alternate approach to achieve the same.
I want to achieve the same for iOS and Android devices. Is this something possible? And if yes please help me on its feasibility with Phonegap?
Thanks in advance
You won't need a speical player for this. The mediaelements audio and video already have a property called played.

Get current playing song from spotify

Trying to make an app that get current playing song and output it. Tried a IntentFilter for the stock music player and that works great. But this wont work on Spotify, so my question is if there is any way to get the song information from the spotify app?
I think they have an SDK for this:
https://developer.spotify.com/documentation/android/guides/android-media-notifications/
Not sure if it's still being maintained and if it works. Also not sure if possible to get the album art.

Modulate a recorded sound into different effects in android?

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.

Capture video of running android application and then play it

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.

Two different activities in a single activity

I am having one different requirement. I have an audio activity playing, in that I also have a map button that starts map activity. But what is to be taken care is the audio should be keep playing even when I am in map activity.
Can any body let me know the solution for this? I am breaking my head from days on this.
Thanks in advance,
Tejaswi
Your Audio should be played by a service in the background.No matter you are roaming in many activities.Your audio will be playing as it is

Categories

Resources