Re: [b2g] Non-stock headphones with the ZTE Open

2013-10-13 Thread Jim Porter
One more question: does anyone know of a good place to buy an adapter 
for this? I gather I want a 3.5mm OMTP to CTIA adapter, but all of the 
places I've seen online that sell these look rather untrustworthy.


- Jim

On 10/09/2013 05:58 PM, Naoki Hirata wrote:

It's the phone connector that makes the difference:
http://en.wikipedia.org/wiki/Phone_connector_%28audio%29

see https://bugzilla.mozilla.org/show_bug.cgi?id=812607#c4

Regards,
Naoki

On 10/9/13 3:51 PM, Jim Porter wrote:

Does anyone know what's required to make non-stock headphones work
with the ZTE Open? The headphones that came with it (or maybe that
came with the Unagi?) work fine, but other headphones don't work at
all. Plugging them in shows the headphone icon in the utility tray,
but audio doesn't come out of the headphones. I've tested multiple
pairs and they all do this.

To make matters worse, I lost the pair of headphones that does work
with the ZTE Open, making it a lot harder for me to dogfood.

Any ideas?

- Jim
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g




___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] Third-party browsers on Firefox OS

2013-10-13 Thread Kalinni Gorzkis
Does Mozilla intend to allow third-party browsers and third-party rendering 
engines to be published on Firefox Marketplace and run on Firefox OS? Apple 
only allows WebKit-based browsers to run on iOS.
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] Problem with remote debug with firefox on desktop and firefox os on zte open phone.

2013-10-13 Thread thesilentimp
Hi,

I have ZTE Open with Firefox OS.

I have macosx laptop. (And also parallels with windows vista, 7, 8 etc. if it 
may help…)

I enable remote debuging and console in phone settings and remote debuging in 
Firefox Nightly on desktop.

Download adt-bundle-mac-x86_64-20130917 from 
http://developer.android.com/sdk/index.html
and run: 

./adb devices
List of devices attached 
roamer2 device

So device is connected
Then I run 

./adb forward tcp:6000 localfilesystem:/data/local/debugger-socket

Because this article 
https://developer.mozilla.org/en-US/docs/Tools/Remote_Debugging
Then I open Firefox and 

Tools - Web Developer - Connect…

http://f.cl.ly/items/1N3F2n441S36163q170E/Screen%20Shot%202013-10-13%20at%203.43.02%20PM.png

And nothing… Just timeout. Then I try

./adb forward tcp:6000 tcp:6000

Get this on my ZTE Open:

http://f.cl.ly/items/0n3T2q2Q2G2v090j0U3q/2013-10-13-15-55-53.png

Click Ok and get this on my desktop:

http://f.cl.ly/items/2j0O1b0y3n2e2n3Q1a0E/Screen%20Shot%202013-10-13%20at%203.50.34%20PM.png

No tabs!
What I am doing wrong?!
Help me please.

With all best regards. Anton.
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] ZTE Open-- bricked when updating OS

2013-10-13 Thread daniel . ina1
I also have a bricked ZTE Open, yes one of the early ones without the later 
fastboot update. Mine is neither accessible via fastboot nor adb anymore, only 
through the diagnostics interface. I can't get into clockworkmod recovery (it 
hangs), so it requires some sort of low level flash.

Unfortunately, ZTE refuses any support (even if you would pay for the reflash!) 
in this case and redirects all requests to the eBay seller who proposes to send 
me a new device for 80% of the price. Sorry guys, but this is absolutely 
unacceptable!

Please - if somebody knows how to do a low level flash of this phone (i have 
backups of all partitions), please provide some instructions.
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] ZTE Open-- bricked when updating OS

2013-10-13 Thread Andreas Gal
I will send an email to ZTE about this. I will let you know what they say.

Andreas

Sent from Mobile.

 On Oct 13, 2013, at 6:40, daniel.i...@googlemail.com 
 daniel.i...@googlemail.com wrote:

 I also have a bricked ZTE Open, yes one of the early ones without the later 
 fastboot update. Mine is neither accessible via fastboot nor adb anymore, 
 only through the diagnostics interface. I can't get into clockworkmod 
 recovery (it hangs), so it requires some sort of low level flash.

 Unfortunately, ZTE refuses any support (even if you would pay for the 
 reflash!) in this case and redirects all requests to the eBay seller who 
 proposes to send me a new device for 80% of the price. Sorry guys, but this 
 is absolutely unacceptable!

 Please - if somebody knows how to do a low level flash of this phone (i have 
 backups of all partitions), please provide some instructions.
 ___
 dev-b2g mailing list
 dev-b2g@lists.mozilla.org
 https://lists.mozilla.org/listinfo/dev-b2g
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Third-party browsers on Firefox OS

