firefox

how to enable h264 in peerconnection?

情到浓时终转凉″ 提交于 2020-05-27 03:58:49
问题 many media says firefox support h264 in webrtc, but I can't find any information. How to enable h264 in webrtc? This is my mediaConstraints var mediaConstraints = { video: { mandatory: { maxWidth: 640, maxHeight: 480 } }, audio: true }; 回答1: It would seem that H264 is not supported by default yet. You will have to add the codec line manually into the SDP before setting it as local and sending the offer. It does look like they are hard at work to get it out soon. You can see this with the work

How to bring selenium browser to the front?

风格不统一 提交于 2020-05-25 20:04:08
问题 if the browser window is in bg, then this line doesn't work. from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By # available since 2.4.0 from selenium.webdriver.support.ui import WebDriverWait # available since 2.26.0 from selenium.webdriver.support import expected_conditions as EC browser = webdriver.Firefox() browser.get(someWebPage) element = WebDriverWait(browser, 10).until( EC.element_to_be_clickable((By.XPATH, '/

Detect if page is load from back button

半世苍凉 提交于 2020-05-25 03:28:30
问题 Is there any way to detect if current page came from back button? I want to load data from cookie only if current page came from back button. 回答1: When a user goes back a page, any visible form data is preserved, while any JavaScript variables are reset. I say 'visible' form data, as hidden fields seem not to be preserved, but invisible inputs are. You can use this to your advantage in order to detect whether the page was an initial load, or had already been loaded previously such as from a

Why does Firefox ignore cache headers and revalidate on refresh?

爱⌒轻易说出口 提交于 2020-05-17 06:55:07
问题 I have some image resources that are immutable and can be cached forever. Chrome seems to respect my response headers, and does not re-validate the resources: Here's an example of one of these resources in Chrome. As you can see, I include cache-control: public, max-age , expires , etag and last-modified and the resource is served from "memory cache": Firefox, however, does not respect these headers and re-validates the resources on every load! My server is hit with a request for each profile

Web Audio Api, updating looping buffer data in real time, impossible in firebox?

孤街醉人 提交于 2020-05-17 06:12:07
问题 I am running into an issue when trying to change the underlying buffer data while a looping buffer is being played back. bufferData = audioContext.bufferSourceNode.buffer.getChannelData(0); bufferData[100] = newValue; This kind of behavior seems to work fine in most browsers—I've tested in Chrome, Safari, Opera, Edge, all working fine—but this doesn't seem to be possible in Firefox. This seems like a bug. I read in this StackOverflow question from 2015 that this way of updating a buffer

Strange color-transition behavior in chrome

安稳与你 提交于 2020-05-15 09:30:17
问题 I'm currently working on a multi-themed application and somehow the transition of the css color -attribute does not work as expected. Instead of applying the transition to each element at once, in chrome it's delayed somehow based on the depth of the element. I've tested the script in 84.0.4124.1 (Official Build) canary (64-bit) (cohort: Clang-64) 81.0.4044.122 (Official Build) (64-bit) (cohort: Stable) const createSpanWithDepth = depth => { let wrapper = document.createElement('div'); const

css difference between firefox/Mac & firefox/Windows

本小妞迷上赌 提交于 2020-05-15 06:53:25
问题 I'm working on a template with a designer and we see different things. In my browser on mac the input field are next to the labels but for the designer in his browser the input fields are under the labels. I use eric meyer's css reset so everything should be correct. Here's a screenshot to illustrate what I mean (left is what it should be and on the right what it shouldn't be) Does anyone know how this could be fixed? 回答1: If field sizes are given in em s, then change them to px . em is

Ending WebRTC video call between two peers

眉间皱痕 提交于 2020-05-15 06:16:25
问题 I've set up a video chat between two peers using WebRTC . I would like to allow a peer to end the chat and for the other peer to know that the chat was ended. Once the chat ends, some code needs to be executed for both peers. The PeerConnection object has a removeStream() method which should trigger the onremovestream() listener. This would be perfect for my use case, however, before onremovestream() is called there needs to be a re-negotiation (offer/answer) between the peers. For my case

Unable to suppress a firefox pop-up for a file download

 ̄綄美尐妖づ 提交于 2020-05-15 06:05:29
问题 Firefox - 51.0.1 Selenium - 3.0.5 Ubuntu - 16.04 (64bit) Here is what my code looks like: profile = Selenium::WebDriver::Firefox::Profile.new profile['browser.download.dir'] = "/tmp/webdriver-downloads" profile['browser.download.folderList'] = 2 profile['browser.helperApps.neverAsk.saveToDisk'] = "application/pdf" profile['pdfjs.disabled'] = true driver = Selenium::WebDriver.for :firefox, :profile => profile driver.get "https://s3.amazonaws.com/shopsocially-misc/vfs/vfs_test_sample.csv"

SVG banding in chrome

我与影子孤独终老i 提交于 2020-05-14 18:33:10
问题 I am using a svg file to produce a smooth gradient, when I noticed some serious banding issues in Google Chrome (20). Even stranger when I moved the chrome onto my cinema display the banding noticeably reduced, which makes this even weirder. Below is a single screen grab (no photoshop at all) taken when the website spanning my mbp's native screen (left) and the cinema display (right). As you can see the banding is much more severe on the left. Stranger still there is near zero banding in