Skip to content
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

Could Android be supported? #1

Open
guiglass opened this issue Dec 4, 2021 · 3 comments
Open

Could Android be supported? #1

guiglass opened this issue Dec 4, 2021 · 3 comments

Comments

@guiglass
Copy link

guiglass commented Dec 4, 2021

Thank you for creating this wonderful plugin!

I am trying to stream video from one Unity project running on Windows into another Unity project running on Android (on a Quest 2).

After I build the project and run it on the Quest I get an error: DllNotFoundException: uNvPipe

Is there any way that Android could be supported? Or is there any way to make decoding work on Android or a software decoder available?

@hecomi
Copy link
Owner

hecomi commented Dec 4, 2021

NvPipe uses NVIDIA-GPU-specific APIs called NVENC/NVDEC, so it is not supported on Android.
One of my friends wrote a native plugin (kotlin-based) to decode this encoded h264 stream on Android, so I think it is possible in principle, but unfortunately the project is closed and not publicly available...

@guiglass
Copy link
Author

guiglass commented Dec 4, 2021

Thank you for replying! I have been trying to stream video from my PC to my Quest 2 in Unity for weeks and have not made any progress. But I do know it is possible to do because I often use a program on the Quest that can mirror my PC's desktop using .h264. I just am not very knowledgeable about working with compressed video in Unity on Android.

I'd be very grateful if there would be any way you could help or any resources you could recommend that might explain how to write a software decoder to decode the h264 stream, or HEVC if possible?

@hecomi
Copy link
Owner

hecomi commented Dec 4, 2021

I don't know much about Android either, but he used MediaCodec to do the decoding.

If you use the word "MediaCodec" as a hint and search blog posts or github repositories, you might be able to find something helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants