Discussion:
[Gnash-commit] [bug #36894] Midomi sound recorder fails in Gnash
anonymous
2012-07-20 08:07:40 UTC
Permalink
URL:
<http://savannah.gnu.org/bugs/?36894>

Summary: Midomi sound recorder fails in Gnash
Project: Gnash - The GNU Flash player
Submitted by: None
Submitted on: Fri 20 Jul 2012 08:07:39 UTC
Category: None
Severity: 3 - Normal
Release: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any

_______________________________________________________

Details:

I've just discovered midomi, the company behind SoundHound, who make mobile
apps that can listen to a song through the mic and then send a recording of it
(or an audio fingerprint, not sure which) to their server, which will then
identify the song.
The neat thing is: on midomi.com, they have a Flash file that does the same
thing. Now, that flash file starts up quite happily in gnash (yay!); however,
when clicked on, the swf prints "connecting" and then stays there forever.

Flash file at www.midomi.com/objects/midomiSmallVoiceSearch.swf

According to -v output below, it's trying to connect to
rtmp://red.midomi.com:443/midomi/room01?search_id=(something) and it seems to
fail to connect. But that's just speculation; the problem may be elsewhere.


$ gnash -v http://www.midomi.com/objects/midomiLandingVoiceSearch.swf
533:1] 437 SECURITY: Checking security of URL
'http://www.midomi.com/objects/midomiLandingVoiceSearch.swf'
533:1] 438 SECURITY: Load from host www.midomi.com granted (default)
533:1] 1018 SECURITY: Extensions disabled
533:2] 1018 UNIMPLEMENTED: FileAttributes tag in the SWF requests that network
access is not granted to this movie (or application?) when loaded from the
filesystem. Anyway Gnash won't care; use white/black listing in your .gnashrc
instead
533:2] 1020 UNIMPLEMENTED: LanguageCode (1) in DefineFont tag
533:2] 1020 UNIMPLEMENTED: DefineFontAlignZoneTag
533:2] 1020 UNIMPLEMENTED: CSMTextSettings
533:2] 1184 UNIMPLEMENTED: DEFINESHAPE4 edge boundaries and scales
533:1] 1424 UNIMPLEMENTED: Microphone::muted is always false (always allows
access)
533:1] 4065 SECURITY: Checking security of URL
'http://www.midomi.com/objects/index.php?action=main.audio_search_capacity_check'
533:1] 4066 SECURITY: Load from host www.midomi.com granted (default)
533:1] 4432 ERROR: HTTP response 404 from URL
http://www.midomi.com/objects/index.php?action=main.audio_search_capacity_check
533:1] 4432 ERROR: curl adaptor's fillCacheNonBlocking set _error rather then
throwing an exception
533:1] 4432 UNIMPLEMENTED: Microphone::muted is always false (always allows
access)
533:1] 4435 SECURITY: Checking security of URL
'http://www.midomi.com/index.php?action=main.flash_log&state=undefined&type=release&target=record_btn&time=1342747333051'
533:1] 4435 SECURITY: Load from host www.midomi.com granted (default)
533:1] 4436 SECURITY: Loading from URL:
'http://www.midomi.com/index.php?action=main.flash_log&state=undefined&type=release&target=record_btn&time=1342747333051'
533:1] 4436 SECURITY: Checking security of URL
'rtmp://red.midomi.com:443/midomi/room01?search_id=unset_1342747333052'
533:1] 4436 SECURITY: Load from host red.midomi.com granted (default)
[swf shows "Connecting", never changes. Same SWF under Adobe Flash shows a
progress bar under the word "Connecting" and then "Connecting" disappears and
recording begins]





_______________________________________________________

Reply to this item at:

<http://savannah.gnu.org/bugs/?36894>

_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
Sandro Santilli
2012-07-20 08:34:26 UTC
Permalink
Follow-up Comment #1, bug #36894 (project gnash):

Gnash doesn't support audio input in its current incarnation.
Beside this, the logs you post seem to suggest there's also an ActionScript
issue (the 404 response...)

Also, I suspect port :443 is an RTMP server (and hostname suggests it is
red5), that part is also not implemented, see
http://linuxfund.org/projects/gnash/

_______________________________________________________

Reply to this item at:

<http://savannah.gnu.org/bugs/?36894>

_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
Sandro Santilli
2012-07-20 08:36:11 UTC
Permalink
Update of bug #36894 (project gnash):

