You Are Here:

Community: Developer Discussion Boards

#1 Old Prefetch error - 34 - 2006-12-04, 12:42

Join Date: Nov 2006
Posts: 28
redlex
Offline
Registered User
Soemtimes when setting up a video stream (using MMAPI on Nokia N80) I get a prefetch error:

javax.microedition.media.MediaException: Prefetch error: - 34

Other times it works.

So...
1) What does error 34 actually mean? I can't find anything about '34' anywhere
2) How can I avoid it?
3) if I can't avoid this error, what's the best way to transparently handle it? Just try prefetching again?

thanks!
Alex
Reply With Quote

#2 Old Re: Prefetch error - 34 - 2006-12-08, 12:20

Join Date: Dec 2005
Posts: 1,159
Location: England,UK
jimgilmour1's Avatar
jimgilmour1
Offline
Forum Nokia Champion
Hi,
I currently working on a similar problems. My finding is that some streams work and some dont. I have discovered distance is a problem. If you a close to a stream like less than 3000 miles 4500Km you cannot stream, but some one 12,000 miles away can. We have all said "How weird?" many times. I am trying the write a rtsp stream analyser to see if this will resolve the problem.
I have noticed that if you define the stream name in the Gallery media stream and open the stream by using Real Player directly in firmware the stream works so it appears to be something in J2ME.
I have upgraded to WTK 2.5 as some said this is the problem but no difference and Carbide.J 1.5 S60 just hangs instead of handling the exception!.
I am currently installing Darwin Streaming Server locally in attempt to find the problem. This is no doubt techinically challenging problem as depending on what part of the world,Malaysia, London,Uk or West Coast, USA you live in depends which stream you can use.

BTW The streams are LiveTV that streams via 3G (UTMS).


I need some luck here,
Jim
Last edited by jimgilmour1 : 2006-12-08 at 12:34.
Reply With Quote

#3 Old Re: Prefetch error - 34 - 2006-12-11, 20:45

Join Date: Dec 2005
Posts: 1,159
Location: England,UK
jimgilmour1's Avatar
jimgilmour1
Offline
Forum Nokia Champion
Hi,
Finally found how to interpret these errors.
The error code is listed in the Symbian C++ S60 Error codes list on the Symbian Error page.

Prefetch -34 is
"KErrCouldNotConnect -34 Failed to connect"

Some sort of failure for you stream to conect to server.
Not really suprising as connect timeout occurs quite regular on internet.
PHP Code:
try {
         
stream.prefetch()
}
catch { 
MediaException mioe}
(
         
// same old connect code again
          
...........stream.close();
          ...........
stream xxxxx.connect(url);
          ...........
stream.realise();
          try {
          ...........
stream.prefetch()
               } catch ( 
MediaException mioe) {
                  
midlet.alertError("cannot reconnect after error " mioe.getMessage());
                  }

Basically if a prefetch error occurs the channel is closed and re-opened, this is not really good code and should make more than one attempt whenever a failure occurs, meaning you should structure the code to restart the link.
This fine on Live TV streams but not much use for static streams video as you cant restart at the point connection was lost.

Sorry but no simple answer then.
Jim
Reply With Quote

#4 Old Re: Prefetch error - 34 - 2006-12-19, 11:53

Join Date: Nov 2006
Posts: 28
redlex
Offline
Registered User
Thanks for your reply Jim - that's very helpful info!

Distance being a factor in streaming video is quite weird - I suppose that implies latency is an issue?

Well done on locating the meaning of the prefetch error -34!
In case it helps others, I found the error list here: http://www.newlc.com/article.php3?id_article=117

I'll add to this thread if I dig up any more useful info.
Reply With Quote

#5 Old Re: Prefetch error - 34 - 2006-12-19, 12:21

Join Date: Nov 2006
Posts: 28
redlex
Offline
Registered User
Btw Jim I was thinking about that distance thing and it just seems so weird! Are you absolutely sure that the distance is the only variable? i.e. is an identical stream you're trying, in both places, with distance being the only change? I know some streams work better than others, but that's more down to differences in the encoding and if the N80 likes them....
Reply With Quote

#6 Old Re: Prefetch error - 34 - 2007-04-11, 19:01

Join Date: Dec 2005
Posts: 1,159
Location: England,UK
jimgilmour1's Avatar
jimgilmour1
Offline
Forum Nokia Champion
Hi,
Finally found the answer the firmware needs upgrading using the Nokia update site at http://www.nokia.co.uk/A4226014

This cures all currently know bugs with video streaming for N73,N80 etc.

Jim
Reply With Quote

#7 Old Re: Prefetch error - 34 - 2007-12-19, 14:12

Join Date: Nov 2007
Posts: 24
praveen.saini
Offline
Registered User
u can find all errors from

http://www.newlc.com/article.php3?id_article=117


-Praveen Saini
Catalytic Software
praveen.saini@catalytic.com
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
MediaException when prefetch or play an amr file of 6230i qiu_swing Mobile Java Media (Graphics & Sounds) 3 2006-09-27 18:21
Failed to Prefetch aztec30 Mobile Java Media (Graphics & Sounds) 2 2006-09-25 18:50
how to decrease prefetch time??? desijatt Mobile Java Media (Graphics & Sounds) 3 2006-09-15 18:54
prefetch() crashes testerm Mobile Java Media (Graphics & Sounds) 1 2005-01-18 02:29
takes to long to prefetch alperay Mobile Java General 1 2004-07-31 00:17

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