2013-10-13 Thread Andreas Gal
All our apps are written in HTML5. If someone writes a browser or even
rendering engine in HTML5, we would definitely not object to that.
Mozilla is all about choice.

Andreas

Sent from Mobile.

 On Oct 13, 2013, at 5:15, Kalinni Gorzkis musicdenotat...@gmail.com wrote:

 Does Mozilla intend to allow third-party browsers and third-party rendering 
 engines to be published on Firefox Marketplace and run on Firefox OS? Apple 
 only allows WebKit-based browsers to run on iOS.
 ___
 dev-b2g mailing list
 dev-b2g@lists.mozilla.org
 https://lists.mozilla.org/listinfo/dev-b2g
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] ZTE Open-- bricked when updating OS

2013-10-13 Thread daniel . ina1
Andreas was so kind to forward my issue to some other Mozilla people who now 
forwarded it to ZTE. I really hope that ZTE will find a better way to deal with 
this situation, especially if I'm not the only having this problem.

I own a couple other devices, but normally for developer devices there is a way 
to recover from a brick without the manufacturer's help (i.e. sbf_flash for 
Motorola Devices or Odin/Heimdall for Samsung). For other ZTE devices like the 
ZTE Skate III there seem to be various other tricks like putting a specially 
named image with contents on the SDcard or some external tools. I am pretty 
sure there is also something similar for the ZTE Open (which seems to be pretty 
much the same as the ZTE KIS), so it would be extremely helpful if ZTE would 
share their info with FFOS developers/enthusiasts.
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] ZTE Open 1.2 flash fails after attempting to set time

2013-10-13 Thread trevdc
I am trying to flash a 1.2 build onto my ZTE Open (US eBay version) according 
to the instructions on the Mozilla wiki, and it goes smoothly until the end 
when it fails with this error:

Attempting to set the time on the device
time 1381424366 - 1381424366.0
settimeofday failed Bad file number

I've tried this several times after reverting back to the image from ZTE's 
website but it always fails at this spot. Fastboot seems to work properly and 
the flash process gave no errors or warnings up to that point. For what it's 
worth, I am building in Ubuntu 12.04 running as a Virtualbox VM.

Any help on getting this working would be much appreciated.
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] ZTE Open-- bricked when updating OS

2013-10-13 Thread Hubert Figuière
On 13/10/13 09:36 AM, daniel.i...@googlemail.com wrote:
 I also have a bricked ZTE Open, yes one of the early ones without the later 
 fastboot update. Mine is neither accessible via fastboot nor adb anymore, 
 only through the diagnostics interface. I can't get into clockworkmod 
 recovery (it hangs), so it requires some sort of low level flash.
 
 Unfortunately, ZTE refuses any support (even if you would pay for the 
 reflash!) in this case and redirects all requests to the eBay seller who 
 proposes to send me a new device for 80% of the price. Sorry guys, but this 
 is absolutely unacceptable!
 
 Please - if somebody knows how to do a low level flash of this phone (i have 
 backups of all partitions), please provide some instructions.

You can download the update.zip image from ZTE directly.

You put it on the SD card and boot the phone. It will update.

To download

For the US phone
http://www.ztedevices.com/support/smart_phone/b5a2981a-1714-4ac7-89e1-630e93e220f8.html

For the European phone:
http://www.ztedevices.com/support/smart_phone/cba40ed6-d3ab-44c0-bdee-3a15803dc187.html

I don't have a device myself but I have been told this works from people
that has similar issues.

Hope this helps.

Hub
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] ZTE Open-- bricked when updating OS

2013-10-13 Thread daniel . ina1
Hubert: Thanks, but this works unless you haven't also bricked your recovery. 
If you look at the instructions inside the archive you can see that it needs to 
be flashed from recovery. Holding down the volume rocker will not start 
flashing blindly but just get you into recovery.

This might help for some people, but unfortunately not for me.
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] ZTE Open 1.2 flash fails after attempting to set time

