google-chrome-app

Chrome packaged app crashes after webrtc video chat

﹥>﹥吖頭↗ 提交于 2019-12-12 02:07:27
问题 I'm using JavaScript IceLink library (http://www.frozenmountain.com/products/icelink) to implement webrtc video chat. Application crashes sometimes after video chat. Chrome logs shows the next problem: [240:1520:0819/141151:VERBOSE1:webrtcsession.cc(1016)] SetAudioPlayoutVolume: No audio channel exists. void WebRtcSession::SetAudioPlayoutVolume(uint32 ssrc, double volume) { ASSERT(signaling_thread()->IsCurrent()); ASSERT(volume >= 0 && volume <= 10); if (!voice_channel_) { LOG(LS_ERROR) <<

save and change the name of the file with chrome.filesystem

扶醉桌前 提交于 2019-12-12 01:55:39
问题 Is this possible with chrome.fileSystem to save a file on the client's disk, but by changing the file name. For example, I compress a file and I want that file is stored on the disc with my new name newFile.min.js for example. I can save the file to disk, but not to change its name. And what I would like is that everything is done in a "silent" without a window that asks for the location. Here is the function I use to save my files: function saveToEntry(entry, result) { setTitle(); var blob =

Run Google Chrome application from url

孤街浪徒 提交于 2019-12-12 01:53:22
问题 I am trying to run Google Chrome application using a url, I tried the following: chrome-extension://gfkmokjholoinfcnlolbjfaokmoegeoh/ But it didn't work, as I get: chrome-extension://invalid/ Any suggestions? 回答1: chrome-extension://pnhechapfaindjhompbnflcldabbghjo/html/nassh.html Use full path if you know. 回答2: You have to list the resources you are accessing in web_accessible_resources in your manifest. 来源: https://stackoverflow.com/questions/26956702/run-google-chrome-application-from-url

Restrict addeventlistener of chrome webrequest to the current tab or the main window of the extension

霸气de小男生 提交于 2019-12-11 23:55:04
问题 I am trying to fix some issues in an existing extension of Chrome. The extension is supposed to change the user agent of the sub frame which is a part of it. Now the problem is that when the event happens and I change the user agent of the header it is reflecting on all the tabs in browser and forcing the rest of the secured logins in those tabs to log off. I want to change the user agent of only that particular tab of the extension. Here is the code I am using in background.js var

How to navigate to different pages in a chrome app without creating a new window?

狂风中的少年 提交于 2019-12-11 22:32:12
问题 My Chrome app contains two pages A1.html and A2.html. How can i navigate from A1.html to A2.html without creating a new window? The page A1.html contains 10 div's and A2.html contains a back link to A1.html. My need is to load directly a specific div of A1.html when the back link in A2.html is pressed. 回答1: You can't navigate within a Chrome App window (Content Security Policy), although you can navigate to an external browser if you set the target attribute of the <a> element to "_blank".

Generating Chrome Packaged App .crx header with Java

天涯浪子 提交于 2019-12-11 21:09:15
问题 I"m trying to build the header in Java with no luck. (here is the spec: https://developer.chrome.com/extensions/crx) Any ideas? protected void geneateCrxHeader (OutputStream ins,byte[] zipArchive) throws NoSuchAlgorithmException, NoSuchProviderException, IOException, InvalidKeyException, SignatureException{ KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA"); SecureRandom random = SecureRandom.getInstance("SHA1PRNG", "SUN"); keyGen.initialize(1024, random); KeyPair pair = keyGen

How to ink to another .html page within Chrome extension/app?

我是研究僧i 提交于 2019-12-11 20:34:16
问题 I am building a chrome app for a client that will run in kiosk mode to display in their stores. Right now I have an index.html page that links to about 30 other pages. However, when I click on a link in the app I get an error... Can't open same-window link to "chrome-extension://leghflngpfmomcflabikghiemaajadne/poweredge"; try target="_blank". So I tried target="_blank" and that tries to open it in a new chrome window.. no good. I've been reading a little bit about using webview and

Getting the full path of a DirectoryEntry

爷,独闯天下 提交于 2019-12-11 20:12:06
问题 Does anyone know how to get the full path of a DirectoryEntry object in a Chrome Packaged App, without any tildes or other shortcuts? I am writing a Google Chrome Packaged App. My app has a button where a user can choose a directory using chrome.fileSystem API. When the directory choice comes back to my app, it is represented by a DirectoryEntry object, which is defined in the File API. The object looks like this in the console: DirectoryEntry { filesystem: DOMFileSystem fullPath: "/to_read"

Google Sheets API and Chrome Apps

风格不统一 提交于 2019-12-11 20:07:55
问题 I have an app that's pulling data from Google Sheets with background.js but I am unable to use that information in the popup.js itself. I am not too familiar with Chrome Apps, what can I do in this case? How do I get Chrome Identity or the API to pass the information to popup.js? I can't implement the API call in popup.js because I need it to work in the background. So I want to modify a sheet with the Google Sheets API and then read off it. I am basically doing this in the background.js:

Using angular $routeProvider with packaged apps

大憨熊 提交于 2019-12-11 19:44:10
问题 I'm building a Chrome Packaged App with AngularJS and it seems highly desirable to use the $routeProvider however the methods don't seem to match the URL system inside apps. So my question is can I implement $routeProvider functionality inside a Chrome packaged app and if so how? 回答1: Not sure if this is the best solution but I seemed to have solved this enigma myself. Setup the $routeProvider however you want it to be and instead of using links in the application use ng-click directives that