简体   繁体   中英

Java MIDLET Manager.createplayer

I'm developing a Java mobile application, to play the URL "mmsh:// * .asf" in that application, but i'm getting the exception "javax.microedition.media.MediaException: Cannot create a DataSource for: mmsh:// * .asf". My doubt is can i able to create a player for asf format or mmsh protocol?

    Player player = Manager.createPlayer("mmsh://****.asf");

Is there any other way to create a player?

Try using a different constructor:

Player player = Manager.createPlayer(InputStream is, String mimeType);

You might want to make sure the device supports the .asf format by calling:

Manager.getSupportedContentTypes(String protocol)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM