| Reply | « Previous Thread | Next Thread » |
|
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 |
|
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 |
| honest_success |
| View Public Profile |
| Find all posts by honest_success |
|
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"); |
|
|
|
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. |
|
Yep, getResourceAsStream is your only possibility here (getting the file from JAR resources).
Hartti |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| 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 |