Agora-RTC-React icon indicating copy to clipboard operation
Agora-RTC-React copied to clipboard

fix: add type of createScreenVideoTrack enable and disable

Open wimpykid719 opened this issue 3 years ago • 0 comments

Return wrong type when I execute the following code. createScreenVideoTrack({ encoderConfig: '480p_1' }, 'disable')()

I just want to return only ILocalVideoTrack but this code of type tracks is ILocalVideoTrack | [ILocalVideoTrack, ILocalAudioTrack] I think that's wrong because I seted withAudio: disable so never return ILocalAudioTrack so I added two type of type for enable and disable.

This is my first pull request to oss so might be something mistake or exist any other solution then please let me know.

wimpykid719 avatar Aug 16 '22 00:08 wimpykid719