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

Is there a way to pass in raw data instead of a URI? #14

Open
edhyah opened this issue Sep 15, 2023 · 4 comments
Open

Is there a way to pass in raw data instead of a URI? #14

edhyah opened this issue Sep 15, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@edhyah
Copy link

edhyah commented Sep 15, 2023

When creating a hologram, is it possible to pass in raw buffer data (such as uint8 array, base64 string) instead of a URI? Looking to dynamically create a video to play on the device.

@BryanChrisBrown
Copy link
Contributor

BryanChrisBrown commented Sep 19, 2023

Hi Edhyah,

currently Bridge can load data from either a url, or a file path. For dynamically creating a video, you could download it to the user's computer then have them play it back. Do you know what format the video would be in? We don't currently support raw buffer data.

@BryanChrisBrown
Copy link
Contributor

You can use the legacy HoloPlay Service endpoint, demonstrated here: https://codesandbox.io/s/detect-a-looking-glass-l5o9d?from-embed using the HoloPlayCore.JS library

however this only works for images and is much slower than passing a url/uri in.

@BryanChrisBrown BryanChrisBrown added the enhancement New feature or request label Sep 19, 2023
@edhyah
Copy link
Author

edhyah commented Sep 28, 2023

Thanks. What about a mediastream object? I'm trying to stream an image stream to the looking glass programmatically without using looking glass studio

@BryanChrisBrown
Copy link
Contributor

right now the legacy endpoint only supports images, you may be interesting in our webXR library which allows you to draw a canvas directly to the Looking Glass, this will allow for realtime approaches.

https://github.com/Looking-Glass/looking-glass-webxr

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

No branches or pull requests

2 participants