Stream video from phone camera using ionic framework

浪子不回头ぞ 提交于 2020-01-01 19:42:14

问题


I am trying to build a mobile phone app using Ionic Framework to live stream video captured through phone camera. This is very similar to https://www.periscope.tv/

I will capture this stream on my server, transcode and then distribute it again. I looked into the camera plugin for cordova https://github.com/apache/cordova-plugin-camera. I am not sure if it is possible to live stream from camera using ionic framework. If not, what are my other options except for going native.


回答1:


Hi you can use ionic framework to embed video streaming for mobile app and the reference for the link is Nic raboy video in Ionic and the plugin for the project is camera, you can edit this plugin documents based upon your requirements in delaying the app to show and inject $http service in your controller to send the data to server




回答2:


Take a look for this tutorial: https://www.youtube.com/watch?v=U2LOpmCpK-g

This is a quick demo of setting up and running the RTCOMM Mobile Sample app. This sample uses the Ionic framework and angular-rtcomm library to build a Hybrid Mobile application.

I followed this tutorial and works! I recomend you to try first running from an iPhone (iOS 9.3 in my case) and make a call to a browser (Firefox 45.0.2), works perfectly. I also tried with Android, but has some mistakes.



来源:https://stackoverflow.com/questions/30858180/stream-video-from-phone-camera-using-ionic-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!