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 Data URL as a supported value type for gltf-model component #5629

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vincentfretin
Copy link
Contributor

Description:

Discussed in #5619, Data URL is supported for gltf-model component but not currently documented.

Changes proposed:

  • Add Data URL to the table of supported value types in the gltf-model component page.

|----------|---------------------------------------------|
| selector | Selector to an `<a-asset-item>` |
| string | `url()`-enclosed path to a glTF file |
| Data URL | data:application/octet-stream;base64,<data> |
Copy link
Contributor

Choose a reason for hiding this comment

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

The official model/gltf-binary mime type can be used as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes indeed, let's use that one in the table. The application/octet-stream is a generic mimetype for any binary files. I also added a paragraph how to create a Data URL.

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

Successfully merging this pull request may close these issues.

2 participants