5 replies [Last post]
Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 14 weeks 5 days ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2043
Points: 2268

OK, I hate Flash. In fact, it tainted my love for Adobe when they bought it from Macromedia. However, I do admit that it does one thing, and one thing only, well. That's stream media.

I've got a radio station site that wants to include a live broadcast so I'm using a Flash based playhead but of course that doesn't work for iPhone or iPad. I have zero experience with flash so I'm asking here if you guys know anything about including a fallback for iPhone. Any tips appreciated. I'm going to go hit google again in the meanwhile. Smile

Tags:
Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 14 weeks 5 days ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2043
Points: 2268

I should add that I know

I should add that I know about Audio for Everybody but it's backwards in this case where I want Flash to work as the first choice and then fallback if Flash is blocked like it is on iPhone.

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 14 weeks 5 days ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2043
Points: 2268

Hmm. What I'm trying is

Hmm. What I'm trying is embedding an object inside of the nested object where the normal fallback text would show. It is an object pointing directly at the mp3 for the stream.

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 14 weeks 5 days ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2043
Points: 2268

Here's what I came up with. Seems really convoluted.

Here's what I came up with. Seems really convoluted.

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="180" height="60">
	<param name="movie" value="ffmp3-config.swf">
	<param name="flashvars" value="url=http://chanknewovenmit.dyndns.org:656/;&lang=en&codec=mp3&volume=80&tracking=true&autoplay=false&skin=ffmp3-mcclean.xml&title=chank%20New ovenmit&jsevents=false&welcome=Loading%20..." />
	<param name="wmode" value="window" />
	<param name="scale" value="noscale" />
	<!--[if !IE]> <-->
	<object data="ffmp3-config.swf" width="180" height="60" type="application/x-shockwave-flash">
		<param name="flashvars" value="url=http://chanknewovenmit.dyndns.org:656/;&lang=en&codec=mp3&volume=80&tracking=true&autoplay=false&skin=ffmp3-mcclean.xml&title=chank%20New ovenmit&jsevents=false&welcome=Loading%20..." />
		<param name="wmode" value="window" />
		<param name="scale" value="noscale" />
		<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">
		<object type="audio/x-mpeg" data="http://chanknewovenmit.dyndns.org:656/listen.pls" width="200" height="16">
			<param name="pluginurl" value="http://www.apple.com/quicktime/download/" />
			<param name="controller" value="true" />
			<param name="volume" value="80" />
			<param name="autoplay" value="false" />
		</object>
	</object>
	<!--> <![endif]-->
</object>

Chris..S
Chris..S's picture
Offline
Moderator
Last seen: 8 years 5 days ago
Timezone: GMT+1
Joined: 2005-02-22
Posts: 6078
Points: 173

I think you're on the right

I think you're on the right track, only you probably want to use native players (e.g. HTML 5) where one is available before you go to flash.

The major 'free' flash players (Flowplayer, JW Player) are now HTML5 / Flash aware. You might want to either use them or take a look at their javascript to see how they accomplish the fallback. [ I realise they are primarily aimed at streaming video, but they can stream audio and presumably the HTML5/Flash stuff is the applicable ]

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 14 weeks 5 days ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2043
Points: 2268

Chris..S wrote:I think

Chris..S wrote:

I think you're on the right track, only you probably want to use native players (e.g. HTML 5) where one is available before you go to flash.

I was thinking that, too, but I can't seem to get the stream to play using the native browser player. I think it has something to do with not having a fixed length on the mp3 stream.

Chris..S wrote:

The major 'free' flash players (Flowplayer, JW Player) are now HTML5 / Flash aware. You might want to either use them or take a look at their javascript to see how they accomplish the fallback. [ I realise they are primarily aimed at streaming video, but they can stream audio and presumably the HTML5/Flash stuff is the applicable ]

It's working as is and since it's a favor (no pay) I'm probably going to let it go. It's also on a mess of a page made by someone with Frontpage 2000. If they want me to redesign the site for a few bucks I will probably look into putting more thought into it.