You Are Here:

Community: Developer Discussion Boards

#1 Old Playing video from file system. - 2008-08-13, 14:37

Join Date: Jun 2008
Posts: 10
t1amir@walla.co.il
Offline
Registered User
Hi guys.
I am trying to play a video file from the file system on N95 the following way with no luck:

fileConnection fc = (FileConnection) Connector.open("file:///Data/12.mp4",Connector.READ);
InputStream is = fc.openInputStream();
player = Manager.createPlayer(is,"video/mp4");
player.prefetch();
player.realize();

The problem is that I don’t know the path of the file that I want to play.
How do I find out the path of the file that I want to play?

Tamir
Reply With Quote

#2 Old Re: Playing video from file system. - 2008-08-15, 17:24

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Some guidance in here
http://www.forum.nokia.com/document/...0BF44A5CB.html

Hartti
Reply With Quote

#3 Old Re: Playing video from file system. - 2008-08-23, 01:32

Join Date: Nov 2007
Posts: 2,029
Location: Rome, Italy
Send a message via MSN to jappit Send a message via Skype™ to jappit
jappit's Avatar
jappit
Offline
Forum Nokia Champion
Hi Tamir,

a bit late but, if you want to play videos stored into default device's videos folder, you can use the 'fileconn.dir.videos' System property to get its full path.

Also, if you want to retrieve the full list of available videos in a given directory, you can use the FileConnection list() method.

Hope it helps,
Pit


www.jappit.com - mobile and web blog
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 On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
[announce] PyUIQ. Python for UIQ 2.1 and 3.x OscarBernabeu Python 35 2008-01-17 10:12
Playing AMR file is solved, Here is the solution. khurshed79 Symbian Media (Graphics & Sounds) 8 2007-12-19 07:11
to know the encoding type of recorded video file impankaj24 Symbian Media (Graphics & Sounds) 2 2007-05-10 12:32
6280: OutOfMemoryException when playing an ebedded 3GP file? neilskinner Mobile Java General 10 2007-02-11 14:50
Playing 3GP video file in local file system. media999 Mobile Java Media (Graphics & Sounds) 4 2006-09-14 08:53

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