01-21-2010 12:50 AM - edited 01-21-2010 12:51 AM
Hi am trying to play a video. i followed the way given in KB article
now it is throwing an exception: "Locator does not reference a valid media file", meaning that the path is invalid.
but it is a valid path, and video file is recognizing when i explore it through 'Media'. I placed it on the SDCard.
Here is the code that is throwin exception:
player = javax.microedition.media.Manager.createPlayer("fil
Solved! Go to Solution.
01-21-2010 01:43 AM
i did in the following way to solve the issue, but i dont find the reason behind why it is throwing error?
any way my issue is solved now with the following code....
StreamConnection sc = (StreamConnection)Connector.open("file:///SDCard/B
lackBerry/videos/10.3gp"); InputStream is = sc.openDataInputStream(); player = javax.microedition.media.Manager.createPlayer(is, "video/3gpp"); player.realize();
if any1 find the reason for invalid URI that is of great help.