You Are Here:

Community: Developer Discussion Boards

#1 Old Question J2ME video streaming memory issues - 2008-03-17, 07:36

Join Date: Mar 2008
Posts: 1
sreyansjain
Offline
Registered User
I am doing a semester project which requires me to playback videos as defined in a sequence. So i need to playback 7 to 8 different videos one after the other. i have written a standard 2 player code to playback 3gp videos via streaming. The methods involved in the code are as follows:-

load1(){
// This method is used to load player 1. it has code to create a player from a stream like
clean1();
player1= Manager.createPlayer("URI for 3gp file");
//etc
}
clean1(){
player1.stop();
player1.deallocate();
player1=null;
}
play1(){
player1.start();
load2();
}
So when player 1 is playing player 2 is being loaded.

corresponding methods are defined for player 2 viz load2(), clean2() and play2().

The problem is everytime a video is being played back it takes up around 120KB in system memory although the videos are only 50KB each.
So if i play 10 files the total memory being taken up is around 120*10 KB. I am releasing the resources used by each player by calling the corresponding clean methods but somehow the memory is not being released. Hence when running in real devices (Nokia and Sony ericsson) a memory out of bounds exception is thrown and the code hangs. In most devices (N72, N70, 6630 etc) only 2-3 videos are being played and then the code hangs. The code is running fine in Nokia S60emulator though. Is there any way we can force the player to release it resource so that the memory out of bounds exception can be avoided. Is there any other way in which the code can be written to avoid the memory issues. Please kindly help. Any help would be very much appreciated as the project end date is nearing and i am stuck with this. Please kindly help. Thanks in advance. :)
Last edited by sreyansjain : 2008-03-17 at 08:11.
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
Video Streaming Buffer alessiobwb Symbian Media (Graphics & Sounds) 1 2007-07-22 09:03
RTSP video streaming issue on 6280 olivier_irac General Discussion 0 2006-12-04 16:11
Streaming video + J2ME application interruptions redlex Mobile Java Media (Graphics & Sounds) 2 2006-11-27 12:37
Can i do video streaming in J2ME chandanp Mobile Java General 1 2002-09-10 17:45
Can i do video streaming in J2ME chandanp Mobile Java General 0 2002-09-10 09:31

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: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d134434X 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