2013-10-13 Thread Eduardo González
Hi, i have modified the original boot image and adapted it for zte open 
commercial devices and custom builds via B2G repository. 

Donwload  
https://mega.co.nz/#!uJ52xZJa!M_YwAEXRwifN21QmQbHgNCcEc5Ml2CKw57IBGxnvdm4

change filename to boot.img and copy into B2G_root/out/target/product/inari/

then run ./flash.sh

Edu

On Sunday, October 13, 2013 3:43:28 PM UTC-4:30, tre...@gmail.com wrote:
 I am trying to flash a 1.2 build onto my ZTE Open (US eBay version) according 
 to the instructions on the Mozilla wiki, and it goes smoothly until the end 
 when it fails with this error:
 
 
 
 Attempting to set the time on the device
 
 time 1381424366 - 1381424366.0
 
 settimeofday failed Bad file number
 
 
 
 I've tried this several times after reverting back to the image from ZTE's 
 website but it always fails at this spot. Fastboot seems to work properly and 
 the flash process gave no errors or warnings up to that point. For what it's 
 worth, I am building in Ubuntu 12.04 running as a Virtualbox VM.
 
 
 
 Any help on getting this working would be much appreciated.
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] error: Cannot fetch platform/libcore

2013-10-13 Thread daniel . ina1
Hi had the same problem, the issue is the still broken linaro git. To overcome 
it I did the following:

git clone https://github.com/mozilla-b2g/b2g-manifest.git

Edited nexus-s.xml in this repo, and replaced the linaro git by the aosp one so 
it reads:

  default revision=refs/tags/android-4.0.4_r1.2
   remote=aosp
   sync-j=4 /

Commited the changes (git commit -a) and next changed the config.sh file in the 
B2G checkout (not the manifest) in the master branch to point to my local 
Manifest instead of the Mozilla one:

GITREPO=${GITREPO:-file:///home/daniel/nexus-s/b2g-manifest}

I was able to build both master (1.3) and 1.2 after doing this change. (For 
1.2, you have to redo it in the v1.2-branch as well)

The issue is well-known since a long time and there is already a pull request 
for a patch, but I don't know why it has not landed in master yet.
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] config.sh unable to find Git object in Linaro/prebuilt

2013-10-13 Thread daniel . ina1
see here:

https://groups.google.com/forum/#!topic/mozilla.dev.b2g/UvrZ59vxrG4
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] clang error building on mac os

2013-10-13 Thread Christopher De Cairos

James,

Yes, the changes I made allowed me to successfully build B2G v1.3. There 
were a few other bumps down the road - some other spots needed updates 
for CC and CXX vars


In the end, I was able to successfully flash it onto my ZTE Open, and so 
far it's working great.


Your assessment of the Xcode 5 update sounds about right to me, gcc and 
g++ on my machine were no longer symlinked to my llvm-* binaries as they 
may have been in Xcode 4.x


If the output from the build process was correct, then I won't be able 
to build for a simulator, but I haven't tried that.


Regards,

Christopher De Cairos
Integration Engineer - Webmaker
Mozilla Foundation

On 2013-10-12 4:12 PM, James Kruth wrote:

Some updates on what appears to be going on here:

* On Xcode 4.x, /usr/bin/gcc was a symlink, likely to llvm-gcc-4.2 (which 
apparently wouldn't produce a usable emulator build - I'm not sure about inari)
* With the Xcode 5 update, the CLI tools have replaced that symlink with an 
actual binary, which is clang, as opposed to gcc.

The build obviously doesn't compile with clang, and so things are broken in 
their current state.  I'd be curious to know if Christopher's modifications 
gave him a working inari build.

Where is the appropriate place to report a bug like this?

- James


On Saturday, October 12, 2013 12:59:23 AM UTC-4, James Kruth wrote:

Actually, Keon is called out specifically:



https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisites#Requirements_for_Mac_OS_X



At this point, I'm willing to say it's not a problem with inari, as I just 
attempted to build for emulator and received the same clang errors.  There's 
definitely a problem with the build process.



- James





On Saturday, October 12, 2013 12:55:27 AM UTC-4, Caio Lima wrote:


Guys, I don't remember where, but I have seen in documentation that the
inari build is not working on Mac OS X. I guess it was in Build the
Firefox OS on MDN
Give a look on this tutorial.
On Saturday, October 12, 2013, Reuben Morais wrote:

