Is there a way to set rotation angles in VrVideoView from Google VR SDK?

679 Views Asked by At

Having looked through all the documentation, I found a method that allows me to get the angle of view VrWidgetView docs

getHeadRotation(float[] yawAndPitch)

I need then to save it and apply at the next launch of video. Any way that it can be set programatically? Thanks in advance.

Update: Actually that method returns void. And I can't even see any difference when using it with different yaw and pitch values. So I need to know how to both get and set the rotation values.

Update 2: it is hilarious but only now I found out that the values are actually written to parameter instead of returning them. So I can get them, but don't see how I can apply them.

2

There are 2 best solutions below

0
On

Not sure this can be considered a full answer, in case I can move it to a comment.

According to this Google VR issue such component will not be extended to give this type of complex features.

Google official suggestion is to look at the Video360 Sample as a starting point, and get your hand dirty.

1
On

I think setting the head rotation in VR is a big no. It is very unnatural, it can cause nausea and provides a very bad experience. If you need to set a starting rotation, you should probably go with rotating the world.