opentok / opentok-react-native

OpenTok React Native - a library for OpenTok iOS and Android SDKs
https://tokbox.com/
MIT License
210 stars 155 forks source link

Android Video stream stops #641

Closed AndreasKarlzzon closed 2 months ago

AndreasKarlzzon commented 1 year ago

Bug Report

This is only happening on Android

Current behavior

(Summarize the bug encountered concisely)

Taking the app from active to the background and then from background to active makes the video stream go black

Steps to reproduce

(How one can reproduce the issue - this is very important)

Taking the app from active to the background and then from background to active

Example Project

(If possible, please create an example project here on GitHub.com that exhibits the problematic behavior, and link to it here in the bug report)

What is the current bug behavior?

(What actually happens)

The stream becomes black

What is the expected correct behavior?

(What you should see instead)

The streams pause when it goes in the background and resumes when it goes the app goes to the foreground

Relevant logs and/or screenshots

(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)

AlanSl commented 1 year ago

I think this is related to https://github.com/opentok/opentok-react-native/issues/628 - I had the exact same issue on version 0.21.1 (pulling in com.opentok.android:opentok-android-sdk 2.23.1), while both issues went away after downgrading to 0.20.4 (pulling in com.opentok.android:opentok-android-sdk 2.21.5).

For me the issues were:

Both have a lot of output like this in Android Studio logcat:

2023-02-08 01:36:43.179 22250-22293 BufferQueueProducer     com.my.app               E  [SurfaceTexture-42-22250-0](id:56ea00000004,api:4,p:711,c:22250) queueBuffer: BufferQueue has been abandoned
pietgk commented 12 months ago

is this still an issue?

kundanthe commented 5 months ago

Hi @pietgk

I am getting the same issue on the given below version.

Version 2.27.1, 0.19.0

It's only happening on Android.

beHaze commented 3 months ago

Hi @kundanthe, please reach out to our Support team (https://api.support.vonage.com/hc/en-us) for further assistance.