And yes, I'm pretty sure the bootstrap script should be passing
--enable-cxx to GCC's configure script. Not entirely sure because it looks
like Clang is being picked up (and causing the errors in the OP). You can
manually fix it by doing:
   brew install
https://raw.github.com/mozilla-b2g/B2G/master/scripts/homebrew/gcc-4.6.rb--enable-cxx
-- reuben

--
Caio Lima

___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Problem with remote debug with firefox on desktop and firefox os on zte open phone.

2013-10-13 Thread Fabrice Desré
Hi Anton,

On 10/13/2013 06:36 AM, thesilent...@gmail.com wrote:
 
 No tabs!
 What I am doing wrong?!
 Help me please.

You're not doing anything wrong. You device is running 1.0 or 1.1 where
there is no support to debug apps remotely. You need at least 1.2 (and
forward adb to localfilesystem:/data/local/debugger-socket) for that to
work.

Fabrice
-- 
Fabrice Desré
b2g team
Mozilla Corporation
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] ZTE Open 1.2 flash fails after attempting to set time

2013-10-13 Thread trevdc
On Sunday, October 13, 2013 2:41:31 PM UTC-7, Eduardo González wrote:
 Hi, i have modified the original boot image and adapted it for zte open 
 commercial devices and custom builds via B2G repository. 
 
 
 
 Donwload  
 https://mega.co.nz/#!uJ52xZJa!M_YwAEXRwifN21QmQbHgNCcEc5Ml2CKw57IBGxnvdm4
 
 
 
 change filename to boot.img and copy into B2G_root/out/target/product/inari/
 
 
 
 then run ./flash.sh
 
 
 
 Edu

Thank you Edu! That solved the problem.

___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] clang error building on mac os

2013-10-13 Thread James Kruth
Christopher,

That's great news!  I'm wondering if you might be so kind as to outline the 
files you needed to change?

- James

On Sunday, October 13, 2013 6:40:09 PM UTC-4, Christopher De Cairos wrote:
 James,
 
 
 
 Yes, the changes I made allowed me to successfully build B2G v1.3. There 
 
 were a few other bumps down the road - some other spots needed updates 
 
 for CC and CXX vars
 
 
 
 In the end, I was able to successfully flash it onto my ZTE Open, and so 
 
 far it's working great.
 
 
 
 Your assessment of the Xcode 5 update sounds about right to me, gcc and 
 
 g++ on my machine were no longer symlinked to my llvm-* binaries as they 
 
 may have been in Xcode 4.x
 
 
 
 If the output from the build process was correct, then I won't be able 
 
 to build for a simulator, but I haven't tried that.
 
 
 
 Regards,
 
 
 
 Christopher De Cairos
 
 Integration Engineer - Webmaker
 
 Mozilla Foundation
 
 
 
 On 2013-10-12 4:12 PM, James Kruth wrote:
 
  Some updates on what appears to be going on here:
 
 
 
  * On Xcode 4.x, /usr/bin/gcc was a symlink, likely to llvm-gcc-4.2 (which 
  apparently wouldn't produce a usable emulator build - I'm not sure about 
  inari)
 
  * With the Xcode 5 update, the CLI tools have replaced that symlink with an 
  actual binary, which is clang, as opposed to gcc.
 
 
 
  The build obviously doesn't compile with clang, and so things are broken in 
  their current state.  I'd be curious to know if Christopher's modifications 
  gave him a working inari build.
 
 
 
  Where is the appropriate place to report a bug like this?
 
 
 
  - James
 
 
 
 
 
  On Saturday, October 12, 2013 12:59:23 AM UTC-4, James Kruth wrote:
 
  Actually, Keon is called out specifically:
 
 
 
 
 
 
 
  https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisites#Requirements_for_Mac_OS_X
 
 
 
 
 
 
 
  At this point, I'm willing to say it's not a problem with inari, as I just 
  attempted to build for emulator and received the same clang errors.  
  There's definitely a problem with the build process.
 
 
 
 
 
 
 
  - James
 
 
 
 
 
 
 
 
 
 
 
  On Saturday, October 12, 2013 12:55:27 AM UTC-4, Caio Lima wrote:
 
 
 
  Guys, I don't remember where, but I have seen in documentation that the
 
  inari build is not working on Mac OS X. I guess it was in Build the
 
  Firefox OS on MDN
 
  Give a look on this tutorial.
 
  On Saturday, October 12, 2013, Reuben Morais wrote:
 
  And yes, I'm pretty sure the bootstrap script should be passing
 
  --enable-cxx to GCC's configure script. Not entirely sure because it 
  looks
 
  like Clang is being picked up (and causing the errors in the OP). You can
 
  manually fix it by doing:
 
 brew install
 
  https://raw.github.com/mozilla-b2g/B2G/master/scripts/homebrew/gcc-4.6.rb--enable-cxx
 
  -- reuben
 
  -- 
 
  Caio Lima
 
  ___
 
  dev-b2g mailing list
 
  dev-b2g@lists.mozilla.org
 
  https://lists.mozilla.org/listinfo/dev-b2g

