AgoraIO-Community / AgoraWebSDK-NG

The Next Generation of Agora Web SDK
https://agoraio-community.github.io/AgoraWebSDK-NG/
161 stars 75 forks source link

How to know that the local video/audio track is not enabled? #36

Closed albusphan closed 4 years ago

albusphan commented 4 years ago

Hi, so in our web app there an option to toggle on and off the local video.

Could you tell me how to get the current state of the local track (I need that for display placeholder/user avatar) I tried out the localTrack.isPlaying but it doesn't seem work.

Thank you

disoul commented 4 years ago

you can use this private property:LocalTrack._enabled. We will make this property public in the next version.

albusphan commented 4 years ago

Thank you for quick support @disoul