[Metadata] Aded getFrame method of MetadataFileHandle 71/245071/7
authorPiotr Kosko <p.kosko@samsung.com>
Thu, 1 Oct 2020 06:02:45 +0000 (08:02 +0200)
committerPiotr Kosko <p.kosko@samsung.com>
Thu, 3 Dec 2020 13:19:03 +0000 (14:19 +0100)
commit26015ab14532cb05b28ce8bff912e27151ddf06a
tree2e6537f7e480bb79b725281e091a9e3545cd39e5
parentc456a5ac54a63c06b48619f8889b38ac14c2e140
[Metadata] Aded getFrame method of MetadataFileHandle

[ACR] https://code.sec.samsung.net/jira/browse/TWDAPI-271

[Verification] Code compiles withotu errors.
Works well for mp4 video.
var path = "videos/sample_video.mp4";
function showBlob(bbb) {
    var elem = document.getElementById("blobImage") || document.createElement("img");
    elem.setAttribute("id", "blobImage");
    elem.setAttribute("height", "240");
    elem.setAttribute("width", "240");
    elem.setAttribute("alt", "invalid frame");
    document.getElementById("test").appendChild(elem)

    var objectURL = URL.createObjectURL(bbb);
    elem.src = objectURL;
}
var fileHandle = tizen.metadata.createFileHandle(path);
var frame = fileHandle.getFrame();
console.log(frame);
showBlob(frame)

Change-Id: I2d5e81b19d7f11ff2c08a0096a0b58fb7e3bfc48
packaging/webapi-plugins.spec
src/metadata/metadata.gyp
src/metadata/metadata_api.js
src/metadata/metadata_file_handle.cc
src/metadata/metadata_file_handle.h
src/metadata/metadata_instance.cc
src/metadata/metadata_instance.h