iPad上的HTML5视频来自iPad相机(HTML5 video on iPad live from iPad camera)
有没有办法在iPad5网络应用程序中从iPad的相机实时显示视频? 谢谢
is there a way to display video live from iPad's camera in HTML5 web app? Thanks
原文:https://stackoverflow.com/questions/10869066
更新时间:2020-06-04 08:06
最满意答案
不会。最终您可以使用getUserMedia / Stream API执行此操作,但iOS Safari目前不支持此功能。
No. Eventually you will be able to do this using the getUserMedia / Stream API but this is not currently supported on iOS Safari.
相关问答
对, 我和这个没有任何关系,并向苹果提出了一个错误。 几周后,他们回到我说,很简单,我应该添加“webkit -playinline”到HTML上的视频标签,以及在UIWebView中添加“allowedInlineMediaPlayback”属性。 所以最后,这就是它的样子: HTML
OBJ-C webview.allowsInlineMediaPlayback =
...
这里 DEMO var vids = {
vid1:"http://www.youtube.com/embed/87O_YA4rLyk",
vid2:"http://www.youtube.com/embed/nQ2TsPhsWTA"
}
$(function(e) {
$(".video-section ul li").click(function(e) {
$(this).hide();
$(this).siblings().show();
...
由于某些原因,除非您设置controls =“true”标志,否则视频无法在iPad上播放。 For some reason videos would not play on iPad unless you set the controls="true" flag.
您是否尝试过重命名视频以进行ogg扩展? I broke down and converted the files to M4V and it's working fine.
您好,您应该知道相机API是新的,并非适用于所有浏览器。 在这里,您可以看到,如果它可用于特定的浏览器。 您还会看到Safari不支持它。 只有少数支持它:GC,FF,Opera,Android和Android浏览器的GC。 支持相机 Hello you should know that the camera API is new and not available for all browsers. Here you can see, if it's available for the spec
...
这可能与我遇到的问题相同。 将controls属性添加到视频标记时,视频标记将捕获所有事件。尝试删除controls属性... This may be the same problem I had. The video tag will capture all the events when the controls attribute is added to the video tag.. Try removing the controls attribute...
请参阅我的问题,根据HTML 5在移动游猎。 似乎无法控制它,因为视频渲染通过浏览器委托给硬件,并显示在“上方”,因此控制它的css属性不会影响任何东西。 我的研究在一段时间之前,但不要以为从那以后发生了一些变化。 Please refer to my question according HTML 5 on mobile safari. Seems that it's impossible to control it, as video rendering is delegated to har
...
使用绝对路径而不是相对路径尝试相同的代码:
src="http://cdn.kaltura.org/apis/html5lib/kplayer-examples/media/bbb_trailer_iphone.m4v"
poster="http://cdn.kaltura.org/apis/html5lib/kplayer-examples/media/bbb480.jpg"
durationHint="
...
坏消息抱歉...迄今为止webkitEnterFullscreen不支持iPad。 好消息是规格已在这里草稿: http : //dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html 我们需要等一会儿才会发生...... So after painstakingly tedious debugging i discovered the cause of my problem. I went through all my css rules tha
...
不会。最终您可以使用getUserMedia / Stream API执行此操作,但iOS Safari目前不支持此功能。 No. Eventually you will be able to do this using the getUserMedia / Stream API but this is not currently supported on iOS Safari.