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

Warning Code Help!!!!! #69

Closed Zeeshan90 closed 4 years ago

Zeeshan90 commented 4 years ago

Help!!!!!! i am getting this error in ios warning code: invalid view warning code: 16

plutoless commented 4 years ago

looks like the view you are setting is incorrect? which demo are you running?

NayanBhut commented 4 years ago

I am running iOS Demo. Current pod version in 3.0.0.2. I am also getting same warning. warning code: invalid view warning code: 16

As per demo when I join channel as audience I am getting this warning every time. When I join channel first time video appears and after if broadcaster mute their audio and unmute at that time I can only listen voice. No video is on screen.

Please help.

CavanSu commented 4 years ago

@NayanBhut Thank you for discovering this problem. When video stream is zero, I need reset video layout. you can see the latest commit, I fixed this problem.

warning code 16 causes by that view's width and height are 0 when it is related to AgoraRtcVideoCanvas, AgoraRtcEngineKit reports this warning code. After it is moved to AGEVideoContainer, it has normal size and renders video stream.

NayanBhut commented 4 years ago

@CavanSu Thank you for your quick response. I get the latest code and run on the device. I am seeing same issue. I am running swift code.

I am using one android and one iOS device.

Steps for produce. 1) Start channel as a broadcaster in Android. 2) Join as a audience in the same channel in iOS. 3) At first time I see the video and audio both. Stream is working well. 4) Now mute video from android. You see placeholder in iOS Which is OK. 5) Now Unmute the video from android. You can only listen audio in iOS not the video and seeing the screen which I attached here.

Thank you for your help. Screen Shot 2020-05-22 at 6 52 23 PM

plutoless commented 4 years ago

@NayanBhut just merged @CavanSu 's commit into master. pls try again

NayanBhut commented 4 years ago

@plutoless I checked the latest commit. This commit solved my issue. Thanks for your quick response and solution.