Clark (OP)
|
|
August 08, 2012, 02:04:57 PM |
|
What method are you using to do the sound, HTML5 audio, Flash/Shockwave, or something else?
Apparently Safari's HTML5 audio support was somewhat broken before but supposedly it's now working in Safari 6.
I'm added the audio in JavaScript with the HTML5 Audio API: var A = new Audio(filename); A.play(); I'm not attaching <audio> elements within the DOM, however, and this might be the reason why Safari doesn't like it. My guess is that it doesn't like the audio format.
I've got all the sounds in .ogg, .mp3, and .wav, which should cover every browser for codec compatibility.
|
|
|
|
Clark (OP)
|
|
August 08, 2012, 04:01:57 PM |
|
just wanted to say thanks for the great site!
awesome. i love the sounds.
Alright! Noticed my Period setting is persistent across full refreshes now. Thanks!
Donation address available on the website or in signature
|
|
|
|
ErebusBat
|
|
August 08, 2012, 05:33:35 PM |
|
I'm not attaching <audio> elements within the DOM, however, and this might be the reason why Safari doesn't like it.
One nice thing about attaching the audio elements is that they will pre-load. Also you I would make sure that you are re-using your objects (just setting the playback position to the beginning) which in theory should be better from a memory, speed POV. (I would actually be surprised if you of all people were not doing this already.) Also I just tested with Safari 6.0.7536.25 on OSX 10.7.4 (which is Lion) and it works fine, I do indeed get sounds. Perhaps the other users trade volume is higher than they thought?
|
|
|
|
Clark (OP)
|
|
August 08, 2012, 05:58:04 PM |
|
One nice thing about attaching the audio elements is that they will pre-load.
I do not pre-load the sounds until the user chooses to play them, or the setting to play them is loaded from the user cookie. This saves bandwidth to the server, since the browser might require .wav files, which are much larger than their compressed counterparts. So only users who want sounds load them from the server. Also you I would make sure that you are re-using your objects (just setting the playback position to the beginning) which in theory should be better from a memory, speed POV. (I would actually be surprised if you of all people were not doing this already.)
I am doing this already. I simply didn't include it in my code snippet above Also I just tested with Safari 6.0.7536.25 on OSX 10.7.4 (which is Lion) and it works fine, I do indeed get sounds. Perhaps the other users trade volume is higher than they thought?
That's good to hear.
|
|
|
|
kentrolla
|
|
August 12, 2012, 04:41:56 AM |
|
I am having trouble distinguishing the buy and sell sounds. Its obvious when i hear them back to back. But when i just hear one alone, I can never judge fully if it was a low enough tone to be a sell or not. They are too similar imo. Maybe i just have a problem. also, i'm still get disconnected a lot.
|
█████████████████████████ ████████▀▀████▀▀█▀▀██████ █████▀████▄▄▄▄██████▀████ ███▀███▄████████▄████▀███ ██▀███████████████████▀██ █████████████████████████ █████████████████████████ █████████████████████████ ██▄███████████████▀▀▄▄███ ███▄███▀████████▀███▄████ █████▄████▀▀▀▀████▄██████ ████████▄▄████▄▄█████████ █████████████████████████ | BitList | | █▀▀▀▀ █ █ █ █ █ █ █ █ █ █ █ █▄▄▄▄ | ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ . REAL-TIME DATA TRACKING CURATED BY THE COMMUNITY . ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | ▀▀▀▀█ █ █ █ █ █ █ █ █ █ █ █ ▄▄▄▄█ | | List #kycfree Websites |
|
|
|
Clark (OP)
|
|
August 14, 2012, 12:59:46 AM |
|
I am having trouble distinguishing the buy and sell sounds. Its obvious when i hear them back to back. But when i just hear one alone, I can never judge fully if it was a low enough tone to be a sell or not. They are too similar imo. Maybe i just have a problem.
I thought about this too. I will probably change it soon. also, i'm still get disconnected a lot.
I have implemented the Reconnect button up on the controls row. Use it for force disconnect / reconnect if the connection fades out. Also, it will display 'Connect' if there is a connection error. You no longer have to reload the page to refresh the connection.
|
|
|
|
toffoo
|
|
August 14, 2012, 07:31:34 AM |
|
Also I just tested with Safari 6.0.7536.25 on OSX 10.7.4 (which is Lion) and it works fine, I do indeed get sounds. Perhaps the other users trade volume is higher than they thought?
Oh man, that stinks, I really like the idea of sounds for trades, why won't it work for me? When I first read of your success with Safari 6 on Lion I at first thought it must be some quirk of Mountain Lion that it's not working for me. But I got suspicious and tried it on my wife's Mac (also with Mountain Lion/Safari 6) and I got sound there! Could anyone who knows more about Mac/Safari than I chime in with an idea why it's not working on my machine, but on others with same browser/OS? Yes, my sounds is on, volume is up, and HTML5 audio is working for me on other sites I've tried. For what it's worth, the sound also doesn't work on Safari for iOS 5 (iPad/iPhone) but I have no idea if HTML5 audio is supported there.
|
|
|
|
RedGolpe
|
|
August 15, 2012, 10:23:04 AM |
|
A minor annoyance: it looks like on the console the time is displayed as local, while on the "Time & Sales" tab is UTC.
|
|
|
|
Clark (OP)
|
|
August 15, 2012, 02:09:38 PM |
|
A minor annoyance: it looks like on the console the time is displayed as local, while on the "Time & Sales" tab is UTC.
I'm displaying the trade time as it comes down from the server, which sends time in UTC. I'm displaying events that happen with the client in local time in the terminal. Would it be better if trades were in local time or if client events were in UTC? Does either make sense? Should this be a user-selected option in the Controls? (Are you annoyed enough to donate so that it will happen faster? )
|
|
|
|
ErebusBat
|
|
August 15, 2012, 02:54:42 PM |
|
(Are you annoyed enough to donate so that it will happen faster? ) Honestly i hadn't even noticed this.
|
|
|
|
genuise
|
|
August 15, 2012, 07:56:15 PM Last edit: August 16, 2012, 07:38:29 PM by genuise |
|
Hi, just noticed this again. I already wrote you that at some point the trades appear of double volume. So now it is visible possibly why. You can see on screenshot that each trade is inserted twice Hope this will help
|
|
|
|
RedGolpe
|
|
August 15, 2012, 08:14:14 PM |
|
Would it be better if trades were in local time or if client events were in UTC? Does either make sense? Should this be a user-selected option in the Controls?
Personally, I'd prefer local time for both, but anyway I don't think it needs its own option. A minor annoyance
(Are you annoyed enough to donate so that it will happen faster? ) I'm so minorly annoyed that I already spent too much time typing for what that's worth
|
|
|
|
Clark (OP)
|
|
August 16, 2012, 03:33:38 PM |
|
Hi, just noticed this again. I already wote you that at some point the trades appear of double volume. So now it is visible possibly why. You can see on screenshot that each trade is inserted twice Hope this will help I believe that double-trade situation arises from the way that I'm reconnecting at the moment. I think you should only see that after the socket.io feed dies once and reconnects. It's actually connecting twice, so you're getting all the messages twice. This means that the order book will be very wrong very fast as well. I'm working on a fix now.
|
|
|
|
genuise
|
|
August 16, 2012, 06:20:33 PM Last edit: August 16, 2012, 08:21:13 PM by genuise |
|
We faced the same problem in bitcoin-analytics.com
It turned out that when we placed subscription to the chanel on reconnect event, this made second subscription because initial subscription was not actually unsubscribed. I am not sure even that socket.io has special method to unsubscribe delibirately.
So we solved it just ensuring subscription is made only once on initialization.
Hope this help.
|
|
|
|
Clark (OP)
|
|
August 17, 2012, 03:08:24 PM |
|
It turned out that when we placed subscription to the chanel on reconnect event, this made second subscription because initial subscription was not actually unsubscribed. I am not sure even that socket.io has special method to unsubscribe delibirately.
So we solved it just ensuring subscription is made only once on initialization.
I just launched an implementation along those lines. I hope it remains more stable for everyone going forward.
|
|
|
|
ErebusBat
|
|
August 17, 2012, 09:50:04 PM |
|
Connection errors?
|
|
|
|
toffoo
|
|
August 17, 2012, 09:55:19 PM |
|
Connection errors?
It's Standard Imperial Operating Procedure for Mt.Gox to shut off all market data feeds before, during, and after market crashes.
|
|
|
|
Clark (OP)
|
|
August 17, 2012, 09:57:30 PM |
|
It's Standard Imperial Operating Procedure for Mt.Gox to shut off all market data feeds before, during, and after market crashes.
The feed dies reliably around market turmoil. I am attempting to secure a more durable connection to the market data feed. Stay tuned.
|
|
|
|
pauljr8
Newbie
Offline
Activity: 26
Merit: 0
|
|
August 17, 2012, 10:50:15 PM |
|
It's been a great site except if there's any significant price movement, then very predictably nothing.
|
|
|
|
ErebusBat
|
|
August 18, 2012, 03:10:59 AM |
|
It's been a great site except if there's any significant price movement, then very predictably nothing.
Not Clark's fault that mtgox sucks.
|
|
|
|
|