-
I am developing an audio/video app for an online classroom setup. Essentially, teacher students collaborate over audio/video app. After many weeks of troubleshooting and development efforts, I made a decision to have the following setup.
Since I am new to the Capacitor as well as Mobile app development (in general), I need your help and support to get to the right solution for me and decide whether I should go with 3(A) or 3(B). My feeling is that 3(A) is a good candidate if I want to call native functionality such as camera, audio for on-demand functionalities such as take a pic, upload image, resize, play mp3, play movie, etc. In my case, it is like Zoom or WebEx functionality where teachers and students will have engaged sessions by using audio/video. Can Webview use the plugin for continuous tasks like web conferencing? My concern here is that I am not an expert in handling audio/video work in the plugin (mic, speaker, active speakers, mute, unmute, etc). I want to consider 3(B) because I already have a demo (mic, speaker management covered) code working for iOS and Android for audio/video and admin management in Quasar/Capacitor. My thought process is - it may be better to keep these two concerns separately.
I need your guidance on the above steps.
I know this is long, and I really need your expert tips. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @bizready! If I'm understanding correctly, you're deciding on one of two options: A. Use a Capacitor plugin for audio/video capturing and playback and manage everything in the Capacitor Web View. If that's correct, then my answer would be that today your best option would be A. While it is possible to manage native views alongside the Capacitor Web View, Capacitor wasn't created with that use case in mind and you may run into problems. That being said, improving this is one of the priorities for Capacitor 3 (see #3182). If you choose B, expect to deal with a lot of state management in two places, lots of bridge communication, etc. And, as I mentioned, you may run into problems in Capacitor. I noticed you've been active in the WebRTC proposal. My hope is that the Capacitor community can come together and create a high-quality solution for dealing with all types of media, a la the Media proposal. If you're interested in helping, I'd be happy to chat in the Capacitor slack. |
Beta Was this translation helpful? Give feedback.
Hi @bizready!
If I'm understanding correctly, you're deciding on one of two options:
A. Use a Capacitor plugin for audio/video capturing and playback and manage everything in the Capacitor Web View.
B. Switch between native view(s) for audio/video capturing and playback and the Capacitor Web View for everything else.
If that's correct, then my answer would be that today your best option would be A. While it is possible to manage native views alongside the Capacitor Web View, Capacitor wasn't created with that use case in mind and you may run into problems. That being said, improving this is one of the priorities for Capacitor 3 (see #3182).
If you choose B, expect to deal with a lot of st…