Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
blackberrycontentHandler中的疑问_Blackberry - Fatal编程技术网

blackberrycontentHandler中的疑问

blackberrycontentHandler中的疑问,blackberry,Blackberry,我正在尝试播放音乐文件,使用内容处理程序,这是我使用的代码语法 //创建调用 Invocation invocation = new Invocation(filePath,null,BlackBerryContentHandler.ID_MEDIA_CONTENT_HANDLER); // Get the registry object Registry registry = Registry.getRegistry("net.rim.device.api.

我正在尝试播放音乐文件,使用内容处理程序,这是我使用的代码语法

//创建调用

Invocation invocation =
      new Invocation(filePath,null,BlackBerryContentHandler.ID_MEDIA_CONTENT_HANDLER);

    // Get the registry object
       Registry registry = Registry.getRegistry("net.rim.device.api.content.BlackBerryContentHandler");//here i changed to my own file

    //Invoke the content handler.
       registry.invoke(invocation);
当应用程序运行时,它会导航到媒体应用程序屏幕,但它只是停留在屏幕上,无法播放音乐或媒体文件,你知道会出现什么问题吗

问候


Rakesh Shankar.p

我已经尝试过这段代码,它对我来说运行良好

Invocation invocation = new Invocation("file:///SDCard/B.mp3",
                        null, BlackBerryContentHandler.ID_MEDIA_CONTENT_HANDLER);
Registry.getRegistry(getClass().getName()).invoke(invocation);

您好,谢谢您的输入,我正在尝试播放一个流文件,您对它的建议流启动浏览器与rtsp网址。BrowserSession visit=Browser.getDefaultSession();访问.显示页面(“rtsp://stream.the.sk/live/musicbox/musicbox-hm.3gp");你好,维瓦特,我也尝试过这种方式。但我希望流媒体音乐或视频文件可以通过这个blackberrycontenthandler播放。所以我正在寻找它。