Closed avivash closed 9 months ago
Update: I was able to get it working on android by adding android:allowAudioPlaybackCapture="true"
to the AndroidManifest.xml
and
dependencies {
def hmsVersion = "2.8.1"
implementation "live.100ms:android-sdk:$hmsVersion" // Essential
implementation "live.100ms:video-view:$hmsVersion" // Essential
implementation "live.100ms:virtual-background:$hmsVersion" // Optional
implementation "live.100ms:hls-player-stats:$hmsVersion" // Optional
implementation "live.100ms:hls-player:$hmsVersion" // Optional
}
to the build.gradle
Describe the bug Hi, I'm currently using
@100mslive/react-sdk
in my next js app and everything is working great on desktop and mobile browsers, but i'm now trying to create a mobile app using https://capacitorjs.com/. I've got everything working in the mobile app on both iOS and Android except for the 100ms integration.When I start live streaming, I am being prompted for camera/video permissions, which I'm granting, but in the mobile app I only see this grey screen with a play button image:
For Android, these are the permissions and features I'm setting in my
AndroidManifest.xml
file:Also, if i use the developer console i see this error, even though i have granted permission:
I realize you have Android and iOS SDKs of 100ms, but as a non-mobile developer, I'm not entirely sure how I would instead use those SDKs on mobile and whether or not they will work with the existing
@100mslive/react-sdk
library I'm using on the client.Any information would be greatly appreciated, thanks! 🙏🏼
To Reproduce Steps to reproduce the behavior:
@100mslive/react-sdk
in a react or next js appcapacitor
to generate a mobile appExpected behavior The video stream should start properly and use the mobile device's camera
Screenshots
Smartphone (please complete the following information):
Additional context I'm not sure if this is the correct repo to create this issue in, so please let me know if there is a better place to put it