How to get file (video) duration of google drive file programmatically?
问题 Either using rest API, Google Scripts, Node SDK, whatever works. I'm seeing this in the docs but that doesn't seem to tell me the duration: function watchFile(fileId, channelId, channelType, channelAddress) { var resource = { 'id': channelId, 'type': channelType, 'address': channelAddress }; var request = gapi.client.drive.files.watch({ 'fileId': fileId, 'resource': resource }); request.execute(function(channel){console.log(channel);}); } I found this link but it doesn't seem to help https:/