-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Screen is flipped vertically when streaming from Android device #597
[BUG] Screen is flipped vertically when streaming from Android device #597
Comments
@burakkaraceylan |
Is that possible? As far as I know you can't compile AR core when vulkan is enabled. |
memo: WRS-166 |
@burakkaraceylan There is a workaround that customizing |
For now I am handling it like this. Can it be done better or faster? IEnumerator RecordFrame()
{
yield return new WaitForEndOfFrame();
ScreenCapture.CaptureScreenshotIntoRenderTexture(_flippedTexture);
Graphics.Blit(_flippedTexture, m_sendTexture, new Vector2(1.0f, -1.0f), new Vector2(0.0f, 1.0f));
} |
@burakkaraceylan |
@burakkaraceylan How did you apply this work around? I installed the WebRTC package following https://github.com/Unity-Technologies/com.unity.webrtc/blob/develop/Documentation~/install.md#case-of-unity-20203 |
@yinhew I cloned the git repo and installed from disk to get the latest version. But, you should still be able to edit the scripts anyway. It's an open source package and screen stream sender is just a C# script. However, what I did was I cloned the screen stream sender script and made my own version where I fiddle with it and use it in the stream list. |
Got it, thanks a lot! @burakkaraceylan |
This issue is fixed #630. |
Stream broadcasted from an Android device is shown vertically flipped on the web applicaton.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Stream should be shown exactly as it is on the android application
Screenshots
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: