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

Add getSphericalProperties function for 360 videos #86

Merged
merged 3 commits into from Jan 11, 2022

Conversation

zymotik
Copy link
Contributor

@zymotik zymotik commented Jan 11, 2022

This function returns an object. When a 360 video is loaded, the object has values like so:

{
  "fov": 100.00004285756798
  "pitch": 0
  "roll": 0
  "yaw": 0
}

See: https://developers.google.com/youtube/iframe_api_reference#Spherical_Video_Controls

This function returns an object. When a 360 video is loaded, the object has values like so:

```json
{
  "fov": 100.00004285756798
  "pitch": 0
  "roll": 0
  "yaw": 0
}
```

See: https://developers.google.com/youtube/iframe_api_reference#Spherical_Video_Controls
Copy link
Collaborator

@resistdesign resistdesign left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should probably make an entry in types.js for getSphericalProperties

@resistdesign
Copy link
Collaborator

@gajus the build failure seems unrelated to the commit but I'm not sure.

@zymotik
Copy link
Contributor Author

zymotik commented Jan 11, 2022

@gajus thank you for the rapid response! I've added a further function definition and added the typing's as suggested. Thank you.

Copy link
Collaborator

@resistdesign resistdesign left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@zymotik
Copy link
Contributor Author

zymotik commented Jan 11, 2022

@resistdesign I have raised another PR that addresses the issues with the Jenkins build. See #87

If that gets approved, I'll merge into this PR. 👍

@resistdesign
Copy link
Collaborator

@zymotik ok, build fix is merged! Now you just need to update this branch and resolve the conflicts and then it should be good!!!

@resistdesign resistdesign merged commit c1a924f into gajus:master Jan 11, 2022
@resistdesign
Copy link
Collaborator

@gajus @zymotik NOTE: I reformatted the title of the merge when I merged in the changes, I'm hoping I did it the right way to trigger a semantic release.

@zymotik zymotik deleted the patch-1 branch January 11, 2022 18:14
@zymotik
Copy link
Contributor Author

zymotik commented Jan 11, 2022

@resistdesign Thank you so much for getting this PR through so quickly! 🙇‍♂️

@zymotik
Copy link
Contributor Author

zymotik commented Jan 11, 2022

@gajus Please can you help us with a release of this new version? I am not sure on how to do this.

@github-actions
Copy link

🎉 This PR is included in version 5.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

2 participants