| Reply | « Previous Thread | Next Thread » |
|
Hi All
I tried to run the PlayerMIDlet example from the java.sun page http://developers.sun.com/techtopics...mmapioverview/ with the s60 emulator within the NOKIA prototype sdk 4.0 but it doesnt work! I tried the example with the default emulator of the java wireless toolkit and it works ok.. WHATS THE PROBLEM?? Thx in advance Nina |
|
Can you please be a little more specific in describing the problem. The midlet does not start? The midlet does not play the video properly? The midlet does not retrieve the video clip properly? The midlet behaves oddly? What?
|
|
Quote:
Sorry I see I was not so specific :-) So: The Midlets starts, asks for entering an URL, asks for permission to send and receive info and then no video ist displayed. The same video with the same URL plays perfectly on the WTK 2.2... I tried the java.sun PlayerMIDlet examples - test-wav.wav works ok (only sound) with but test-mpeg.mpg it can't create a Player.. I also tried a .3gp file and it throws a NullPointerException when trying to play the video (with an initialized Player..) Am I missing sth?? Thx Nina Do I miss |
|
Oh, yes and another remark (question):
I also couldn't play any video from the local file system. I thought its enough to specify an URL like /myvideo.mpg (being stored in the res directory) and I could use the same PlayerMIDlet example.. Then I get the Exception "Cannot create a DataSource for: /myvideo.mpg HELP! |
|
What specific device are you using in the Emulator? It may not support the playback of mpg files. You can find out the actual device capabilities by using the getSupportedContentTypes() method of the Manager class to find out if the device can play your target file.
HTH, Vikram Vikram Goyal, First Book on Mobile Media API (MMAPI) - Coming Soon from Apress Register at: [url]http://www.mmapibook.com[/url] |
| brokendove |
| View Public Profile |
| Find all posts by brokendove |
|
Thx Brokendove,
I already did that and realised that of course the NOKIA prototype_4_0 sdk emulator (for S60) doesnt support mpeg. But I have problems playing .3gp too - the program reaches the point player.prefetch() and never comes out of it... |
|
Quote:
Vikram Vikram Goyal, First Book on Mobile Media API (MMAPI) - Coming Soon from Apress Register at: [url]http://www.mmapibook.com[/url] |
| brokendove |
| View Public Profile |
| Find all posts by brokendove |
|
Hi
Well I tried the app once again and it sometimes seems to acquire the video correctly - then it shows only the first frame of it and stops.. |
|
Quote:
Cheers, Vikram Vikram Goyal, First Book on Mobile Media API (MMAPI) - Coming Soon from Apress Register at: [url]http://www.mmapibook.com[/url] |
| brokendove |
| View Public Profile |
| Find all posts by brokendove |
|
Hi
I think its not a memory issue.. I was able to play one 2 min video but not an 11sek one - both the right format... Are there some encoding issues with the .3gp format itself which one should know about? Or is the NOKIA prototype SDK 4.0 not stable enough? Sorry, perhaps the questions are stupid - but I am new tomobile programming and I would like to know if there are some "tricks" :-) Nina |
|
Quote:
Vikram Vikram Goyal, First Book on Mobile Media API (MMAPI) - Coming Soon from Apress Register at: [url]http://www.mmapibook.com[/url] |
| brokendove |
| View Public Profile |
| Find all posts by brokendove |
|
Quote:
ah, dis is the same exact problem dat i'm facing...i tried running an mpg video from local file system but to no avail...i don think it's the extension problem (.mpg) because the example initially linked to an .mpg file which is located at sun's website ( http://java.sun.com/products/java-me.../test-mpeg.mpg -> dis is the url given in the example code, & it werx well alrite )...the problem appeared when i tried to play a local content -> no video seems to appear...& i've found a few other examples on mmapi (including the example dat came wif Sun Java Wireless Toolkit) , but all the examples seems to take a video file ( .mpg etc ) that is placed sumwhere on the net, & i js couldnt find any example dat plays video from local file system. I'm wondering y dis is so, is there any problem wif playing video from local file system? plz help us! >_< |
|
Quote:
Vikram Goyal, First Book on Mobile Media API (MMAPI) - Coming Soon from Apress Register at: [url]http://www.mmapibook.com[/url] |
| brokendove |
| View Public Profile |
| Find all posts by brokendove |
|
i think now i know the problem...it's bcos the method Manager.createPlayer(url) only takes argument dat has the URI syntax...so it's logical dat it cant read the source when i put url as "/videofile.mpg" or sumthing liddat...anyway,i tried another method,dat is to use the method Manager.createPlayer(InputStream stream, String type),as being shown in Nokia's example ( http://sw.nokia.com/id/4c8ad66a-1ff9...a_API_v1_0.pdf ). But now another problem appeared,i js couldnt display either .mpg or .3gp videofiles (both are on local filesystem - my pc) >_<...i got the msg (thru Sun Java Wireless Toolkit 2.3) "MediaException:Cannot create a Player for : video/3gpp"...so wht is the reason to dis? & hw do i solve it? & where actually shud i put the videofile in? i tried putting it in the res, bin, etc folder js to make sure,but all to no avail :(
|
|
Quote:
Vikram Goyal, First Book on Mobile Media API (MMAPI) - Coming Soon from Apress Register at: [url]http://www.mmapibook.com[/url] |
| brokendove |
| View Public Profile |
| Find all posts by brokendove |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Infra-red capability | Symbian_Challenge_0412 | General Discussion | 1 | 2005-08-16 19:24 |
| Problem with Nokia Mobile Internet Toolkit 4.0 | ElvisK | General Messaging | 2 | 2003-10-27 10:47 |
| Problem JBuilder 8 and Nokia SDK integration. | aspaans | Mobile Java Tools & SDKs | 1 | 2003-05-03 19:50 |
| What is the real problem to receive data calls with Nokia TDMA cel modems? | jackal_jr | PC Suite API and PC Connectivity SDK | 1 | 2002-12-09 10:02 |
| What is the real problem to receive data calls with Nokia TDMA cell modem? | jackal_jr | PC Suite API and PC Connectivity SDK | 0 | 2002-12-04 17:05 |