Skip to content

Simple react-native application which tests JavaScript getUserMedia access from inside a web app viewed from a WebView

License

Notifications You must be signed in to change notification settings

marcusbelcher/rn-getUserMedia-test

Repository files navigation

README

This repo is a simple react-native example for anyone to:

  • View Web based AR experiences inside a WebView
  • Test JavaScript WebRTC / Camera access via getUserMedia inside a WebView
  • Implement WebGL to native effects outside of a WebView e.g. fancy camera filters
  • Implement Camera to native access/effects outside of a WebView e.g. take a photo to upload
  • Implement Videos to native outside of a WebView e.g. Video Backgrounds for login

Keypoints

The Application - as default - views another test application I have hosted on GitHub pages (https://github.com/marcusbelcher/wasm-asm-camera-webgl-test) for WebView tests.

Build

  • Install Node.JS, NPM, and Yarn
  • Install React Native and follow the 'Building Projects with Native Code' for Android instructions (https://facebook.github.io/react-native/docs/getting-started.html)
  • In a terminal go to the directory where you checked this repo out, Yarn install
  • Plugin an android phone
  • In the terminal enter react-native start --reset-cache
  • In another terminal enter react-native run-android

3rd Parties

  • react
  • react-native
  • react-native-camera
  • react-native-video
  • react-native-webgl
  • 'org.webrtc:google-webrtc:1.0.+'

Problems encountered

About

Simple react-native application which tests JavaScript getUserMedia access from inside a web app viewed from a WebView

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published