Issue Description
When ZiggeoRecorder is rendered with the properties allowrecord={false}, allowupload={false}, and theme="modern" an error is thrown and the component doesn't work. When theme="modern" prop is removed, the component works as expected.
Context
My company is integrating Ziggeo into a web app with the following requirements:
- Only uploading videos is allowed (no recording)
- A file "drop-zone" component (example) should be used to select the file and we don't want to show the initial Ziggeo component screen (the one with "Record Video" and "Upload Video" buttons)
Here is our approach to achieve that:
- We render a file dropper component
- When the user selects a file, we render
ZiggeoRecorder with allowrecord={false} and allowupload={false} in order to hide the initial screen.
- Once
ZiggeoRecorder is initialized, we use the JS API to call upload_video(file) and then Ziggeo handles the rest
Steps to reproduce
- Clone this fork of react-ziggeo: https://github.com/eduardoportilho/react-ziggeo-uploader-modern
- Run the demo app as described in README (add API_KEY to
src/constants.js, npm install, and npm start)
- On the app, choose a video file and check the error in the console
This problem happens only with theme="modern", so if the line where it is passed is commented, the component works as expected.
Issue Description
When
ZiggeoRecorderis rendered with the propertiesallowrecord={false},allowupload={false}, andtheme="modern"an error is thrown and the component doesn't work. Whentheme="modern"prop is removed, the component works as expected.Context
My company is integrating Ziggeo into a web app with the following requirements:
Here is our approach to achieve that:
ZiggeoRecorderwithallowrecord={false}andallowupload={false}in order to hide the initial screen.ZiggeoRecorderis initialized, we use the JS API to callupload_video(file)and then Ziggeo handles the restSteps to reproduce
src/constants.js,npm install, andnpm start)This problem happens only with
theme="modern", so if the line where it is passed is commented, the component works as expected.