Diana Garc�a

Ranch Hand
+ Follow
since Sep 21, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Diana Garc�a

Hello everybody!

Has anybody checked out this library: JLayerME-CLDC 0.2? It plays mp3 files stored in WTK/apps/name/res. But as I changed it to play mp3 files downloaded from the network, it stopped working. Can anybody say why?

The only difference is the way the classes read from the file. In both cases I use an InputStream, and I've checked that both InputStreams read exactly the same, but it doesn't work.

Any idea?
Thanks
19 years ago
Hello all,

I'm very new to J2EE and want to know in few words what EJB is. I've read many web pages but still don't know what can I use them for.

Thank you very much
Hello

I think I don't understand you fully, can you please say more about what you want to do?

It's possible to access a database from an application running on CLDC, if that's what you mean. You will need to use an application server, for example Tomcat, which receives and processes the MIDlet requests, searches the database and returns the responses.

Regards
19 years ago
Hello
I'm doing my final work at university and part of it was playing audio and video files received in the phone via RTP. I succeeded for audio, just implementing a custom DataSource and SourceStream, but didn't succeed with video.
So you should know that at least audio is possible
Regards
19 years ago
I'm afraid there's no API for RTP... you will have to make it your own.
Regards
19 years ago
Hello

I implemented the forward-lock method of OMA DRM in my J2ME application, so I think I can help you.

First of all, you must talk about OMA DRM, which is DRM for mobile phones. In their website (www.openmobilealliance.org) you will find many many documents to explain every doubt you have.

If later you can ask a more precise question, I would be glad to answer it.

Regards,
Diana
19 years ago
Hello

I'm trying this JLayerME to play mp3 files with J2ME, but I can't build the project because I get this message:

Error preverifying class javazoom.jlme.util.Player

VERIFIER ERROR javazoom/jlme/util/Player.startOutput(Ljavax/sound/sampled/AudioFormat V:

Cannot find class javax/sound/sampled/Line$Info


I've tried putting the sound.jar everywhere, including in WTK2.1/apps/myapp/lib and it still can't find it. What can I do?

Regards
19 years ago
Hello all

I'm trying to stream video over RTP in J2ME but still haven't succeeded. Can anybody tell me if it's possible?

I don't know where my problem is: I receive the video file perfectly and my RTPDataSource and RTPSourceStream work for audio files. Why doesn't it work? Anybody in my situation?

Regards
19 years ago
Hello
It's driving me crazy because I've wasted many days trying to guess why my streaming application throws this Exception while trying to play videos:
"javax.microedition.media.MediaException: Unable to realize. error reading from DataSource"
The problem is that the DataSource works for songs, and the videos work throw HTTP but not with my custom RTPDataSource.
Can anybody help me, please?
Thanks
19 years ago
Hi

I just wanted to answer one of your questions. To play a file you have in your computer with J2ME you will necessarily have to use Tomcat. That's because you're emulating a mobile phone and it would need a server to comunicate with your computer.

Regards
19 years ago
Hello again

I've read that mp3 is supported in MMAPI 1.1, but not in J2ME Wireless Toolkit, so what I told you last time is correct: if you want to play mp3 files with WTK you will have to develop your own decoder

Regards
19 years ago
Hello
To implement your custom DataSource you just have to develop all its methods. Take a look on the internet, I found many examples. You will need to defin a custom SourceStream too.
19 years ago
Hi guys, I see you're talking about class Player. I've got a problem and you might be able to help me.
I've developed an application which plays audio and video via HTTP and RTP, and everything works except from RTP video, because when I call the method player.realize() it blocks forever (without explanation).
Could you please tell me why is that? What's happening? I've no idea.
Thanks a lot
19 years ago
Hello all
I'm developing an application that plays audio and video that is recieved via RTP streaming. Everything with audio works, but the same couple of classes have a problem with video: I receive every single packet and create the player, but I can't realize it!! After the method createPlayer() the player must be realized but it blocks there and goes never to the realized state!! Does anyone know what's happening?
Thanks in advantadge
Diana
19 years ago
Hello

I'm not sure I understand what you're asking. You just have to create it and then call the createPlayer method:

RTPDataSource d = new RTPDataSource(locator);
Player p = Manager.createPlayer(d);

You must have a class called RTPDataSource which extends DataSource, and then write all the methods that are needed. �Have I answered your question?

Diana
19 years ago