Hello to all,
I am developing DRM music player and so far i am quite successful in playing Forward Lock music file(.dm) on Emulator as well as on my SE W810i using FileSystem and MMAPI. and i am using Sony Ericson Packager for music file packaging of Forward Lock and Separate delivery file.
The problem is when i am trying to play Separate delivery DRM protected music file(.dcf). so it basically throwing an exception:
" Throwable: javax.microedition.media.MediaException: start "
Code is :
____________________________________________________________
try
{
System.out.println("Checkpoint 1");
FileConnection fc = null;
InputStream is = null;
System.out.println("Checkpoint 2");
fc = (FileConnection) Connector.open("file:///e:/sample.dcf");
is = fc.openDataInputStream();
p = Manager.createPlayer(is, "audio/mpeg");
System.out.println("Checkpoint 3");
p.realize();
System.out.println("Checkpoint 4");
p.start();
System.out.println("Checkpoint 5");
}
catch (Throwable t)
{
System.out.println("Throwable: " + t.toString());
}
_____________________________________________________________
Can anybody tell me how can i solve this problem. i will be very thankful.
Thanks in advance.
BR,
kami

Reply With Quote




