/** moe-video enabler component **/ (function() { function hasResponseError(_data) { let msg = 'Unknown error!'; if (_data) { if (_data.success) return false; else if (_data.message) msg = _data.message; } toastr.error(msg); return true; } // state let moeOTSession = false; let moePublisher = false; let moeVideoElement = false; let moeArchiveID = false; let uploadOrRecord = 'record'; // initialize elements, events function init(_container = false) { $('[moe-video-progress]').remove(); $('
') .attr('moe-video-progress', 1) .append('Setting up camera and microphone access...
' + 'Click "Allow" to allow hardware access and begin the recording
' + 'It appears we do not have access to your input hardware.
' + 'Please allow access to your hardware by clicking the ' +
' icon ' +
'towards the far right of the browser address bar. Once done, please click here to refresh the page and retry.