How to capture video from a video device on mobile using HTML Code or javascript - Stack Overflow

Ideally what i want to do is to capture and records video on my website but be iphone and mobile friend

Ideally what i want to do is to capture and records video on my website but be iphone and mobile friendly so users with mobile can save a video on their mobile and upload it into my site. I need to be able to take webcam input from a camera on any device sush as mobile show a live preview , record and play back . then upload it. I dont think any flash would help since iphone doesnt read flash. I tried few examples of html5 / but it doesnt work on iphone or mobile devices. any help would be appreciated

Ideally what i want to do is to capture and records video on my website but be iphone and mobile friendly so users with mobile can save a video on their mobile and upload it into my site. I need to be able to take webcam input from a camera on any device sush as mobile show a live preview , record and play back . then upload it. I dont think any flash would help since iphone doesnt read flash. I tried few examples of html5 http://www.html5rocks./en/tutorials/getusermedia/intro/ but it doesnt work on iphone or mobile devices. any help would be appreciated

Share Improve this question asked Feb 11, 2013 at 22:11 benji_rbenji_r 5552 gold badges17 silver badges35 bronze badges 1
  • The HTML5Rocks article mentioned the HTML Media Capture standard which you can use on mobile, see my answer @benji_r – octavn Commented Oct 29, 2015 at 13:32
Add a ment  | 

2 Answers 2

Reset to default 5

The HTML Media Capture standard is a HTML only solution that works great on all mobile browsers. For recording video use:

<input type="file" accept="video/*" capture >

Here's how the above code looks on iOS8: Image courtesy of https://blog.addpipe./the-new-video-recording-prompt-for-media-capture-in-ios9/

The only issue is that you'll get .mov videos from iOS devices and .mp4/.3gp videos from Android devices. Those .mov files won't play on Android.

HTML Media Capture is a mobile only solution, it is not implemented in desktop browsers.

with the phonegap framework you can do it

http://docs.phonegap./en/1.5.0/phonegap_media_capture_capture.md.html#Capture

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744365426a4570679.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信