Play a mp3 file on a BlackBerry - blackberry

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.

Related

Playing mp3 in URL (swift2)

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.

PPTx with embedded video play on iOS

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.

Applescript to add an audio file to keynote and upload the file to youtube

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.

Buffering in Blackberry

Currently I am working on the application for which I have to use audio buffering. Please tell me how I can achieve this task as I am trying myself.
read this Buffer and play streamed media
Also, there's a great example in the Blackberry SDK, which shows buffered playback of a MP3 file.
Take a look in the 'samples' folder of JDE/Eclipse Plugin.

how to open swf file in stand alone flash player from getURL() action?

I would like to open a separate swf file from with in flash, but by default, it opens the swf in a browser. I would like this file to open in a stand alone player not in the browser. How can I achive this? Right now I'm using the getURL() action. Is there a separate function for opening a file at a specified filepath?
thanks
If you want it to open in a new Flash Player my educated guess would be: not possible
If however you wish it to open in the same window that's possible, but I'm guessing that's not what you want.

Resources