简体   繁体   English

诺基亚6212 platformRequest()打开视频

[英]Nokia 6212 platformRequest() to open a video

How can the platformRequest method defined in MIDP 2.1 JSR be used to open a video on a Nokia 6212 Classic ? 如何使用MIDP 2.1 JSR中定义的platformRequest方法在Nokia 6212 Classic上打开视频?

The Forum Nokia Library states: 诺基亚论坛论坛指出:

In Series 40, native applications are launched with platformRequest(localapp method. The following opens the Photos folder in Gallery. 在Series 40中,本机应用程序是通过platformRequest(localapp方法启动的。下面将打开Gallery中的Photos文件夹。

platformRequest("localapp://gallery/show?folder=C:/predefgallery/predefphotos"); platformRequest(“ localapp:// gallery / show?folder = C:/ predefgallery / predefphotos”);

Currently I have tried the following (and more): 目前,我已经尝试了以下方法(以及更多方法):

I did make sure the resource as availble at the location given as the folder argument. 我确实确保在指定的文件夹参数位置上资源可用。

platformRequest("localapp://gallery/show?folder=C:/Gallery/Video Clips/Material.mp4");
platformRequest("localapp://gallery/show?folder=C:/gallery/video clips/material.mp4");
platformRequest("localapp://gallery/show?folder=C:/Material.mp4");
...

For testing purposes to open an image I tried, 为了测试打开我尝试过的图像,

platformRequest("localapp://gallery/show?folder=C:/Gallery/Images/Image001.jpg"); //Gallery.

platformRequest("localapp://gallery/show?folder=C:/predefgallery/predefphotos") //Failed as well :-(
...

All fail with the following error message. 全部失败,并显示以下错误消息。

ConnectionNotFoundException: Invalid URL. ConnectionNotFoundException:无效的URL。

It is obivious what the problem is but I cannot determine the correct way to tell the phone where a file is and what to open it with using the URL. 问题出在哪里,这很明显,但我无法确定正确的方法来告诉电话文件在哪里以及使用URL打开文件的方式。

(I have asked the question on the Nokia Forum but to no avail. ) (我已经在诺基亚论坛上提出了这个问题,但无济于事。)

Is your application signed for the Manufacturer or Operator domain? 您的应用程序是否针对制造商或运营商域签名? Quote from the Forum Nokia Library : 诺基亚论坛图书馆的报价:

Start local application. 启动本地应用程序。 In Series 40, only allowed for manufacturer and operator MIDlets. 在Series 40中,仅允许制造商和运营商MIDlet使用。 In Symbian Java all domains work but only some applications are supported. 在Symbian Java中,所有域均可使用,但仅支持某些应用程序。

The 6212 is a Series 40 device. 6212是40系列设备。 Although I wouldn't expect a ConnectionNotFoundException (rather a SecurityException), this won't work unless you have you midlet Manufacturer/Operator signed. 尽管我不希望有ConnectionNotFoundException(而是SecurityException),但是除非您让Midlet Manufacturer / Operator签名,否则这将无法工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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