___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Sensor data flow for light sensor

2013-10-13 Thread mozloverinweb
Hi, Marco or someone else, do you have any idea about my question?

thanks 
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] ZTE Open-- bricked when updating OS

2013-10-13 Thread julian3079
El miércoles, 28 de agosto de 2013 13:31:21 UTC-5, Ernie Powell escribió:
 Hi,
 
 So I bought a Firefox ZTE Open about a week ago on Ebay-- when it was the
 
 thing to do.
 
 I connected it to my wifi network and saw what it could do. Liked it. After
 
 a while, I received
 
 a request to update the OS, about a 35 MB package in total. Didn't think
 
 nothing of it so I
 
 said okay and it began downloading.
 
 
 
  Flash forward to 9 hours later and it was still downloading. For some
 
 reason,
 
 I ended up turning off the phone while it was still updating. I thought,
 
 maybe
 
 it'll just abort and I can start fresh. Wrong.
 
 Now when I power on the phone, it wont go past the the boot screen.
 
 Sadly, I didn't even think to enable the USB debugging.
 
 
 
 Is there any way to get the original image back on the phone, given that it
 
 is not in USB debugging mode? I noticed a bootloader menu screen
 
 when I hold down the power and up volume button, and a FTM (FML?) screen
 
 when I hold
 
 the other direction, but havent been successful in finding a factory ZTE
 
 Open image online.
 
 
 
 Any help would be greatly appreciated.

Hi, i try to enter into recovery mode of my zte open, but for some reason i 
don´t get it, not working, i hold the start button and volume up button but the 
 cel starts with the firefox os logo and then the sitting fox but nothing 
happens, the fox still forever.

Anyone know what happens?
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] instructions for using fastboot to flash ZTE Open

2013-10-13 Thread jezra
Does anyone have instructions for using fastboot to flash the ZTE Open?

Jezra

Web: http://www.jezra.net
Status: http://status.jezra.net
Coffee: http://coffee.jezra.net 
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Custom ringtones

2013-10-13 Thread Jonas Sicking
On Mon, Sep 23, 2013 at 10:21 AM, Peter Dolanjski
pdolanj...@mozilla.com wrote:
 Hello all,

 We know how important being able to set custom ringtones is to the user. We 
 are working on wireframes/requirements to cover the scenarios around 
 downloading (or transferring over USB) ringtones that the user can set.

 Our user research has also pointed out how common it was for people to edit 
 their own song snippets to produce new ringtones.
 We may just want to encourage the ecosystem to build such an application, but 
 I wanted to get some input here on what would be involved to produce such a 
 utility.

 The basic functionality would be:
 - Utility presents user with audio files currently residing on device (or 
 possibly accessed directly from Music app via the selected audio file)
 - The user should be able to chose the start time and end time for the 
 ringtone (with a possible length limit in place)
 - Selection controls need to be precise enough to pick specific 
 starting/ending points
 - The user should be able to preview the selected portion of the track
 - Once satisfied, the user should be able to save the snippet and directly 
 set it as their ringtone
 - Displaying the waveform is probably optional, but would be nice to be able 
 to pinpoint certain parts of the song

 How difficult is this? Is there platform functionality missing to enable this?

I think the only platform pieces that are really missing is the
ability to directly set a ringtone. Especially now that we have
WebAudio landed (has it been uploaded to v1.2?) that should make some
of the above even easier I think.

What we might be missing is an mp3 encoding API. Is that part of WebAudio?

