Steps:
- Download Nodejs.
- Download git.
- type
npm install -g ionic cordova
in your command prompt. - type
git clone https://github.com/TeamClouders/Ionic-2-camera-preview
in your command prompt. - After cloning type
npm install
to install dependencies. - Attach your Mobile Device (Android/IOS).
- If Android first type
adb devices
to check if your device is avalible and Add Platform for yours exampleionic platform add android
ORios
- If Device is avalible type
ionic run android
it will build and install on your android device. - For IPhone build type
ionic build ios
(only works when using Mac). - open
XCODE
And deloy on your device or simmulator.
Now You can Display your camera in your own Hybrid Application.
I made simple steps to show you can type Camera Preview code in Typescript.
It will Display Camera in your HTML view.
More Tutorials are comming soon...
Good Luck...!!