0.0.1 • Published 15 days ago

media-captura v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
15 days ago

media-capture

Plugin Capacitor Media capture

Install

npm install media-capture
npx cap sync

API

captureVideo(...)

captureVideo(options: CaptureVideoOptions) => Promise<MediaFileResult>
ParamType
optionsCaptureVideoOptions

Returns: Promise<MediaFileResult>


Interfaces

MediaFileResult

PropType
fileMediaFile

MediaFile

PropTypeDescription
namestringThe name of the file, without path information.
pathstringThe full path of the file, including the name.
typestringThe file's mime type
sizenumberThe size of the file, in bytes.

CaptureVideoOptions

PropTypeDescription
durationnumberMaximum duration per video clip.
quality'uhd' | 'fhd' | 'hd' | 'sd'Quality of the video. uhd for 4K ultra HD video size (2160p). fhd for full HD video size (1080p). hd for HD video size (720p). sd for SD video size (480p).
sizeLimitnumberMax file size in bytes.
acornacorn-jsxansi-regexansi-colorsajvargparseansi-stylesarr-diffarr-unionarr-flattenarray-includesarray-unionarray-buffer-byte-lengthanymatcharray-uniquearray.prototype.flatarray.prototype.flatmaparraybuffer.prototype.slicearray.prototype.findlastindexassign-symbolsasn1astral-regexasapatobbalanced-matchat-least-nodebrace-expansionasync-eachavailable-typed-arraysbinary-extensionsbackmeupbasebracescache-basecallsitescall-bindcamelcasechalkchokidarchevrotainclonecliuiclass-utilscode-point-atcoloretteconcat-mapcollection-visitcolor-convertcolor-namecolorscomponent-emittercosmiconfigcopy-descriptordata-view-buffercross-spawndata-view-byte-lengthdata-view-byte-offsetdebugdecode-uri-componentdecamelizedeep-isdefaultsdefine-propertiesdefine-data-propertydefine-propertydiffduplexerdoctrineecodir-globeachenquirererror-exes-abstractes-define-propertyes-errorses-object-atomses-shim-unscopableses-set-tostringtages-to-primitiveescape-string-regexpeslint-import-resolver-nodeeslint-config-prettiereslint-plugin-importeslint-scopeeslint-module-utilseslint-utilseslint-visitor-keysespreeesprimaesrecurseesqueryestraverseetc-passwdexpand-bracketsesutilsexpand-rangeemoji-regexextglobextend-shallowfast-globfast-deep-equalfast-levenshteinfast-json-stable-stringifyfastqfile-entry-cachefilename-regexfill-rangefor-ownflat-cacheflattedfs.realpathfor-eachftp-response-parserfor-infs-extraftpfunctional-red-black-treefragment-cachefunction-bindfunction.prototype.nameget-stdinglobgithub-sluggerfunctions-have-namesget-valueget-intrinsicglobalsglob-baseglob-parentgopdglobalthisglobbyhas-bigintsget-symbol-descriptionhas-flaghas-property-descriptorshas-protohas-symbolshas-tostringtaghas-valuehas-valuesinflighthasowninheritsimport-freshignoreiniimurmurhashgraceful-fsinvert-kvinternal-slotis-array-bufferis-accessor-descriptoris-arrayishis-bigintis-boolean-objectis-bufferis-core-moduleis-data-descriptoris-data-viewis-callableis-date-objectis-dotfileis-descriptoris-equal-shallowis-extendableis-fullwidth-code-pointis-extglobis-negative-zerois-globis-numberis-binary-pathis-number-objectis-posix-bracketis-primitiveis-symbolis-regexis-shared-array-bufferis-stringis-typed-arrayisarrayis-plain-objectis-windowsis-weakrefisexejs-tokensjava-parserjs-yamljson-bufferjsftpjsescjson-schema-traversejson-parse-even-better-errorsjson-stable-stringify-without-jsonifyjsonfilejson5keyvlazylineslcidkind-oflevnlines-and-columnslodashlodash.mergemap-cachelonglodash.truncatemap-visitminimatchminimistmath-randommerge2mecanomicromatchmixin-deepmixmemomentisobjectmsmustachenatural-comparenumber-is-nanobject-copynormalize-pathcore-util-isnanomatchnunjucksobject-keysobject.assignobject-visitonceobject.fromentriesobject.groupbyobject.omitobject.pickoptionatoros-localeobject.valuespadparent-moduleparametersparse-jsonpath-is-absoluteparse-globpascalcaseparse-listingpath-keypath-parsepath-typepicocolorspicomatchobject-inspectpossible-typed-array-namesprocess-nextick-argsprelude-lspreserveposix-character-classespunycodeprogressprotobufjsqueue-microtaskrandomaticregexp-quoteremove-trailing-separatorregex-notregex-cacheregexp.prototype.flagsregexp-to-astregexpprepeat-elementreadable-streamresolverepeat-stringresolve-urlresolve-fromrequire-from-stringreaddirpreusifysafe-regexrun-parallelsafe-array-concatsafe-buffersafe-regex-testsafer-buffersemverset-function-lengthset-function-nameset-valueretshebang-commandshebang-regexslashslice-ansisignal-exitsnapdragonsnapdragon-nodesnapdragon-utilsource-mapsource-map-resolvesource-map-urlsplit-stringside-channelssh2-execssh2-connectssh2-streamsstack-tracesprintf-jsstatic-extendssh2-fsstreamsearchstream-combinerssh2string-widthstring.prototype.trimendstring.prototype.trimstring.prototype.trimstartstring_decoderstrip-ansistrip-json-commentsstrip-bomsupports-colorstrscantext-tabletablesupports-preserve-symlinks-flagto-object-pathtilde-expansionto-regexto-regex-rangetslibtsconfig-pathstype-checktsutilstree-killtype-festtyped-array-buffertyped-array-byte-offsetuniversalifyunion-valueunbox-primitivetyped-array-lengthuri-jsunset-valueunormurixuntildifyuseutil-deprecatev8-compile-cachewcwidthwhichwhich-boxed-primitivewrappywhich-typed-arraywindow-sizewrap-ansiword-wrapxregexpthroughtyped-array-byte-lengthyamlyargsy18n
0.0.1

15 days ago