AgoraIO / Basic-Video-Broadcasting

Sample app to join/leave a channel, set the role as a host/audience, mute/unmute, switch between front/rear cameras, and set the video parameters.
MIT License
269 stars 287 forks source link

Mismatch uid from web to android #111

Open amitprj51 opened 3 years ago

amitprj51 commented 3 years ago

Sometimes getting different uid in android after screen sharing from web, in web getting positive number while in android getting negative number.

plutoless commented 3 years ago

@amitprj51 it's in fact a positive number, because java does not have unsigned int32 so if you print it it will be negative. but it's indeed positive when it is transferred from C++ layer

amitprj51 commented 3 years ago

@amitprj51 it's in fact a positive number, because java does not have unsigned int32 so if you print it it will be negative. but it's indeed positive when it is transferred from C++ layer

@plutoless is there any way to get exact positive number from that

plutoless commented 3 years ago

why do you want it to be positive? for printing? or for equation?