I want to build a program that reads a certain code (ex: deb_prel), and if the
url = "http://www.piano-midi.de/mp3/BFFCEDC41B391847DAE02F6A5EA1E1A8/" +code.text! +".mp3"
exists, plays after the search button is clicked, and with a play/pause and adjust volume.
I have already built the storyboard (easy part), but I am having difficulties to build this simple program. I don't known where to begin, can anyone help me?
I would suggest to dig deep in AVFoundation here and AVAudioPlayerDelegate here. Also check this as reference for playing/pausing and recording audio files.
Related
I am playing a file using AVPlayer and it is working fine. What I am looking for is that when the application plays the file it should play as soon as some enough buffer available. Currently what I have noticed is that if the file is big it waits for longer time to start playing the file which means it waits until the file is loaded in the buffer or so.
Any thoughts?
First, thank you Paul, your hint helped.
I have resolved the issue as follow:
Instead of having the URL as the mp3 file; I have created a text file and called it audio.m3u then I have just wrote the url address of my mp3 file in the newly created file (the m3u). Then played the file (audio.m3u) in the AVPlayer.
thats all :)
Is it possible in a Flutter App to "concatenate" sound files without calling Swift/Java code to handle it for me? (Partially because I don't know Swift, and partially because I haven't figured out ffmpeg yet) The microphone provides either mp3 or wav files, and either works fine for me.
I'm attempting to make a Recording app that has more functionality than the ones I've previously found. Specifically, I want it to be able to pause the recording for an indefinite amount of time, and start again WITHOUT creating two files for the user to save -- it should combine them and save it later as a single file.
You can take a look about this
medcorder_audio
and for splitting
audiocutter
I am making an application which should be able to play any videos embedded in a PPTx. Currently using Quicklook Framework for iOS I am able to see the text or any images but not able to play the video. I thought of one solution as, Converting the PPTx to zip and then parse the XML files to give the video and then play, which doesn't look very practical as it needs to be done for every file where the structure keeps changing with very slide/PPT Slideshark is able to play videos embedded in a PPT. Any Ideas on how to achieve this ?
Converting PPTs into HTML5 is one of the solution.
I am trying to use either automator or applescript to do two things.
add an mp3 to an open keynote presentation (to the entire presentation and not a single slide)
upload the resulting keynote presentation to youtube.
If I use the add file command, as below it doesn't seem to work, although if i replace slideshow with slide 1, then it adds it to slide 1 only.
Thanks very much.
tell application "Keynote"
tell slideshow 1
add file slideshow 1 path theFile
end tell
end tell
You basically want to add a soundtrack to the slideshow, not add a file. Unfortunately I do not see a way to do this with applescript. Normally you do this by hand in the Inspector->Documents->Audio section. I also do not see an applescript command for the Share->Send To->YouTube command either.
It seems you can't do either of the things you want by applescripting keynote. Keynote doesn't have those applescript commands. It doesn't have any keyboard shortcuts for those things either, so it can't be accomplished with GUI scripting. Sorry.
How do I play a .mp3 file using java-me code? I want to start and stop the file using our own method and buttons. We use only two buttons that start and stop the .mp3 file.
Use this :
javax.microedition.media.Player;
javax.microedition.media.Manager
Player player = Manager.createPlayer("file:///SDCard/BlackBerry/music/songs.mp3");
player.start();
To Stop use this :
player.stop();
The best way to do this is using Javascript, at least IMO.. check this out:
http://www.happyworm.com/jquery/jplayer/
It shouldn't be too hard to implement, should work for a blackberry too, you just need to customize the web page for the blackberry screen size, jquery can help with this too as you can use it to recognize the type of browser accessing your site.