firefox-os

Memory mapped equivalent for FirefoxOS

岁酱吖の 提交于 2019-12-05 03:45:20
How would you emulate a memory mapped file in FirefoxOS, Tizen or any other mobile pure-JS solution? The use case is for a mobile browser and you need lots of data which does not fit in the RAM or you don't want to waste RAM for it yet and prefer to lazy load it. The only thing I found is IndexedDB or what can I do about it? Any better tricks or APIs? Hmmh it looks like Web SQL Database could be also a solution on Android, Tizen or iOS. But Firefox does not support it (?) Update : I'm asking because of some experiments jnv First thing first, Web SQL won't be ever standardised as explained in

getUserMedia for Firefox OS

こ雲淡風輕ζ 提交于 2019-12-04 16:52:05
It was said that getUserMedia would land on Firefox OS 1.2 . I have read the documentation and tried to look for it in the Google Groups, but I have not found anything related to it. I have developed a web app that works on Firefox Nightly (so, it works in Gecko): But when I try to use it in Firefox OS 1.4, I get a "Permission denied" error: I have tried to add the following permission to the manifest: "permissions":{ "camera":{} } But didn't solve the problem. Is there any other permission that I would need to add? getUserMedia support for the microphone landed in FxOS v1.2. getUserMedia

Can I get a live camera image inside my App in Firefox OS?

删除回忆录丶 提交于 2019-12-04 15:41:02
So I am having a look into Firefox OS right now. One thing I would like to try is to manipulate the device camera's live feed using canvas et.al. From what I can see in the blog posts (like this one ) and the code in the boilerplate app this is always done using a MozActivity , meaning that the user is leaving the application, takes a picture and passes this picture back to the application, where I could post-process it. But for live manipulation I would need to have a live camera feed inside my App, just like you would do using getUserMedia when accessing a computer's webcam. getUserMedia

How to install Firefox OS SDK on MacOS?

五迷三道 提交于 2019-12-04 11:05:48
I'd like to start developing for Firefox OS, but I'm having problem to install.. I' m following the mozilla's wikis, but now I don't know how to continue. I've downloaded XULRunner, but then what should I do? I'm trying to follow the wiki, but without finding a solution. Link: https://developer.mozilla.org/en-US/docs/Getting_started_with_XULRunner There is no SDK for Firefox OS. What exactly are you trying to achieve? Apps on Firefox OS are web apps, so you can use whatever tools you already use for web development to develop apps. If you'd like to test out your app in the context of the

button event is not working in fire fox os

放肆的年华 提交于 2019-12-02 04:01:29
function listContents(storagename) { alert("inside function"); //Clear up the list first $('#results').html(""); var files = navigator.getDeviceStorage(storagename); var cursor = files.enumerate(); cursor.onsuccess = function () { //alert("Got something"); var file = this.result; if (file != null) { var tagvalue = $("<p>" + file.name + "," + file.lastModifiedDate + "," + file.type + "," + file.size + "</p>").appendTo('#results'); console.log('tagvalue is ' + tagvalue); tagvalue.appendTo("#results"); console.log('tagvalue is upended ' + tagvalue); var r = $('<input type="button" value="upload"

Get user's phone number in Firefox OS

泄露秘密 提交于 2019-12-02 01:00:02
问题 Is there any way to fetch user’s phone number in Firefox OS? If so, any help would be appreciated. 回答1: According to Mozilla's app permissions page, there is an permission called "phonenumberservice" but there is no information about it. Anyway, the permision is listed under the "Internal (Certified) app permissions", which means that, when available, it can only be used by "system-level apps and default apps created by Mozilla/operators/OEMs". 回答2: With Firefox 2.0 you should be able to use

Get user's phone number in Firefox OS

随声附和 提交于 2019-12-01 20:34:09
Is there any way to fetch user’s phone number in Firefox OS? If so, any help would be appreciated. According to Mozilla's app permissions page , there is an permission called "phonenumberservice" but there is no information about it. Anyway, the permision is listed under the "Internal (Certified) app permissions", which means that, when available, it can only be used by "system-level apps and default apps created by Mozilla/operators/OEMs". With Firefox 2.0 you should be able to use Mobile Identity API: https://wiki.mozilla.org/WebAPI/MobileIdentity https://bugzilla.mozilla.org/show_bug.cgi?id

How to play audio in background with firefox os?

我怕爱的太早我们不能终老 提交于 2019-12-01 16:48:29
In my manifest file I've add the audio-channel-content in permissions: "permissions": { "audio-channel-content":{"description":"Use the audio channel for the music player"} } In my index.html I've got an audio tag like: <audio mozaudiochannel="content" preload="none" src="http://my-stream-url"></audio> I can play my audio stream during 2mn: The first one when the phone is unlock. After 1mn my phone auto-lock the screen and it continue playing for another minute. Does it possible to play this audio stream more than 1mn after the lock? Thanks in advance. The code and permission block you have

How to test privileged packaged apps on Firefox for Desktop?

元气小坏坏 提交于 2019-11-30 23:30:53
It is possible to distribute a packaged app via Firefox Marketplace for installation on Firefox for Desktop . Apps for Firefox OS devices I can test comfortably via about:app-manager either on a USB connected device, or with the simulator. How can I test a packaged app on Firefox for Desktop? Update I found that I can debug an app that I have installed from Marketplace by starting it with the -debug option and an optional port number: C:\Users\Felix\AppData\Roaming\thetacontrol-56cab87ea3eecf190668cfb505f92c56>"Theta Control.exe" -debug 6000 The next step is to connect to the port from Firefox

How to test privileged packaged apps on Firefox for Desktop?

本小妞迷上赌 提交于 2019-11-30 18:11:21
问题 It is possible to distribute a packaged app via Firefox Marketplace for installation on Firefox for Desktop . Apps for Firefox OS devices I can test comfortably via about:app-manager either on a USB connected device, or with the simulator. How can I test a packaged app on Firefox for Desktop? Update I found that I can debug an app that I have installed from Marketplace by starting it with the -debug option and an optional port number: C:\Users\Felix\AppData\Roaming\thetacontrol