ScarletsFiction / SFMediaStream

HTML5 media streamer library for playing music, video, playlist, or even live streaming microphone & camera with node server
MIT License
101 stars 30 forks source link

Can I use it with android? #25

Closed roeilulavy closed 1 year ago

roeilulavy commented 1 year ago

Hello! I want to use this SFMediaStream with my android app I'm working on.. Is this possible? @StefansArya

StefansArya commented 1 year ago

Hi! It's possible to create Android app with this library using Cordova/Phonegap, I usually use Capacitor to make Android apps. or just PWA.

I recommend to target Android >= 6.0 as the WebView (Android System WebView) usually get auto-updated. Android lower than 5.0 (Lollipop, API 21) should be blacklisted as the WebAudio API may be incompatible with WebView lower than v37.

But If you're targetting your app for user below Android 6.0 (and >=5.0), I think it's better to remind the user to update the Chrome browser and Android System WebView just in case if it wasn't updated.

I also think the current (most updated) Chrome browser v102 is now not compatible for Android 5.0.1. So.. to avoid security issues and some incompatibilities from the browser-side, it's better to target Android >=6.0 (Marshmallow, API 23) anyway.