Skip to content

This is an example of using Agora's Video SDK with WebXR (Aframe & AR.js)

License

Notifications You must be signed in to change notification settings

digitallysavvy/AgoraWebXR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agora WebXR

This is an example of using Agora's Video SDK with WebXR. In this demo you can broadcast yourself from a WebVR environment using Agora Web SDK with AFrame, or you can watch a live broadcaster in WebAR using Agora Web SDK with AR.js and AFrame. This project also implements the Agora RTM SDK for the data messaging.

Full tutorial: Build a WebAR Live Video Streaming Web-App

Quick Start

(WebVR) Broadcaster

  1. Open js/webvr-broadcast-client.js and add your Agora AppID on line 2, var agoraAppId = '';
  2. Depoly to: localhost - or use a plugin/app (Live Server/Xampp) with a tunnel out (ngrok); or remote server
  3. Open your desktop browser and view the broadcaster.html page. (Broadcaster)

(AR) Audience

  1. Open js/webar-audience-client.js and add your Agora AppID on line 5, var agoraAppId = '';
  2. Open your mobile browser and view the index.html page (Audience)
  3. Once the camera feed is visible, point the device at the marker to view the .

Notes

The Channel name is customizable within js/webvr-broadcast-client.js and js/webar-audience-client.js, but note that this values must match for the two users to be in the same channel. To run this demo it is recommended to use a desktop or mobile device for either Broadcaster or Audience. If using desktop for audience, you may want to adjust the rotation of the model, as it it currently set for mobile viewing. If you are using an iPhone, make sure to use Safari for both the Broadcaster and Audience

Traditional Broadcaster

To test the Audience with a traditional web broadcast ui:

  1. Visit https://digitallysavvy.github.io/group-video-chat in your Desktop browser
  2. Input your Agora AppID
  3. Input the channel name WebAR

Experimental

I am still working on the Image Tracking integration. Currently there is an issue with dynamically loading content when using Image markers. For more details see issue: AR-js-org/AR.js#91

About

This is an example of using Agora's Video SDK with WebXR (Aframe & AR.js)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published