getusermedia_Opera 12中的getUserMedia

news/2024/7/19 14:04:38 标签: javascript, js, php, python, java
getusermedia

getusermedia

Opera 12 wins - the first stable desktop browser to ship getUserMedia(). I believe they had shipped it already in a mobile version of the browser.

Opera 12获胜-第一个稳定的桌面浏览器发布getUserMedia() 。 我相信他们已经在浏览器的移动版本中发布了它。

(I'll need to fix my example from last night because Chrome Canary uses webkitGetUserMedia and also uses a stream URL to assign to video element's src)

(我需要从昨晚开始修复示例,因为Chrome Canary使用webkitGetUserMedia并还使用流URL分配给视频元素的src)

You can start playing with it right now in Opera, no need to install nightly versions and enable secret flags. Here's how:

您可以立即在Opera中开始使用它,而无需安装夜间版本并启用秘密标志。 这是如何做:

1. Install Opera 2. Load any page 3. Press Command + Alt + I (on a Mac) to bring the Dragonfly console (like Firebug) 4. Type:

1.安装Opera 2.加载任何页面3.按Command + Alt + I(在Mac上)以打开Dragonfly控制台(如Firebug)。4.键入:

document.body.innerHTML = '<video autoplay>';

and then

接着

navigator.getUserMedia(
  {video:true}, 
  function(stream){document.getElementsByTagName('video')[0].src = stream}
)

This is it, enjoy 🙂

就是这样,享受🙂

Ever so slightly disappointed that {audio: true} gives a "not supported" error

曾经有些失望,{audio:true}给出了“不支持”错误

Tell your friends about this post on Facebook and Twitter

在Facebook和Twitter上告诉您的朋友有关此帖子的信息

翻译自: https://www.phpied.com/getusermedia-in-opera-12/

getusermedia


http://www.niftyadmin.cn/n/1305992.html

相关文章

css变量_CSS变量

css变量Weeee, CSS variables just landed in WebKit, this is pretty exciting! Weeee&#xff0c;CSS变量仅位于WebKit中&#xff0c;这非常令人兴奋&#xff01; Unfortunately I couldnt see them in action in WebKit nightly (must be something Im missing), but theyre…

俄窃贼当众盗走名画_公开的;当众

俄窃贼当众盗走名画Update: WebPerfSummit 更新&#xff1a; WebPerfSummit Update 2: SydJS, Anaconda LimoMolly Malones, qCon confirmed, fix *some* Portuguese spelling 更新2&#xff1a; SydJS&#xff0c; Anaconda Limo Molly Malones&#xff0c;已确认qCon&a…

Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use

1 错误描述 Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the ot…

java.lang.ClassNotFoundException: org.apache.catalina.startup.VersionLoggerListener

1 错误描述 一月 02, 2015 3:48:30 下午 org.apache.tomcat.util.digester.Digester startElement 严重: Begin event threw exception java.lang.ClassNotFoundException: org.apache.catalina.startup.VersionLoggerListenerat java.net.URLClassLoader$1.run(URLClassLoader…

/opt/apache-tomcat-7.0.57/conf/catalina.policy(权限不够)

1 错误描述 /opt/apache-tomcat-7.0.57/conf/catalina.policy(权限不够) 2 错误原因 3 解决办法

debug po 失败_3PO#失败

debug po 失败So I was flipping through recent slides from Steve Souders and came across a reference to a nice post from Pat Meenan explaining how he setup blackhole.webpagetest.org and how you can edit your hosts file to send third party scripts to the bla…

dpkg: error: -i (--install) 和 -i (--install) 两个操作之间有矛盾

1 错误描述 youhaidongyouhaidong-ThinkPad-Edge-E545:~$ sudo dpkg -i -i WineQQ2013-20131120-Longene.deb [sudo] password for youhaidong: dpkg: error: -i (--install) 和 -i (--install) 两个操作之间有矛盾 Type dpkg --help for help about installing and deinstal…

c++ pop3_3PO

c pop3Say hello to the 3PO extension for YSlow. It checks your site for integration with popular 3rd parties, such as Facebook, Twitter widgets, Google Analytics and so on. 向YSlow的3PO扩展问好。 它检查您的网站是否与流行的第三方集成&#xff0c;例如Facebook…