Though I suspect you can work around that by simply grabbing chunks
from the existing file, though it might be pretty painful to do so.

You can work around the ability to directly set a ringtone by saving
the edited song using DeviceStorage and then letting the user manually
go over to the settings app and set the ringtone there.

But it would definitely be better if we had a built-in app which
responded to a WebActivity specifically and which allowed directly
setting a ringtone. That both results in a better UX, and means that
the ringtone-editing-app wouldn't need to be a privileged app.

/ Jonas
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Custom ringtones

2013-10-13 Thread Fabrice Desré
On 10/13/2013 08:56 PM, Jonas Sicking wrote:

 What we might be missing is an mp3 encoding API. Is that part of WebAudio?
 
 Though I suspect you can work around that by simply grabbing chunks
 from the existing file, though it might be pretty painful to do so.

There is an emscripten based mp3 encoder at
https://github.com/akrennmair/libmp3lame-js

 But it would definitely be better if we had a built-in app which
 responded to a WebActivity specifically and which allowed directly
 setting a ringtone. That both results in a better UX, and means that
 the ringtone-editing-app wouldn't need to be a privileged app.

I think that what djf landed recently let you do that.

Fabrice
-- 
Fabrice Desré
b2g team
Mozilla Corporation
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Sensor data flow for light sensor

2013-10-13 Thread mozloverinweb
I found that there is a .idl in 
gaia/xulrunner-sdk/idl/nsIDOMDeviceLightEvent.idl

Is this the dom refered to the Sensor pdf page 5 nsIDOMDevicexxxEvent?

I assume it is not because xulrunner should all most phased out in B2G.

Further, I dont find any simple event related to devicelight in 
event_impl_gen.conf.in. 

Please let me know if this is incorrect.
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Custom ringtones

2013-10-13 Thread David Flanagan
I just landed bug 878057 which allows the use of any music file as a 
ringtone (it works on my Unagi, running aurora, but bugs have been 
reported against it on a Buri using m-c, so it is apparently not ready 
for prime time.)


It allows the settings app to pick ringtones from the Music app, and 
allows the user to share songs from the Music app to be used a 
ringtones. This share activity works because the patch defines a new 
setringtone app.  Currently, the app allows the user to listen to the 
song and has a set ringtone button.  I imagine that this app will grow 
to include the ringtone cropping functionality that Peter is asking 
for here.  (As Jonas points out, this can't be done by a 3rd party 
utility because only certified apps can write to the settings database 
to set the ringtone.)


WebAudio allows us to extract audio data from any user-specified region 
of the song, but does not (apparently) define any way to encode that 
data to a compressed format.  I have heard that the Media Recording team 
is working on a voice recorder app and that the plan is for it to 
produce ogg files, so we must have some kind of audio encoding 
functionality coming.


On the other hand, it would also be simple to just store start and end 
times in the settings database along with the ringtone and use those to 
define a media fragment url (if that works with blob:// urls).   So we 
may not actually need the audio editing feature: we can just store the 
entire song and the start time and endtime of the portion to be used as 
the ringtone.


As for the UX of the audio cropping functionality, I would suggest that 
we do not try to rely on sliders or fine tuners of any sort. I'd have a 
normal set of audio playback controls that let the user play the song.  
And in addition, I'd add a record button with a traditional red circle 
icon.  When the user gets to the point where they want their ringtone to 
start, they tap the record button.  When they get to the point where 
they want to stop, they tap the button again.


  David

On 10/13/13 8:56 PM, Jonas Sicking wrote:

On Mon, Sep 23, 2013 at 10:21 AM, Peter Dolanjski
pdolanj...@mozilla.com wrote:

Hello all,

We know how important being able to set custom ringtones is to the user. We are 
working on wireframes/requirements to cover the scenarios around downloading 
(or transferring over USB) ringtones that the user can set.

Our user research has also pointed out how common it was for people to edit 
their own song snippets to produce new ringtones.
We may just want to encourage the ecosystem to build such an application, but I 
wanted to get some input here on what would be involved to produce such a 
utility.

The basic functionality would be:
- Utility presents user with audio files currently residing on device (or 
possibly accessed directly from Music app via the selected audio file)
- The user should be able to chose the start time and end time for the ringtone 
(with a possible length limit in place)
- Selection controls need to be precise enough to pick specific starting/ending 
points
- The user should be able to preview the selected portion of the track
- Once satisfied, the user should be able to save the snippet and directly set 
it as their ringtone
- Displaying the waveform is probably optional, but would be nice to be able to 
pinpoint certain parts of the song

How difficult is this? Is there platform functionality missing to enable this?

I think the only platform pieces that are really missing is the
ability to directly set a ringtone. Especially now that we have
WebAudio landed (has it been uploaded to v1.2?) that should make some
of the above even easier I think.

What we might be missing is an mp3 encoding API. Is that part of WebAudio?

Though I suspect you can work around that by simply grabbing chunks
from the existing file, though it might be pretty painful to do so.

You can work around the ability to directly set a ringtone by saving
the edited song using DeviceStorage and then letting the user manually
go over to the settings app and set the ringtone there.

But it would definitely be better if we had a built-in app which
responded to a WebActivity specifically and which allowed directly
setting a ringtone. That both results in a better UX, and means that
the ringtone-editing-app wouldn't need to be a privileged app.

/ Jonas
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] A list of pontential improvements

