@ocular-interactive/cordova-plugin-ios-camerastream

cordova plugin to stream iOS camera to webapp

Usage no npm install needed!

<script type="module">
  import ocularInteractiveCordovaPluginIosCamerastream from 'https://cdn.skypack.dev/@ocular-interactive/cordova-plugin-ios-camerastream';
</script>

README

cordova-plugin-ios-camerastream

Plugin made by combining multiple other plugins. Made for iOS because it doesn't support webRTC in wkWebview (yet).

(Re)start the stream (camera, fps)

Start the "back" or "front" camera with fps

cordova.iosStream.startCapture('back', 30);

Pause the current stream

Pauses the current stream

cordova.iosStream.pause();

Process capture data

Returns the stream as base64

cordova.iosStream.capture = function(data){
    //do something here for example:
    image.src = data;
}