Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

Can Reality open (local) file schema URLs?

  • 3 trả lời
  • 1 gặp vấn đề này
  • 95 lượt xem
  • Trả lời mới nhất được viết bởi Paul

more options

I have a local archive of HTML content that I can open (as "file:///" resources) and navigate in various web browsers, including Firefox on desktop Windows and desktop Ubuntu Linux, and on Android.

I have copied that archive onto an Oculus Go (at "/Internal shared storage/Download/foo" in the Oculus file system, with maximally open access permissions set.) The content is visible in e.g. the Oculus Gallery. I installed Firefox Reality 1.0 2018-09-17 because given experience in other Firefox, I was hoping I would be able to directly open and view the local content. I've tried URLs such as "file:///Internal%20shared%20storage/Download/foo" and various variations (different number of slashes, literal spaces - the latter causes a search that destroys the entered URL.) No luck.

As per subject: does Firefox Reality support this URL schema? Is there some grotty detail I am missing?

I have a local archive of HTML content that I can open (as "file:///" resources) and navigate in various web browsers, including Firefox on desktop Windows and desktop Ubuntu Linux, and on Android. I have copied that archive onto an Oculus Go (at "/Internal shared storage/Download/foo" in the Oculus file system, with maximally open access permissions set.) The content is visible in e.g. the Oculus Gallery. I installed Firefox Reality 1.0 2018-09-17 because given experience in other Firefox, I was hoping I would be able to directly open and view the local content. I've tried URLs such as "file:///Internal%20shared%20storage/Download/foo" and various variations (different number of slashes, literal spaces - the latter causes a search that destroys the entered URL.) No luck. As per subject: does Firefox Reality support this URL schema? Is there some grotty detail I am missing?

Giải pháp được chọn

We filed a bug so we can detect when a user tries to read a local file and prompt for permission. https://github.com/MozillaReality/FirefoxReality/issues/594

The workaround for now is: 1. From the Oculus home environment, go to Library. 2. Find Firefox Reality in the library and press the three vertical dots on the bottom right corner. 3. Select `Permissions` from the drop down. 4. Enable the storage permission. 5. Firefox Reality should now be able to load from the local file system.

Đọc câu trả lời này trong ngữ cảnh 👍 4

Tất cả các câu trả lời (3)

more options

Giải pháp được chọn

We filed a bug so we can detect when a user tries to read a local file and prompt for permission. https://github.com/MozillaReality/FirefoxReality/issues/594

The workaround for now is: 1. From the Oculus home environment, go to Library. 2. Find Firefox Reality in the library and press the three vertical dots on the bottom right corner. 3. Select `Permissions` from the drop down. 4. Enable the storage permission. 5. Firefox Reality should now be able to load from the local file system.

more options

Excellent! I did find I also had to use URLs beginning /sdcard - which in turn got converted to /storage/emulated/0 - rather than the /Internal shared storage root folder that I see when I mount the Oculus as a file system under Linux - but the combination of that and giving the app storage permissions does do the trick.

Thanks!

(Of course, the archive does in turn now want to use window.localStorage for some viewing settings (which seems not yet supported), and it includes some Flash content I don't suppose I can reasonably expect Reality to ever support... but the first gate is now open and I am a happy bunny.)

more options

Hello,

I am glad to hear that your problem has been resolved. If you haven't already, please select the answer that solves the problem. This will help other users with similar problems find the solution more easily.

Thank you for contacting Mozilla Support.