julioz / AudioCaptureSample

Sample project to test the AudioCapture API introduced in Android 10 (Q)
58 stars 20 forks source link

audio snippets produce only silence(media projection does not record any audio) #1

Closed Engbilal closed 4 years ago

Engbilal commented 4 years ago

I am trying to record youtube audio playback. When I play the .pcm file, I cannot hear anything. I am playing the recordings on a pcm player and my audio encoding is the same as in the java code.My android studio version is 3.5.0 and I am running code for android Q.

julioz commented 4 years ago

It's very likely Youtube prevents third parties from being able to record their audio. This repository aims to be a showcase on how to implement that functionality and has nothing to do with YouTube or any other individual apps. If you need support on an integration with YouTube, please reach out to Google support.