camera.get 中繼資料

根據 URI 傳回檔案中繼資料。圖片標頭會列出 Exif 和 XMP 欄位。這個指令已在 API 級別 2 中淘汰。

參數

  • fileUri:目標檔案的 URI。製造商會決定要使用絕對還是相對 URI。用戶端可能會將這個 ID 視為不透明 ID。

成果

  • metadata:EXIF 檔案 (包括 GPS 資訊)、採用 JSON 格式的 360 度全景相片。不含圖片或縮圖。

錯誤

  • missingParameter:未指定 fileUri
  • invalidParameterName:輸入參數名稱無法辨識。
  • invalidParameterValue:系統辨識到輸入參數,但其值無效;例如 fileUri 不存在,或者其資料類型不正確。

指令 I/O

指令輸入
{
    "parameters": {
        "fileUri": "file URI"
    }
}
指令輸出
{
    "results": {
        "exif": {
            ...
            "ImageWidth": 2000,
            "ImageLength": 1000,
            ...
        },
        "xmp": {
            "ProjectionType": "equirectangular",
        "UsePanoramaViewer": true,
            ...
        }
    }
}
指令輸出 (錯誤)
{
    "error": {
        "code": "invalidParameterValue",
        "message": "Parameter fileUri doesn't exist."
    }
}