Is it possible to call the local player in J2ME development and play the video?
I want to call / open the native player for my application I have to open my local video player and play my video with it So please tell me is it possible to do this?
Solution
The MIDlet class has a method called platformRequest (), but there is no guarantee that it will work on many devices, where URL is a parameter For example, to open a native browser using a parameter URL, simply open the real absolute URL, such as“ https://stackoverflow.com ”
public void openBrowser(String URL) { try { mainMIDlet.platformRequest(URL); } catch (ConnectionNotFoundException e) { // error } }
For more information, see API JSR 118: http://docs.oracle.com/javame/config/cldc/ref-impl/midp2.0/jsr118/index.html
Tip
Use the method getappproperty (class MIDlet) or (class system):
public final String getAppProperty(String key)
Find the value of URL (parameter), such as:
String platform = System.getProperty("microedition.platform");
Remember that each manufacturer has different types of specific parameters and combinations