How to access EasyRTC Framework in Ionic


#1

I wanto to build video call mobile app using EasyRTC Framework and Ionic

In browser my ionic project work well when i combine with easyRTC

i setting in my index.html ionic project to connect with easyRTC like this

<script src="http://localhost:3000/socket.io/socket.io.js"></script>
<script type="text/javascript" src="http://localhost:3000/node/easyrtc.js"></script>
<script type="text/javascript" src="http://localhost:3000/js/videortc.js"></script>

before i build to apk, i change index.html like this
because emulator can read localhost in 10.0.2.2

    <script src="http://10.0.2.2:3000/socket.io/socket.io.js"></script>
    <script type="text/javascript" src="http://10.0.2.2:3000/node/easyrtc.js"></script>
    <script type="text/javascript" src="http://10.0.2.2:3000/js/videortc.js"></script>

and then i build ionic project

$ ionic build android

but video cannot appear

anyone can help me ?
or give me some advice for build videocall mobile app using ionic framework