Android TV

Hi, I developed this for Android TV, using a webcam and I get a bug when in the room after 20 seconds can not input sound
how to fix this bug?