Category: None => ActionScript

_______________________________________________________

Follow-up Comment #2:

HINT: this URL works:

http://www.midomi.com/index.php?action=main.audio_search_capacity_check

so there's also a component of relative URL resolution which isn't working.

_______________________________________________________

Reply to this item at:

<http://savannah.gnu.org/bugs/?36894>

_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
Sandro Santilli
2012-07-20 08:42:14 UTC
Permalink
Update of bug #36894 (project gnash):

Category: ActionScript => RTMP and AMF
Status: None => Confirmed

_______________________________________________________

Follow-up Comment #3:

My version of gnash works fine at resolving the URL (did you point gnash at
the SWF url directly?).

Attached is a launcher for the correct invocation.
Dunno if cookies are important.

The logs that come out of the launcher:

21452:1] 175 SECURITY: Checking security of URL
'http://www.midomi.com/objects/midomiLandingVoiceSearch.swf?33'
21452:1] 175 SECURITY: Load from host www.midomi.com granted (default)
21452:1] 841 SECURITY: Extensions disabled
21452:2] 842 UNIMPLEMENTED: FileAttributes tag in the SWF requests that
network access is not granted to this movie (or application?) when loaded from
the filesystem. Anyway Gnash won't care; use white/black listing in your
.gnashrc instead
21452:2] 843 UNIMPLEMENTED: LanguageCode (1) in DefineFont tag
21452:2] 843 UNIMPLEMENTED: DefineFontAlignZoneTag
21452:2] 843 UNIMPLEMENTED: CSMTextSettings
21452:2] 987 UNIMPLEMENTED: DEFINESHAPE4 edge boundaries and scales
21452:1] 1208 SECURITY: SharedObject path /objects is not part of the SWF path
/. Cannot access this object.
21452:1] 1209 UNIMPLEMENTED: Microphone::muted is always false (always allows
access)
21452:1] 17069 SECURITY: Checking security of URL
'http://www.midomi.com/index.php?action=main.audio_search_capacity_check'
21452:1] 17069 SECURITY: Load from host www.midomi.com granted (default)
21452:1] 17546 UNIMPLEMENTED: Microphone::muted is always false (always allows
access)
21452:1] 17548 SECURITY: Checking security of URL
'http://www.midomi.com/index.php?action=main.flash_log&state=undefined&type=release&target=record_btn&time=1342773646723'
21452:1] 17548 SECURITY: Load from host www.midomi.com granted (default)
21452:1] 17548 SECURITY: Loading from URL:
'http://www.midomi.com/index.php?action=main.flash_log&state=undefined&type=release&target=record_btn&time=1342773646723'
21452:1] 17548 SECURITY: Checking security of URL
'rtmp://red.midomi.com:443/midomi/room01?search_id=svf8il1j2s4rvho6n7njb44ih4_1342773646724'
21452:1] 17548 SECURITY: Load from host red.midomi.com granted (default)


With debugging output we also see:

21473:1] 5803 DEBUG: Connecting to
rtmp://red.midomi.com:443/midomi/room01?search_id=svf8il1j2s4rvho6n7njb44ih4_1342773680080
21473:1] 5886 DEBUG: red.midomi.com has IPV4 address of: 205.234.28.24
21473:1] 5888 DEBUG: CurlStreamFile 0x10cd120 deleted
21473:1] 6307 DEBUG: Server Uptime : 1
21473:1] 6307 DEBUG: FMS Version : 0.0.0.0
21473:1] 6394 DEBUG: HTTP response 200 from URL
http://www.midomi.com/index.php?action=main.flash_log&state=undefined&type=release&target=record_btn&time=1342773680079
21473:1] 6394 DEBUG: LoadableObject Loaded 1 bytes, reaching 1/1
21473:1] 6394 DEBUG: LoadableObject reached EOF (1/1 loaded)
21473:1] 6394 DEBUG: CurlStreamFile 0x123d640 deleted
21473:1] 6493 DEBUG: Handshake completed
21473:1] 6493 DEBUG: Initial connection complete
21473:1] 6493 DEBUG: Calling remote method connect


(file #26228)
_______________________________________________________

Additional Item Attachment:

File name: gnash-midomi.sh Size:0 KB


_______________________________________________________

Reply to this item at:

<http://savannah.gnu.org/bugs/?36894>

_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/

Loading...