Pelican Parts Forums

Pelican Parts Forums (http://forums.pelicanparts.com/)
-   Off Topic Discussions (http://forums.pelicanparts.com/off-topic-discussions/)
-   -   Need some HTML help. Anyone? (http://forums.pelicanparts.com/off-topic-discussions/584963-need-some-html-help-anyone.html)

WolfeMacleod 01-11-2011 05:59 PM

Need some HTML help. Anyone?
 
I'm redesigning my website and I'm having a small issue I can't figure out.
I have embedded audio clips that only seem to work in Firefox. Won't work in IE, Safari, nothing except Firefox.

I'm using Adobe Dreamweaver CS5.

the coding that Dreamweaver give is as follows:
HTML Code:

<OBJECT id=audioplayer2
            data="http://www.mysite.com/MP3/player.swf"
            width=310 align=middle height=24
            type=application/x-shockwave-flash>

              <embed src="MP3/zz.mp3" width="310" height="24" align="middle" autostart="false"></embed>
            </OBJECT>


One tester told me that the site wanted him to install Apple's Quicktime plugin, and he did... still didn't work. But I can't figure out why it would ask him to do that, becasue according to the code from what I can tell is Shockwave and/or Flash...no Quicktime involved???
If they ARE Quicktime based I'd rather dump it and go with something non Crapple.

anyone have any ideas why these won't seem to work in anything other than Firefox? If you want to see the actual page and it's workings, I'll PM it unless I have Z's or Wayne's permission to post it in public.

mca 01-11-2011 06:08 PM

Probably a cross domain issue.

Cross-domain policy for Flash movies

The embed source is supposed to be the swf ... and maybe the mp3 is a variable passed to the swf.

WolfeMacleod 01-11-2011 06:15 PM

Quote:

Originally Posted by mca (Post 5778577)
Probably a cross domain issue.

Cross-domain policy for Flash movies

The embed source is supposed to be the swf ... and maybe the mp3 is a variable passed to the swf.

Reading, but not so sure I understand. The MP3's are hosted on my site, not another site. It seems if that were the case, they shouldn't work in Firefox either?

mca 01-11-2011 06:17 PM

Where is the player hosted?

data="http://www.mysite.com/MP3/player.swf"

WolfeMacleod 01-11-2011 06:20 PM

Quote:

Originally Posted by mca (Post 5778597)
Where is the player hosted?

data="http://www.mysite.com/MP3/player.swf"


Sorry, the player is on my website... the actual coding for it is correct. I ommitte4d the URL.com so as not to "advertise" on the forum.

mca 01-11-2011 06:22 PM

In order to embed the player put this in the head tag of the html so that you are using swf object.

HTML Code:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>

<script type="text/javascript" src="swfaddress.js"></script>

Put this in the body of the html

HTML Code:

<script type="text/javascript">
            // <![CDATA[
                        var flashvars = false;
                        var params = {
                                  base: 'mp3/',
                                  wmode: 'window',
                                  menu: 'false'
                        };
                       
                        var attributes = {};
                        attributes.id = "mp3player";
                        swfobject.embedSWF("mp3/player.swf", "flashcontent", "310", "24", "9.0.0", "", flashvars, params, attributes);
       
            // ]]>

            </script>


mca 01-11-2011 06:24 PM

get swfaddress.js here > Asual | SWFAddress - Deep linking for Flash and Ajax

gots to go to bed now ... i'll check back tomorrow.

WolfeMacleod 01-11-2011 06:30 PM

Quote:

Originally Posted by mca (Post 5778610)
In order to embed the player put this in the head tag of the html so that you are using swf object.
.....

Doesn't seem to have worked. Not sure where in the body to place the second bit

I'll PM you the URL of the page.

Quote:

Originally Posted by mca (Post 5778615)
get swfaddress.js here > Asual | SWFAddress - Deep linking for Flash and Ajax

gots to go to bed now ... i'll check back tomorrow.

Yoiks, OK, I think that may be way beyond me. I've been working on the site for a few months now, and HTML stuff pretty much baffles me when it comes to much more than editing text or placing an image (sometimes even placing an image in the corect place stumps me)
Took me severel hours last night to get the audio players to do something..anything at all.

slodave 01-11-2011 06:54 PM

I can help when I get back to town tomorrow night.

Brando 01-11-2011 06:59 PM

Not working in IE?

Put all of your variables in the object tag into quotes. Make sure the source matches in the Object and Embed tags. Also, you're missing param tags. Try this:

HTML Code:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="310" height="24" id="audioplayer2" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="false" />
        <param name="wmode" value="transparent">
        <param name="movie" value="MP3/player.swf" />
        <param name="quality" value="high" />
        <param name="bgcolor" value="#000000" />
        <embed name="audioplayer2" src="MP3/player.swf" width="310" height="24" align="middle" autostart="false" pluginspage="http://www.adobe.com/go/getflashplayer" quality="high" allowscriptaccess="sameDomain"></embed>       
</object>

And, if you are just embedding a straight MP3 file:

HTML Code:

<OBJECT DATA="MP3/zz.mp3" TYPE="audio/mpeg" width="310" height="24" id="audioplayer2" align="middle">
        <PARAM NAME="autostart" VALUE="false" />
        <PARAM NAME="hidden" VALUE="false" />
        <EMBED src="MP3/zz.mp3" autostart="false" hidden="false" width="310" height="24" id="audioplayer2" align="middle"></EMBED>
</OBJECT>


stomachmonkey 01-11-2011 07:07 PM

You are embedding an mp3 as a Flash object which it is not.

Do you have Flash?

Embed your audio inside a swf, Flash file, and all will be right with the world.

WolfeMacleod 01-11-2011 11:40 PM

Quote:

Originally Posted by stomachmonkey (Post 5778710)
You are embedding an mp3 as a Flash object which it is not.

Do you have Flash?

Embed your audio inside a swf, Flash file, and all will be right with the world.

Apparently, part of the issue does lie in the Player.swf portion of the coding. It seems I'm supposed to upload an SWF/Flash player file to the site somewhere....however, I'm unable to find ANY information on where to get it. Googling any sort of "play Flash on site" or "embed flash" or "SWF player" comes up with how to install Flash plugins and play back Flash content on my PC!

stomachmonkey 01-12-2011 06:31 AM

Personally I would build yourself a nice little "gallery" in Flash, think some sort of Jukebox type deal.

If you're really nice to MCA he may help, he's an Actionscript guy. I've seen his work. He knows his stuff.

I might could be tempted to tackle it in exchange for some friends and family pricing on some pu's for an old Hagstrom lll that I have lying around in pieces and am contemplating hot rodding.

What's your timeframe for getting all this done?

Paul_Heery 01-12-2011 09:02 AM

Wolfe,

I might suggest that you take a look at Wimpy MP3 Player

It is easy to setup and virtually idiot proof. I say "virtually idiot proof" because it comes with step-by-step instructions and an online configuration wizard. However, there are a couple of critical steps that you need to take to secure your content that are not covered by the wizard and a lot of people overlook them.

Check out their examples on that page.

Let me know if you need any help.

Paul

stomachmonkey 01-12-2011 09:13 AM

Quote:

Originally Posted by Paul_Heery (Post 5779633)
Wolfe,

I might suggest that you take a look at Wimpy MP3 Player

It is easy to setup and virtually idiot proof. I say "virtually idiot proof" because it comes with step-by-step instructions and an online configuration wizard. However, there are a couple of critical steps that you need to take to secure your content that are not covered by the wizard and a lot of people overlook them.

Check out their examples on that page.

Let me know if you need any help.

Paul

Well there you go.

WolfeMacleod 01-12-2011 09:15 AM

Ahhaaa! I got it!
After working at this till 4 in the morning last night, my eyes were crossing so I went to sleep.
Before going to sleep, I remembered that another person had a similar file player setup as the one that was designed for me... the pages were designed by the same team. I was only given the sample layout files instead of a complete, working site, because our agreement was falling apart and they didn't come through with our original agreement (which didn't include a site, by the way)
Being unable to locate the file player, I went to the other site they had built and viewed the source code, looking for the SWF player file. Once I found it, I clicked and saved, then uploaded to my site.
Surprise, they were using the same embedded player.

No need to convert the MP3's to Flash...

This would have been so much easier if they'd provided the SWF player with the basic files when they sent them.

But I think it works



Now.. MCA... I may want to talk to you about some other stuffs...






Quote:

Originally Posted by Paul_Heery (Post 5779633)
Wolfe,

I might suggest that you take a look at Wimpy MP3 Player

It is easy to setup and virtually idiot proof. I say "virtually idiot proof" because it comes with step-by-step instructions and an online configuration wizard. However, there are a couple of critical steps that you need to take to secure your content that are not covered by the wizard and a lot of people overlook them.

Check out their examples on that page.

Let me know if you need any help.

Paul

Paul, I think I ran across that page last night Once I start getting the hang of thism, I may want to skin something to look bettewr on the site.
Not real worried about securing the content, as they're user-submitted soundclips using my product. They get posted in several places.

mca 01-12-2011 02:45 PM

Glad you got it working. Sorry that I was out of pocket all day today. Trying to close on a construction loan and running around like mad getting paperwork together.

Anytime you have a question feel free to PM me. I'd be happy to lend a hand.

Cheers,
Craig

mca 01-12-2011 02:56 PM

Quote:

Originally Posted by stomachmonkey (Post 5779320)
If you're really nice to MCA he may help, he's an Actionscript guy. I've seen his work. He knows his stuff.

Hey thanks! I needed that!

mca 01-12-2011 03:00 PM

Quote:

Originally Posted by WolfeMacleod (Post 5779664)
Ahhaaa! I got it!

Nice site. Noticed that the products.jpg in the navigation isn't correct. The hover image is correct by the dormant image (products.jpg) looks odd.

VincentVega 01-12-2011 07:03 PM

FYI

4 sound clips are listed on the above referenced page but only the first 3 work.

Looks good


All times are GMT -8. The time now is 11:32 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0
Copyright 2025 Pelican Parts, LLC - Posts may be archived for display on the Pelican Parts Website


DTO Garage Plus vBulletin Plugins by Drive Thru Online, Inc.