W3C Media Capture API

An implementation of the W3C Media Capture spec:
http://dev.w3.org/2009/dap/camera/Overview-API

Capture operations are supported for audio, video, and images.  Each
capture operation launches the native audio recorder, video recorder,
or camera application, respectively.
This commit is contained in:
macdonst
2011-03-11 16:14:47 -05:00
parent d74569ffa7
commit e766188689
6 changed files with 539 additions and 8 deletions

View File

@@ -3,7 +3,7 @@
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
*
* Copyright (c) 2005-2010, Nitobi Software Inc.
* Copyright (c) 2010, IBM Corporation
* Copyright (c) 2010-2011, IBM Corporation
*/
package com.phonegap;
@@ -942,7 +942,7 @@ public class FileUtils extends Plugin {
* @param filename
* @return a mime type
*/
private String getMimeType(String filename) {
public static String getMimeType(String filename) {
MimeTypeMap map = MimeTypeMap.getSingleton();
return map.getMimeTypeFromExtension(map.getFileExtensionFromUrl(filename));
}