AgoraIO-Extensions / Agora-Unity-Quickstart

MIT License
97 stars 93 forks source link

Screen Share not work in iOS #239

Closed Karim-Sheetos2269 closed 6 months ago

Karim-Sheetos2269 commented 6 months ago

Hi, This is video show the problem Also for your information, I tried it on an iPhone and screen sharing did not work either https://drive.google.com/file/d/1hhaRseT8Nh9xOa7ObrnXZbSpDL3Hx5u4/view Thanks

xiayangqun commented 6 months ago
  1. Can you just run this example in a real iPhone/iPad but not in your Mac computer?
  2. It look like you not follow the next action Indicate in the document

https://github.com/AgoraIO-Extensions/Agora-Unity-Quickstart/blob/main/API-Example-Unity/Assets/API-Example/Examples/Advanced/ScreenShare/ScreenShareGuide.md

Manual Actions

Taking the ShareScreen demo as example, the steps to properly share the screen on iOS should follow the steps:

  1. The order of buttons press should be: Join Channel -> Start Sharing -> Start Publish ss_step1
  2. You should see StartScreenCapture call return 0. Here you may see a white box, since ScreenRecording has not started. ss_step2
  3. Access the iOS quick control panel, long press the Screen Recording button ss_step3
  4. Select the App, in this example, we named it as "AgoraIOSScreenSharing". And press "Start Broadcast" ss_step4
  5. The "Screen Recording" title should be shown: ss_step5
  6. Switch back into the App, you should see the local view now is showing the screen. IMG_0061
Karim-Sheetos2269 commented 6 months ago

Thank you my brother Sorry for the delay, responding due to emergency circumstances Screen sharing worked finally But when I uploaded it to the app store, this error appeared. What is the solution, please? https://drive.google.com/file/d/1uNAcGzwOkj-790XHPEb7VJ0J-WdO1Y27/view?usp=sharing https://drive.google.com/file/d/1KjQyvD1Mg9vDN0jzSVv20pCZq8ruygl6/view?usp=sharing Thanks

xiayangqun commented 6 months ago

Thank you my brother Sorry for the delay, responding due to emergency circumstances Screen sharing worked finally But when I uploaded it to the app store, this error appeared. What is the solution, please? https://drive.google.com/file/d/1uNAcGzwOkj-790XHPEb7VJ0J-WdO1Y27/view?usp=sharing https://drive.google.com/file/d/1KjQyvD1Mg9vDN0jzSVv20pCZq8ruygl6/view?usp=sharing Thanks

you should only "Embed $ Sign" in your main targets like this 企业微信截图_ab067ff6-a1e8-406e-95e2-de564a4e9437

But "Do Not Embed" in other targets 企业微信截图_d3fa3b55-4893-4735-9d31-c665812c911f

Karim-Sheetos2269 commented 6 months ago

Thanks alot bro i will try it