bug-gnash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnash] Using Gnash to listen to a stream.


From: strk
Subject: Re: [Bug-gnash] Using Gnash to listen to a stream.
Date: Wed, 3 Nov 2010 08:02:00 +0100

On Wed, Nov 03, 2010 at 02:52:16AM -0400, Dave Mielke wrote:
> Is there a way to play a Flash stream? The man page says that the syntax is:
> 
>    gnash [option]... [URL]
> 
> When I provide a URL, I get:
> 
>    gnash -r 2 'http://v4.player.abacast.com/player/player.php?pid=1234'
>    could not load movie 
> 'http://v4.player.abacast.com/player/player.php?pid=1234'
>    error: Could not load movie
> 
> Does this mean that the URL itself isn't being recognized or that the content 
> at that URL isn't being recognized?

The content is an HTML page, not an SWF.
You have to read the content of the HTML to figure out the SWF
url:

   <embed src="swf/AbacastPlayer_20101029.swf" quality="high" bgcolor="#869ca7"
     width="640" height="360" name="AbacastPlayer" align="middle"
     play="true"
     loop="false"
     allowScriptAccess="sameDomain"
     type="application/x-shockwave-flash"
     pluginspage="http://www.adobe.com/go/getflashplayer";>
   </embed>

http://v4.player.abacast.com/player/swf/AbacastPlayer_20101029.swf

Still, that url alone is not enough, but seems to need other 
tweaking. This could be variables sent trough URL or trough
JavaScript or cookies sent by containing page.

Your best bet is lettin the gnash plugin create a "launcher"
for you. This is accomplished by exporting GNASH_OPTIONS=writelauncher
and going to the URL with your browser once.
Then look in /tmp for files named gnash-debug-#.sh, where # is a
sequential number. It should be a launcher for the standalone.

Of course if the application doesn't work from within the plugin
there's no hope it'll work standalone (I haven't tested that).

> station has just switched to Flash from MP3 and I'm hoping that
> gnash will enable me to listen to it again.

Most of the times web publishers switch to Flash with the _intention_
of not letting you listen it. Sad, but true :( 

--strk; 

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]