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

Mirroring GVRMainActivity with Chromecast #1858

Open
retterdesdialogs opened this issue May 2, 2018 · 3 comments
Open

Mirroring GVRMainActivity with Chromecast #1858

retterdesdialogs opened this issue May 2, 2018 · 3 comments

Comments

@retterdesdialogs
Copy link

Our app is a Kiosk app and we would like to stream, mirroring what the user sees to a tv. I know it is possible through the oculus app, but our app is a b2b app and there is no access to the "Cast Google Chrome Button".

We achieved to make the app to act as sender app, so we can connect to the chrome cast. But then we stuck.

How to use the Cast RemoteDisplay api in a gvrf environment to stream the GVRMainActivity via chrome cast?

Any thoughts?

@liaxim liaxim added the question label May 2, 2018
@bohuang3d
Copy link

Barring from implementing the streaming yourself by capturing screenshots and send over wireless connections, I wonder if you can get the app's View
https://android--code.blogspot.com/2017/12/android-get-current-activity-root-view.html
and then pass that view to CastRemoteDisplay()

In either case, the streaming process likely will make your app slow

@liaxim
Copy link
Contributor

liaxim commented May 31, 2018

@retterdesdialogs Maybe you could consider switching to Daydream. Might be possible to use the built-in support Daydream provides.

@liaxim
Copy link
Contributor

liaxim commented Aug 8, 2018

@retterdesdialogs https://github.com/googlecast/CastRemoteDisplay-android is a good example for that. The Oculus backend adapter will have to be modified. The eye buffer texture id can be passed to the cast presentation so it can render it to a full-screen quad.

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

No branches or pull requests

3 participants