View Full Version : ISHELL_BrowseFile error 15
shri_ram_r
06-14-2006, 11:19 PM
hello,
I am working on teh brew 3.1.5 simulator
here is my problem.
I have a file (either downloaded from the net or present in the directory as my brew app)
say its an mp3 file.
Now i want to start an app to play this MP3 file. I got hold of a sample called media player and put it in the same directory as my brew app directory..
effectively here is the configuration:
Folder: Parent
contents
1. BrewAPP Directory
2. MediaPlayer Directory (other mp3 files are in the directory MediaPlayer/media/
3. BrewAPP.mif
4. MediaPlayer.mif
5. sample.mp3
and i set my simulator applet directory to Parent directory..
Here is the problem:
I use ISHELL_BrowseFile(ptrtoISHELL, "sample.mp3");
the media player is getting started but it is not playing the file.. even when i click on the play button, it does not play ..
ash_123
06-14-2006, 11:53 PM
You can probably see what is happening by going to View-> Output Window in BREW Simulator.
It will show you the debug messages there.
shri_ram_r
06-22-2006, 11:18 PM
hi
I tried starting a media player application using ISHELL_BrowseFile(pApp->m_pShell,"fs:/shared/44khz32kbps.mp3");
i am getting error code 15 :confused: . I checked it out in AEEError.h . it corresponded to ESCHEMENOTSUPPORTED ... cant figure out how to eliminate it..
My Application has read & write access in teh shared directory (i am even able to create a file in the shared dir from my app).. so is the media player application ..
The media player is enabled to receive the EVT_APP_Browse_File & Browse_URL events... :mad:
Problem2:
I copied the 44khz32mbps.mp3 file into the directory whre my application's mif file resides (that means the brew root file system right?) ..
Now when i give the browsefile call, teh media player is starting but it is not playing the file!! :(
By the way, the media player is the sample application which comes with the BREW SDK 3.1.5 kit ...
shri_ram_r
06-27-2006, 11:11 PM
hi,
I have an mp3 application (the sample in teh sdk) called media player. I have a file in the shared directory called music.mp3.. How do i make this media player to play this mp3 file from my application
I tried ISHELL_BrowseFile(..,"fs:/shared/music.mp3") .. i am only getting error code 15 (dunno what it is) ...
shri_ram_r
06-27-2006, 11:16 PM
hi..
i just wrote a simple application to which starts other applications ..
i have a file called music.mp3 in the shared folder ..
I used ISHELL_BrowseFile(..., "fs:/shared/music.mp3") to start the mp3 application media player (provided in teh sdk samples) ..
i am getting error number 15 ..
is there any other way to start an application associated with a file ...
shri_ram_r
06-27-2006, 11:20 PM
if i have a file name, i want to invoke teh app that can read/process this file..
what are teh ways to do so..
i had a file called music.mp3 in the shared folder..
I tried ISHELL_BrowseFile(..., "fs:/shared/music.mp3") .. i only got error 15 ..
I can use ISHELL_StartApplet .. but that would require me to know the AEECLSID of the applet that can play this file.. what if i dont know this.. is there anyway i can get the AEECLSID of the applet that can play this file , from the system ..
You'd probably be better off using the mediautil methods.
shri_ram_r
06-27-2006, 11:52 PM
i guess you are right.. but my problem is not just audio or video files...what if i download some other file say of extension .ppp and tehre is an application in my mobile that than run this file..
how do i get this app's class id so that i can start it using StartAppletArgs (appid, file name) ..
ISHELL_Browsefile doesnt seem to be working at all for files that are not in the module directory ! it gives only error 15 ...
To put it in simple terms Mr.Max, is there a generic logic that can be used to start an app associated with the file (present in shared or any directory for that matter) ... assuming that app has registered for that file extension ..
If you know the MIME type, you can use ISHELL_GetHandler(). The only problem would be that you have no way of knowing how the handler is expecting to be invoked to launch with a given file.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.