Skip to content

yanranxiaoxi/Web-VR-Panorama-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web VR Panorama API

🌎 基于 A-Frame 的 VR 全景网页视图 API 🔐

🔗 GitLab (Homepage) | 🔗 GitHub

vercel

📦️ 调用说明

本 API 标准接口为 https://webvrpanorama.api.soraharu.com/api.php,以下为参数说明:

Parameter Type Lore
url_type GET local or http
image_url GET The local filename or full URL

url_typelocal 时,程序会读取 ./images/ 目录下名为 image_url 的 JPG 图像,例如:

此时获取的图片地址为:

相当于以下文件:

url_typehttphttps 时,程序将会读取 image_url 指向的完整路径的图像,您需要确保 image_url 指向的图像可以被访问,例如:

此时获取的图片地址为:

请使用桌面浏览器打开以上 URL,图片加载可能较慢,请稍加等待

⚙️ 部署至 Vercel

  1. 克隆本仓库到 GitHub.comGitLab.com 个人仓库
  2. Vercel 新建项目到你的个人仓库
  3. 等待自动部署完成

📜 开源许可

本项目仅供个人学习研究使用,禁止用于商业及非法用途。

基于 MIT License 许可进行开源。

💕 感谢