【问题标题】:fileURI and filePath : phonegap plugin capture and camerafileURI 和 filePath : phonegap 插件捕获和摄像头
【发布时间】:2011-10-12 10:40:43
【问题描述】:

我正在使用捕获插件进行视频录制
并为图像使用相机插件(来自画廊和相机)

但作为双方的回应,我得到了不同的格式结果。

在 Video Case(Capture) 中,我将图像路径作为 fullPath
/private/var/mobile/Applications/3736F94E-F57B-4537-A352-1B746B1D67FF/tmp/capture/capturedvideo.MOV
在 Image Case(Camera) 中,我获得了 fileURI em>
file://localhost/var/mobile/Applications/3736F94E-F57B-4537-A352-1B746B1D67FF/tmp/photo_002.jpg

谁能告诉我这是什么原因?为什么它不返回相同的格式?

因为我在 iOS 上使用 phonegap
因此,为了将图像/视频转换为 NSData,我必须分别使用 initWithContentsOfURL、initWithContentsOfFile。

阿米特·巴塔

【问题讨论】:

    标签: ios xcode4 cordova phonegap-plugins


    【解决方案1】:
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-02
    • 2011-11-24
    • 1970-01-01
    • 2019-02-19
    • 1970-01-01
    相关资源
    最近更新 更多