google-chrome

How to use the constant resolution during webrtc video transmission?

喜欢而已 提交于 2021-02-08 01:15:28
问题 I am using janus to build my webrtc SFU server. I need the chrome browser to send the video resolution from a start to a fixed value and remain unchanged during the transfer. Where should I set it? I tried setting the degradationPreference in the js code, but it didn't work, the resolution will still change, it seems that chrome does not support this parameter. var senderList = config.pc.getSenders(); var sender = config.pc.getSenders().find(function(s) {return s.track.kind == "video"}); if

Debugging: Is it possible to see value of JS variable in real time?

百般思念 提交于 2021-02-07 20:40:05
问题 Is there any tool (preferably extension/add-on to any browser) that allows you to see all the value changes of the desired JS variable in real time? Previously I did something like this (in pure JS): var someVariable; var previousValueOfSomeVariable; var f = function() { if (previousValueOfSomeVariable != someVariable) { console.log(Date.now(), someVariable); previousValueOfSomeVariable = someVariable; } } var TO = setInterval(f, 100); It did the trick, but was, of course, inefficient (in

Debugging: Is it possible to see value of JS variable in real time?

回眸只為那壹抹淺笑 提交于 2021-02-07 20:32:42
问题 Is there any tool (preferably extension/add-on to any browser) that allows you to see all the value changes of the desired JS variable in real time? Previously I did something like this (in pure JS): var someVariable; var previousValueOfSomeVariable; var f = function() { if (previousValueOfSomeVariable != someVariable) { console.log(Date.now(), someVariable); previousValueOfSomeVariable = someVariable; } } var TO = setInterval(f, 100); It did the trick, but was, of course, inefficient (in

Why Google recommends using JPEG 2000 and JPEG XR and after Google Chrome doesn't support them?

自闭症网瘾萝莉.ら 提交于 2021-02-07 20:28:11
问题 Google recommends "Serve Images in Next-Gen Formats" and specifically mentions WebP, JPEG 2000 and JPEG XR, but then it doesn't provide support for 2 of them (JPEG 2000 and JPEG XR) in its own browser . Can someone please explain me why is this? 回答1: This is because there is support for those formats in other browsers not just Google Chrome. If all the users on the internet visited your website with Google Chrome then those formats would be insignificant to mention. Here is a free tool that

Maximum number of breakpoints in Chrome?

孤者浪人 提交于 2021-02-07 20:27:17
问题 Does anyone know what the limit is on the maximum number of breakpoints that can be set with Google Chrome's Web Inspector? Thanks. 回答1: The number of breakpoints is only limited by your hardware resources (memory for storing them and CPU for quickly handling this lot of DOM elements.) 回答2: As far as I know there is no explicit limit for the number of breakpoints. However you should expect that some algorithms are not well optimized for a large number of breakpoints, e.g. some internal

Maximum number of breakpoints in Chrome?

半腔热情 提交于 2021-02-07 20:26:52
问题 Does anyone know what the limit is on the maximum number of breakpoints that can be set with Google Chrome's Web Inspector? Thanks. 回答1: The number of breakpoints is only limited by your hardware resources (memory for storing them and CPU for quickly handling this lot of DOM elements.) 回答2: As far as I know there is no explicit limit for the number of breakpoints. However you should expect that some algorithms are not well optimized for a large number of breakpoints, e.g. some internal

onblur event doesn't fire in Chrome when clicking on disabled button element - works in IE

久未见 提交于 2021-02-07 19:41:08
问题 I have a disabled button that should become enabled when there is text in an input element. The code to enable/disable the button is in the onblur event of the input. My HTML consists of an input with id="in" , a button with attribute disabled="disabled" and a span with id="sp" . $(document).ready(function(){ var count = 0; $("#in").bind("blur",function(){ alert("blur"); if($("#in").attr("value").length > 0){ $("button")[0].disabled = false; } else { $("button")[0].disabled = true; } }); $("

chrome native messaging: how to receive > 1MB

匆匆过客 提交于 2021-02-07 18:46:17
问题 What would be a good way to work with Chrome's incoming 1MB limit for native messaging extensions? The data that we would be sending to the extension is json-serialized gpx, if that matters. When the original message is >1MB, it seems like this question really has two parts: how to partition the data on the sending end (i.e. the client) this part should be pretty trivial. Even if we need to split into separate self-contained complete gpx strings, that is pretty straightforward. how to join

How to I send selected element from devTools page to chrome sidebar page

…衆ロ難τιáo~ 提交于 2021-02-07 18:20:25
问题 I'm working on a chrome devTools extension. Basically I have a sidebar pane added to the Element panel. devtools.js chrome.devtools.panels.elements.createSidebarPane("ChromeTrast", function(sidebar) { sidebar.setPage('devTools/chromeTrastDevTools.html'); } chrometrastDevTools.html <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> </head> <body> <p id="devTool-report"></p> <script src="../resources/jquery.js"></script> <script src="../resources/mustache.js"></script> <script src="

Chrome App fails to communicate with native host on windows

孤街浪徒 提交于 2021-02-07 14:55:00
问题 I have written a chrome app and a native messaging host in Java. The combo works fine on linux. However when I try to port the combo to windows the communication can not be established. The jar where the host is contained is exactly the same as the linux variant. I am using the following script (start.bat) to start the Java host: @echo off java -jar "%~dp0theHost.jar" The json manifest is as follows: { "name": "com.service.host", "description": "Native messaging host", "path": "start.bat",