Is it possible to detect if user is listening an audio or watching a video, doesn't matter whether local or streaming media, as long as we know user is listening or watching some sort of media?
Sub IsOtherAudioPlaying As Boolean
Dim no As NativeObject
Return no.Initialize("AVAudioSession").RunMethod("sharedInstance", Null).RunMethod("isOtherAudioPlaying", Null).AsBoolean
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.