2013-10-13 Thread Thinker K.F. Li
Last week, I had brought a FirefoxOS phone (unagi) as my only device on
my way of hiking along West Highland Way at Scotland.  I found some
problems that potentially improve FirefoxOS as a better Swiss Army Knife
of backpackers.

 - Stay in the last timezone before fallback of automatically timezone
   setting.
   - Some carrier does not support this feature.
   - FirefoxOS will use fallback of last manually setting, but device
 time was changed by automatically timezone features, so you get a
 weird current time.
 - HOME/END keys for browser and add-to-homescreen pages and EMail App.
   - To read a long long document, you oftenly try to jump to head or
 tail of the document.  It is really stupid to scroll the document
 repeatly to the head or tail.
 - disable app sync/refresh/update by user's decision
   - While I am in roaming, I really hate to update apps, even for every month.
 - IndexedDB accept increamental/partial generated objects
   - we store a lot of data in IDB, but it can store only full
 built objects.  It requires a lot of memory, some time, ex. email.
   - If IDB supports some kind of partial object, we don't need to keep
 all data in the memory.
 - service workers of apps can keep connection with lower memory
   requirement.
   - IM Apps are supposed to keep connection.  But, with limited memory,
   it would be killed and lost conneciton.  If they can create a worker
   to serve connections, we can kill UI for low memory while still keep
   connections.
 - no blocked for email updating.
   - Every launching, EMail App would be blocked for updating emails,
 even it is offline.  I very hate that.
 - better gallery scanning.
   - like EMail App, Gallery App take a long time to scanning images on
 the storage, and it is nearly unusable during scanning.
 - a way to hide virtual keyboard
   - Some apps or pags don't not handle keyboard focus properly, so
 keyboard app was not hidden properly.  I would like to have a
 button or a cross icon for hiding keyboard forcely.
 - shared free wifi db (online updated)
   - An evil feature
 - show only flagged emails
   - Since I had flagged an email, it should be really important, and I
 want to find it as quick as possible if I need it.
   - EMail App should provides a way to list only flagged emails.
 - batch uploading/downloading API
   - WiFi or 3G data is not always availabe, especially you are
traveling.
   - I think we need a new API to help Apps to implement batch
 uploading/downloading.  For example, a batch of XHR requests.
 - Apps can query status of batches or queues.
   - Platform implements upload/download batch queues.
 - Apps are not necessary in memory for uploading or downloading.
   - doing uploading and downloading while WiFi or 3G data is available.
 - image uploader supports batch uploading
   - use batch uploading/downloading API
 - image uploader shows only first N images
   - show images cost a lot of memory (creating thumbnail?)
   - don't show all images while the user try to upload a bunch of
 images.
 - gathering verion of XHR and WS with file object supporting and
   transcoder.
   - Apps need to load all data into memory before sending to the
 server.
   - With gathering APIs, Apps don't need to copy data into a buffer.
   - With capability of sending file objects directly, Apps don't need
 to load data into memory.  A performance and memory improvement for
 memory limited devices.
 - Fake WiFi MAC or Device ID for unlimited free WiFi hours
   - an evil feature
 - create a snapshot image or cache of a page for offline browsing
   - FirefoxOS can make a screenshot now, but I really need a snapshot
 of full pages, not only the part on the screen.
   - saving or making a cache for the page.

