You Are Here:

Community: Developer Discussion Boards

#1 Old MMAPI File Locator Syntax - 2008-03-30, 15:20

Join Date: May 2005
Posts: 5
Location: New York
vanevery
Offline
Registered User
Hi All,

I need to use the file:// syntax for an MMAPI video playback application (so that I can get FramePositioningControl). Unfortunately, I can not figure out the syntax to load a video file from the JAR file using it..

Any advice?

I have tried:

mPlayer = Manager.createPlayer("file://videofile.3gp");
mPlayer = Manager.createPlayer("file:///videofile.3gp");
mPlayer = Manager.createPlayer("/videofile.3gp");
mPlayer = Manager.createPlayer("videofile.3gp");

Thanks
Reply With Quote

#2 Old Re: MMAPI File Locator Syntax - 2008-03-30, 15:54

Join Date: Sep 2007
Posts: 874
honest_success's Avatar
honest_success
Offline
Forum Nokia Champion
Here i am providing you both synatx.

public static Player createPlayer(String locator);//File Locaor as your requirement



public static Player createPlayer(InputStream stream, String type);


the following is one example for it.

InputStream in = getClass().getResourceAsStream("/fish.mpg");
mPlayer = Manager.createPlayer(in, "video/mpeg");a
Reply With Quote

#3 Old Re: MMAPI File Locator Syntax - 2008-03-30, 16:32

Join Date: May 2005
Posts: 5
Location: New York
vanevery
Offline
Registered User
The getResourceAsStream won't work for me as I need to use a "file://" locator to get the FramePositioningControl to work.

I am looking for the specific locator syntax for "file://" for getting a file out of a JAR

Should be something like: Manager.createPlayer("file://blah.3gp");
Reply With Quote

#4 Old Re: MMAPI File Locator Syntax - 2008-03-30, 20:55

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Here is a link to some examples
http://www.forum.nokia.com/document/...7B63C2E59.html

Hartti
Reply With Quote

#5 Old Re: MMAPI File Locator Syntax - 2008-03-31, 09:03

Join Date: May 2005
Posts: 5
Location: New York
vanevery
Offline
Registered User
Thanks..

Guess I was unclear previously. I need to get access to a file that is bundled with the Jar as a resource. in other words, inside the jar.

After digging for quite a while, it seems there isn't a means to get at a resource file in a Jar with the file:// locator syntax..

I either have to use an existing file on the file system or utilize getResourceAsStream which prevents me from using some of the functionality I need in the MMAPI.
Reply With Quote

#6 Old Re: MMAPI File Locator Syntax - 2008-03-31, 11:23

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Yep, getResourceAsStream is your only possibility here (getting the file from JAR resources).

Hartti
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
[announce] PyUIQ. Python for UIQ 2.1 and 3.x OscarBernabeu Python 35 2008-01-17 10:12
Contacts fields order?? timatima General Symbian C++ 1 2007-06-08 14:51
Creating and installing SIS file... Himanshu_Joshi Carbide.c++ IDE and plug-ins 1 2007-04-12 18:36
Series 60 SDK Appwizard on windows xp moonjoor Symbian Tools & SDKs 15 2003-12-24 11:22
Trick to allow 7650->PC Transfer without BT Serial or PC Connect Niall Bluetooth Technology 0 2002-11-19 09:25

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