bugGnash - The GNU Flash player - Bugs: bug #36894, Midomi sound recorder fails in...

 
 

bug #36894: Midomi sound recorder fails in Gnash

Submitter:  None
Submitted:  Fri 20 Jul 2012 08:07:39 AM UTC
Votes: 100
 
Category:  RTMP and AMF Severity:  3 - Normal
Release:  None Status:  Confirmed
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 20 Jul 2012 08:42:14 AM UTC, 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)

Sandro Santilli <strk>
Group Member
Fri 20 Jul 2012 08:36:11 AM UTC, 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.

Sandro Santilli <strk>
Group Member
Fri 20 Jul 2012 08:34:26 AM UTC, comment #1: 

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/

Sandro Santilli <strk>
Group Member
Fri 20 Jul 2012 08:07:39 AM UTC, original submission:  

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]

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #26228:  gnash-midomi.sh added by strk (671B - text/x-sh)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by shadowmax (Voted in favor of this item)
  • -email is unavailable- added by stuartlangridge
  • -email is unavailable- added by strk (Posted a comment)
  •  

    There are 100 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-08-10 shadowmax Carbon-Copy- Added shadowmax
    2012-07-20 stuartlangridge Carbon-Copy- Added stuartlangridge
    2012-07-20 strk Attached File- Added gnash-midomi.sh, #26228
        CategoryActionScript RTMP and AMF
        StatusNone Confirmed
    2012-07-20 strk CategoryNone ActionScript

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code