CameraUI.prototype.destroyPreview = function()

in src/browser/CaptureProxy.js [133:141]


CameraUI.prototype.destroyPreview = function () {
    this.preview.pause();
    this.preview.src = null;
    this._previewStream.stop();
    this._previewStream = null;
    if (this.container) {
        document.body.removeChild(this.container);
    }
};