google-chrome-app

Render camera preview in Chrome using Native Client SDK

允我心安 提交于 2019-12-12 04:57:33
问题 I'm trying to write ppapi plugin for Chrome which will use webcam (show preview and write file). I have installed NaCl sdk with pepper_35 . There available examples in /examples/api/ folder: media_stream_audio and media_stream_video . The audio example works fine - requests access to microphone and shows some kind of preview. The "media_stream_video" example must show web-camera video preview, but when I load example on the local web server (with make serve command), there appears red rect,

Openssl native client port gives error on building

可紊 提交于 2019-12-12 04:56:16
问题 I am working on a simple chrome NaCl extension where I want to use the openssl library for encryption of data. I checked out the pepper_40 branch of naclports as described on the wiki page and tried to build the port for openssl but it is encountered with the following error. kunal@Baweja:~/Downloads/naclports/src$ ./make_all.sh openssl + set -e + TARGETS=openssl + TARGETS=openssl + BUILD_FLAGS=--ignore-disabled + export TOOLCHAIN + export NACL_ARCH + export BUILD_FLAGS + NACL_ARCH=x86_64 +

What is partition attribute for webview tag in Chrome App API?

穿精又带淫゛_ 提交于 2019-12-12 04:43:20
问题 I'm developing a Google Chrome packaged app right now. I'm going to use webview tag to embed webpages for this app that I'm working on. And I was reading this document below that describe webview tag. https://developer.chrome.com/apps/tags/webview But, I didn't quite understand what this is for. Could anyone please explain what partition attribute is for? Thanks! <webview id="foo" src="http://www.google.com/" style="width:640px; height:480px" partition="persist:googlepluswidgets"></webview>

show orange Windows taskbar icon orange when a Chrome Packaged app gets a notification

我们两清 提交于 2019-12-12 03:58:42
问题 I am working on a Chrome Packaged App that sends notifications (which are now all hooked up). However, when the user is not in the app -- the app is in the background with other windows on top of it -- the notification pops up for a bit and disappears. I would like to change the taskbar icon to orange, the same that the Hangouts packaged app does, so that the user knows there is a notification to view at a later time. I looked all though the notifications documentation and could not find any

WebRTC and Google Chrome App - microphone volume adjustment

安稳与你 提交于 2019-12-12 03:32:21
问题 I'm trying to adjust microphone volume in Chrome App. Is is possible to do it? I'm using webrtc. 回答1: It's possible to use WebAudio and a gain filter to adjust the volume to set the volume of an audio/video tag (on the receiving end) Here is some sample code for the first option var audioContext = new AudioContext(); var sourceStream = audioContext.createMediaStreamSource(yourStream); var gain = audioContext.createGain(); sourceStream.connect(gain); gain.value = 0.9; gain.connect(audioContext

Chrome app: sandbox resource address unreachable

狂风中的少年 提交于 2019-12-12 03:25:22
问题 I am trying to set a webview's source using a local file. Manifest: "webview": { "partitions": [{ "name": "static", "accessible_resources": [ "sandbox/sandbox.html", "sandbox/sandbox.js", "sandbox/sandbox.css", ] }] }, Set Webview's source var webviewSrc = chrome.runtime.getURL('sandbox/sandbox.html'); //console.log prints chrome-extension://MY_CHROME_APP_ID/sandbox/sandbox.html webviewEl = <webview id="webview" ref="Webview" src={webviewSrc} partition="static"></webview> Error: <webview>:

Read Folder Contents in Chrome Application

房东的猫 提交于 2019-12-12 03:23:42
问题 I have an application which outputs text files periodically with data in it. The text files are initiated from within the application and a datetime/context sensitive name -- though always output to the same folder. I would like to write a chrome application that can watch the folder these files are output to, read them, parse them, and then display them in a friendly manner. However, there does not seem to be any obvious way to get the contents of a folder in a chrome app. I've read

Prevent kiosk mode webview link from opening new tab

懵懂的女人 提交于 2019-12-12 03:05:37
问题 I've created a chrome app that opens in kiosk mode, inside my chrome app i have a webview which is similar to an iframe except it works for chrome apps. On the website inside the webview there is a link that tries to open in a new tab, and fails.. At the moment it just does nothing when the button is clicked. Is there a way to make all links inside the webview not open in new tabs? Or is there any other work around that you can think of? I firebugged the link and this is what it says (i was

Chrome App, getting logged in user's email address

。_饼干妹妹 提交于 2019-12-12 02:26:38
问题 I have searched tutorials like https://developer.chrome.com/apps/app_identity, but I cannot see how I can retrieve a user's email address logged in chrome. I can only get a token for the chrome.identity api https://developer.chrome.com/apps/identity so the example code for getting the token works chrome.identity.getAuthToken({'interactive': true}, function(token) { console.log('user token: ' + token); }); but from here how do I get the email. Note: this is for an app not an extension, thus

Clearing Webview Data

会有一股神秘感。 提交于 2019-12-12 02:14:42
问题 I have a Chrome App with a webview that has a 'persistent partition', I need to have a button that will clear all the data saved in that webview's partition. I've tried the following solution based on the official google samples but I can't get it to work var clearDataType = { appcache:true, cookies: true, fileSystems: true, indexedDB: true, localStorage: true, webSQL: true, } function clearCache() { document.getElementById('webview-window').clearData( { since: 0 }, // Remove all browsing