-- 
Sinker
--
天教懶漫帶疏狂
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Sensor data flow for light sensor

2013-10-13 Thread mozloverinweb
Thanks Marco.

For my previous post,

I found that there is a .idl in 
gaia/xulrunner-sdk/idl/nsIDOMDeviceLightEvent.idl

Is this the dom refered to the Sensor pdf page 5 nsIDOMDevicexxxEvent? 

Is this correct?
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] clang error building on mac os

2013-10-13 Thread Chris Mills
And a clear description of the problem would be good too. I'll then get it 
added to MDN in an appropriate place.

cheers!

Chris Mills
   Senior tech writer || Mozilla
developer.mozilla.org || MDN
   cmi...@mozilla.com || @chrisdavidmills



On 14 Oct 2013, at 01:02, James Kruth artlo...@gmail.com wrote:

 Christopher,
 
 That's great news!  I'm wondering if you might be so kind as to outline the 
 files you needed to change?
 
 - James
 
 On Sunday, October 13, 2013 6:40:09 PM UTC-4, Christopher De Cairos wrote:
 James,
 
 
 
 Yes, the changes I made allowed me to successfully build B2G v1.3. There 
 
 were a few other bumps down the road - some other spots needed updates 
 
 for CC and CXX vars
 
 
 
 In the end, I was able to successfully flash it onto my ZTE Open, and so 
 
 far it's working great.
 
 
 
 Your assessment of the Xcode 5 update sounds about right to me, gcc and 
 
 g++ on my machine were no longer symlinked to my llvm-* binaries as they 
 
 may have been in Xcode 4.x
 
 
 
 If the output from the build process was correct, then I won't be able 
 
 to build for a simulator, but I haven't tried that.
 
 
 
 Regards,
 
 
 
 Christopher De Cairos
 
 Integration Engineer - Webmaker
 
 Mozilla Foundation
 
 
 
 On 2013-10-12 4:12 PM, James Kruth wrote:
 
 Some updates on what appears to be going on here:
 
 
 
 * On Xcode 4.x, /usr/bin/gcc was a symlink, likely to llvm-gcc-4.2 (which 
 apparently wouldn't produce a usable emulator build - I'm not sure about 
 inari)
 
 * With the Xcode 5 update, the CLI tools have replaced that symlink with an 
 actual binary, which is clang, as opposed to gcc.
 
 
 
 The build obviously doesn't compile with clang, and so things are broken in 
 their current state.  I'd be curious to know if Christopher's modifications 
 gave him a working inari build.
 
 
 
 Where is the appropriate place to report a bug like this?
 
 
 
 - James
 
 
 
 
 
 On Saturday, October 12, 2013 12:59:23 AM UTC-4, James Kruth wrote:
 
 Actually, Keon is called out specifically:
 
 
 
 
 
 
 
 https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisites#Requirements_for_Mac_OS_X
 
 
 
 
 
 
 
 At this point, I'm willing to say it's not a problem with inari, as I just 
 attempted to build for emulator and received the same clang errors.  
 There's definitely a problem with the build process.
 
 
 
 
 
 
 
 - James
 
 
 
 
 
 
 
 
 
 
 
 On Saturday, October 12, 2013 12:55:27 AM UTC-4, Caio Lima wrote:
 
 
 
 Guys, I don't remember where, but I have seen in documentation that the
 
 inari build is not working on Mac OS X. I guess it was in Build the
 
 Firefox OS on MDN
 
 Give a look on this tutorial.
 
 On Saturday, October 12, 2013, Reuben Morais wrote:
 
 And yes, I'm pretty sure the bootstrap script should be passing
 
 --enable-cxx to GCC's configure script. Not entirely sure because it 
 looks
 
 like Clang is being picked up (and causing the errors in the OP). You can
 
 manually fix it by doing:
 
   brew install
 
 https://raw.github.com/mozilla-b2g/B2G/master/scripts/homebrew/gcc-4.6.rb--enable-cxx
 
 -- reuben
 
 -- 
 
 Caio Lima
 
 ___
 
 dev-b2g mailing list
 
 dev-b2g@lists.mozilla.org
 
 https://lists.mozilla.org/listinfo/dev-b2g
 
 ___
 dev-b2g mailing list
 dev-b2g@lists.mozilla.org
 https://lists.mozilla.org/listinfo/dev-b2g

___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g