mmapi

RIM blackberry Record 3GP video

荒凉一梦 提交于 2019-12-24 10:39:28
问题 I am writing an application that can record a 3GP video. I have tried both MMAPI and Invoke API. But have following issues. Using MMAPI: When I record to stream, It records video in RIMM streaming format. when I try to play this video player gives error "Unsupported media format." When I record to a file. It will create a file of size 0. Using Invoke API: In MMS mode it does not allow to record a video more than 30 seconds. In Normal mode size of the file is very large. Once I invoke camera

Not able to capture an image using Nokia Mobile but in Computer application works fine?

大兔子大兔子 提交于 2019-12-24 00:58:32
问题 I am making an application in which user will be able to use camera, capture and save that image to C drive, and i am also able to perform all these when i use this application with my PC. But whenever i use this application in mobile Like Nokia C2-01,02,03 i am only to view camera but not able to capture an image in short capture is not working while i use Mobile to run this App. My Midlet code is below please see the problem and support me to capture image via Mobile also:- public class

Mp3 Streaming Using Player Switching

白昼怎懂夜的黑 提交于 2019-12-13 18:34:16
问题 I am developing a sample application which can play shoutcast mp3 streams (Developing for S40 platforms, CLDC 1.1, MIDP 2.0). I am using two players switching for continues play back. I used the below logic for streaming. Buffer enough chunks Start Player1 Wait Player1 to finish Start Player2 Wait Player2 to finish repeat... 2 The problem is, listener can feel 1 Second silence (Gap) while switching between players. I would like to know is it possible to stream audio from server without gaps

Don't let the display go to stand-by in JavaME

纵然是瞬间 提交于 2019-12-08 02:29:04
问题 Im streaming video to my MIDLET. And while it is playing it, after 20 seconds (depends on a system setting) display on the phone goes to stand-by mode. How can I prevent this so I can watch the video for 5 minutes for example without having to tap something to wakeup the display? 回答1: Yeeeey I figured it out!!! But its a little hack and not the actual "Dont-Go-To-Stand-By" functionality... nevertheless it works PERFECT !!!! =D Ok so the idea is to define the timeout that the display needs to

Don't let the display go to stand-by in JavaME

无人久伴 提交于 2019-12-06 13:27:41
Im streaming video to my MIDLET. And while it is playing it, after 20 seconds (depends on a system setting) display on the phone goes to stand-by mode. How can I prevent this so I can watch the video for 5 minutes for example without having to tap something to wakeup the display? Yeeeey I figured it out!!! But its a little hack and not the actual "Dont-Go-To-Stand-By" functionality... nevertheless it works PERFECT !!!! =D Ok so the idea is to define the timeout that the display needs to be woken up. I let the user define this in the "Settings" screen and I write that in RMS so I can read it

Blackberry Audio Recording Sample Code

佐手、 提交于 2019-11-29 22:57:48
问题 Does anyone know of a good repository to get sample code for the BlackBerry? Specifically, samples that will help me learn the mechanics of recording audio, possibly even sampling it and doing some on the fly signal processing on it? I'd like to read incoming audio, sample by sample if need be, then process it to produce a desired result, in this case a visualizer. 回答1: RIM API contains JSR 135 Java Mobile Media API for handling audio & video content. You correct about mess on BB Knowledge

Playing Audio with J2ME

只愿长相守 提交于 2019-11-27 23:15:55
What is the best way to play audio utilzing the J2ME Media libary? For example, should I make use of the MMAPI or should I just use the Midlet's platformRequest(String s) method? The following code should work for 90-95% of handsets out there that support JSR-135. Ordering of all the various method calls is key for this to be portable. This is for sounds local to your JAR. Any streamed audio would be another problem altogether :) // loads the InputStream for the sound InputStream inputStream = this.getClass().getResourceAsStream( musicFile ); // create the standard Player musicPlayer = Manager

Playing Audio with J2ME

。_饼干妹妹 提交于 2019-11-26 21:24:26
问题 What is the best way to play audio utilzing the J2ME Media libary? For example, should I make use of the MMAPI or should I just use the Midlet's platformRequest(String s) method? 回答1: The following code should work for 90-95% of handsets out there that support JSR-135. Ordering of all the various method calls is key for this to be portable. This is for sounds local to your JAR. Any streamed audio would be another problem altogether :) // loads the InputStream for the sound InputStream