You Are Here:

Community: Developer Discussion Boards

Reply « Previous Thread | Next Thread »

#1 Old Exclamation Problem playing .mpg video example with Nokia SDK 4.0 - 2006-02-28, 15:01

Join Date: Feb 2006
Posts: 55
ninku6a
Offline
Regular Contributor
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
Reply With Quote

#2 Old Re: Problem playing .mpg video example with Nokia SDK 4.0 - 2006-02-28, 22:28

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
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?
Reply With Quote

#3 Old Re: Problem playing .mpg video example with Nokia SDK 4.0 - 2006-03-01, 12:25

Join Date: Feb 2006
Posts: 55
ninku6a
Offline
Regular Contributor
Quote:
Originally Posted by hartti
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?
Hi Hartti

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
Reply With Quote

#4 Old Re: Problem playing .mpg video example with Nokia SDK 4.0 - 2006-03-01, 12:38

Join Date: Feb 2006
Posts: 55
ninku6a
Offline
Regular Contributor
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!
Reply With Quote

#5 Old Re: Problem playing .mpg video example with Nokia SDK 4.0 - 2006-03-03, 07:31

Join Date: Mar 2006
Posts: 65
brokendove
Offline
Regular Contributor
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]
Reply With Quote

#6 Old Re: Problem playing .mpg video example with Nokia SDK 4.0 - 2006-03-03, 11:02

Join Date: Feb 2006
Posts: 55
ninku6a
Offline
Regular Contributor
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...
Reply With Quote

#7 Old Re: Problem playing .mpg video example with Nokia SDK 4.0 - 2006-03-03, 14:20

Join Date: Mar 2006
Posts: 65
brokendove
Offline
Regular Contributor
Quote:
Originally Posted by ninku6a
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...
Are you sure it is failing on prefetch? If yes, then it could mean that the emulator is not able to acquire the video display or the speakers exclusively (a condition on some implementations). Are you running anything else at the same time that could impact on the emulator not being able to acquire these resources?

Vikram


Vikram Goyal,
First Book on Mobile Media API (MMAPI) - Coming Soon from Apress
Register at: [url]http://www.mmapibook.com[/url]
Reply With Quote

#8 Old Re: Problem playing .mpg video example with Nokia SDK 4.0 - 2006-03-03, 15:24

Join Date: Feb 2006
Posts: 55
ninku6a
Offline
Regular Contributor
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..
Reply With Quote

#9 Old Re: Problem playing .mpg video example with Nokia SDK 4.0 - 2006-03-04, 01:16

Join Date: Mar 2006
Posts: 65
brokendove
Offline
Regular Contributor
Quote:
Originally Posted by ninku6a
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..
Maybe it's running out of memory to show the video. How big is the file that you are trying to load? Try with a smaller sized file and see if that works.

Cheers,
Vikram


Vikram Goyal,
First Book on Mobile Media API (MMAPI) - Coming Soon from Apress
Register at: [url]http://www.mmapibook.com[/url]
Reply With Quote

#10 Old Re: Problem playing .mpg video example with Nokia SDK 4.0 - 2006-03-05, 20:44

Join Date: Feb 2006
Posts: 55
ninku6a
Offline
Regular Contributor
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
Reply With Quote

#11 Old Re: Problem playing .mpg video example with Nokia SDK 4.0 - 2006-03-05, 23:15

Join Date: Mar 2006
Posts: 65
brokendove
Offline
Regular Contributor
Quote:
Originally Posted by ninku6a
Hi
and I would like to know if there are some "tricks" :-)
Nina
No, there are no tricks to programming with MMAPI, however, as you are finding out, it is cumbersome at times. Have you got an actual device with you? You could try the video on the device and see if that works, indicating that the SDK may have a bug.

Vikram


Vikram Goyal,
First Book on Mobile Media API (MMAPI) - Coming Soon from Apress
Register at: [url]http://www.mmapibook.com[/url]
Reply With Quote

#12 Old Re: Problem playing .mpg video example with Nokia SDK 4.0 - 2006-03-07, 03:56

Join Date: Mar 2005
Posts: 60
akira82
Offline
Regular Contributor
Quote:
Originally Posted by brokendove
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

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! >_<
Reply With Quote

#13 Old Re: Problem playing .mpg video example with Nokia SDK 4.0 - 2006-03-08, 10:17

Join Date: Mar 2006
Posts: 65
brokendove
Offline
Regular Contributor
Quote:
Originally Posted by akira82
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! >_<
That just means that the device may not be able to play files from the local file system. As you can use getSupportedContentTypes() method to find supported content types, so can you use the method getSupportedProtocols() method of the Manager class to find if playing files from the local file system is supported. In most cases, this returns http, file and other device specific values. If file is returned, you can indeed play files from the local file system. You will then need to know where the files are stored and how to get to them. Unfortunately, this is *very* device specific and has to be queried from the device manufacturers. The local file system may not be open to unsigned applications either, which causes another problem and may be throwing a SecurityException without you knowing it.


Vikram Goyal,
First Book on Mobile Media API (MMAPI) - Coming Soon from Apress
Register at: [url]http://www.mmapibook.com[/url]
Reply With Quote

#14 Old Re: Problem playing .mpg video example with Nokia SDK 4.0 - 2006-03-09, 02:48

Join Date: Mar 2005
Posts: 60
akira82
Offline
Regular Contributor
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 :(
Reply With Quote

#15 Old Re: Problem playing .mpg video example with Nokia SDK 4.0 - 2006-03-09, 02:51

Join Date: Mar 2006
Posts: 65
brokendove
Offline
Regular Contributor
Quote:
Originally Posted by akira82
"MediaException:Cannot create a Player for : video/3gpp"...so wht is the reason to dis? & hw do i solve it? (
That just means that playback of video/3gpp files is not supported on the emulator. You can't do anything to resolve it, except perhaps get an emulator that does support such playback.


Vikram Goyal,
First Book on Mobile Media API (MMAPI) - Coming Soon from Apress
Register at: [url]http://www.mmapibook.com[/url]
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