Hi All,
I was just looking through the browser directory in Firefox Beta (20.0) (I can't get to the one in Nightly right now) and noticed a new icon added to Toolbar.png. It's a webRTC one and there's two individual ones in chrome\browser\skin\classic\aero\browser as well as coding for it in broswer.css.
#webrtc-status-button {
-moz-image-region: rect(0, 360px, 18px, 342px);
}
.popup-notification-icon[popupid="webRTC-sharingDevices"],
.popup-notification-icon[popupid="webRTC-shareDevices"] {
list-style-image: url(chrome://browser/skin/webRTC-shareDevice-64.png);
}
There are other instances.
I didn't know if y'all were aware of that but now there's 20 icons instead 19.
I'm assuming but wondering if it's Nightly too.
I posted another thread about not seeing the browser directory in Nightly's omni.ja.
webRTC buttons and code in Firefox Beta
- Ken Saunders
- Posts: 1008
- Joined: March 14th, 2005, 2:52 pm
- Location: Mozillaopolis
- Contact:
- Aris
- Posts: 3248
- Joined: February 27th, 2011, 10:14 am
Re: webRTC buttons and code in Firefox Beta
Nightlies now have two "omni.ja" files (whos idea was that?). The one you are looking for is in "\Firefox\browser\" sub folder.
Any idea which setting (about:config?) enables the webRTC button for toolbars?
Doesn't seem to appear on default settings.
Any idea which setting (about:config?) enables the webRTC button for toolbars?
Doesn't seem to appear on default settings.
- Ken Saunders
- Posts: 1008
- Joined: March 14th, 2005, 2:52 pm
- Location: Mozillaopolis
- Contact:
Re: webRTC buttons and code in Firefox Beta
Aris wrote:Nightlies now have two "omni.ja" files (whos idea was that?). The one you are looking for is in "\Firefox\browser\" sub folder.
Sweet, thanks!
Any idea which setting (about:config?) enables the webRTC button for toolbars?
Doesn't seem to appear on default settings.
I just looked into it briefly and I will look into it more later, but a search for webRTC in chrome\browser\content\browser pretty much reveals what we need to know.
From MDN
Currently using WebRTC for accessing the camera is supported in Chrome, Opera and Firefox Nightly 18. Enabling WebRTC in Firefox Nightly requires you to set a flag in the configuration:
Type "about:config" in the address bar and say yes that you want to make changes
Find the "media.navigator.enabled" entry and set it to true
In Firefox 19, for me at least, this is set to false, but set to true in Beta 20.
I'm wondering if the button only shows up when the feature is used? Like I said, I only looked into it briefly.
- Aris
- Posts: 3248
- Joined: February 27th, 2011, 10:14 am
Re: webRTC buttons and code in Firefox Beta
Ken Saunders wrote:...
I'm wondering if the button only shows up when the feature is used? Like I said, I only looked into it briefly.
You are right, it only shows up when its in use. I tested this on Fx 22 nightly, where the feature is already enabled by default.
Go for example to http://mozilla.github.com/webrtc-landing/data_test.html
and hit "Start". The new button shows up on default theme.
All themes will have to add new button manually.
- Ken Saunders
- Posts: 1008
- Joined: March 14th, 2005, 2:52 pm
- Location: Mozillaopolis
- Contact:
Re: webRTC buttons and code in Firefox Beta
Well done. Thanks!
I've found another demo
https://apprtc.appspot.com/?r=24303034
I got that from...
http://www.webrtc.org/demo
I've found another demo
https://apprtc.appspot.com/?r=24303034
I got that from...
http://www.webrtc.org/demo