Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   Embedded Media in Firefox Browser (http://www.greenguysboard.com/board/showthread.php?t=11575)

DangerDave 2004-09-26 11:14 PM

Embedded Media in Firefox Browser
 
I run a few bits and pieces that use an embedded Windows Media Player to display/play various media embedded in HTML pages.. and after a bit of trying it got it all to work for IE and Netscape... for Mp3's, MPG's,WMV's etc...

:( ... but now none of the embedded players work in Firefox

I have seen a few places that have explained how to embed media for FireFox... but each type of media requires its own code.. I would love to find one bit of code to cover all media types..

or do I just force everyone to load Quicktime? :D


Any input appreciated

TIA

DD

Cleo 2004-09-27 07:42 AM

Mpegs play within the browser on the Mac version but maybe that is because Mac use Quicktime to play them.

What happens when you click on video preview on this page?
http://www.foxyangel.com/tour/index3.php

thrillho 2004-09-27 11:11 AM

Dave,
Not sure if this is the problem to which you are referring, but...
Lately, when I've clicked on my link to the movie sample of the day for Granny Island, the embedded Windows Media Player begins playing the movie, then the picture freezes after a couple of seconds. The audio, however, continues. Today, after reading your post here, I went to my site to check the link again (the location of the link to which I refer is here )
and the player had "closed" in it's status bar.
I surf with SlimBrowser, which runs on the IE engine, and generally seems to be perceived as IE by the sites/pages I'm viewing.
I'm not sure if this is a problem with browser compatibility, or if there's a problem with the video stream itself, but I thought I'd bring it to your attention here.

DangerDave 2004-09-27 08:41 PM

Solved! :D

Cleo - No, the Foxy's preview movie does not work in Firefox - (at least not with my settings!)

It is a coding problem rather than a browser problem.

Thrillho, the Outback movies suffer from the same problem.


When I first embedded movies they worked beautifully in IE..... but not in Netscape/Mozilla, and I found the solution to that one..(the way you embed them), and the same for FireFox...

Code just needs to be done the right way, as NN/Moz/and Ff are unforgiving for bad code

DD

Cleo 2004-09-27 08:56 PM

Quote:

Originally posted by DangerDave
Solved! :D

Code just needs to be done the right way, as NN/Moz/and Ff are unforgiving for bad code

DD

Care to share the proper coding?

lordaron 2004-10-17 10:11 AM

Im having the same problem with my tgp rotator script, firefox isnt capable of viewing the site. I just get the whole code when I try to access the site with firefox, no problem with IE etc.

Im not sure if I should blaim JMBsofware, myself or firefox :)

DangerDave 2004-10-17 04:49 PM

I would put 50$ on it being you/their code. :)

Every "prob" I have found in FF has been a code prob and or easily fixable.

DD

lordaron 2004-10-18 04:52 PM

hehe it was totally me as usual, forgot to put a extension to the file (I tested it in IE and it doesnt require an extension) ..now I named it .html and it works :)

cd34 2005-03-15 02:59 PM

this appears to be the magic incantation

Code:

CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
        type="application/x-oleobject">

       
       
       
       
       
pluginspage = "http://www.microsoft.com/windows/mediaPlayer/"
id="Player"
src="http://url.to/content/here.wmv"
value=" "
width="320"
height="240"
autostart="false">




Cleo 2005-03-15 03:15 PM

Anyone have to code to properly embed a mpeg into Firefox?

cd34 2005-03-15 03:26 PM

did you try that code? embed should work on any object type. mplayer is a handler for multiple encoding types.

Cleo 2005-03-15 03:35 PM

The plugin info is wrong for a mpeg.

Here is one of the pages where we have an embedded mpeg
http://www.foxyangel.com/transsexual...s/sample7.html
I'm told that it doesn't work in Windows Firefox but I know it works in Mac's Firefox.

This is what we are using

cd34 2005-03-15 03:45 PM

is that a video or audio file? you have your embed set to audio, but,

$ telnet foxyangel.com 80
Trying 216.77.84.39...
Connected to ashburn.simplecom.net.
Escape character is '^]'.
GET /tour-samples/sample.mpg HTTP/1.0
Host: foxyangel.com

HTTP/1.1 200 OK
Date: Tue, 15 Mar 2005 20:43:39 GMT
Server: Apache/1.3.33 (Unix) PHP/4.3.10
Last-Modified: Sun, 19 Sep 2004 00:37:33 GMT
ETag: "3643d6-1c9e10-414cd4cd"
Accept-Ranges: bytes
Content-Length: 1875472
Connection: close
Content-Type: video/mpeg

If it is audio, try naming it .mp3.. maybe the content type is throwing it off.

Useless 2005-03-15 05:17 PM

Foxy's video is working here on Firefox/Windows. It's rather 'shaky' though, if that makes any sense.

Cleo 2005-03-15 06:38 PM

Quote:

Originally Posted by cd34
is that a video or audio file?

Silly *nix user. :D

It is a movie, it is an mpeg or .mpg as the actually extension is for some odd reason.

UW
Wow it works. :)
I had someone test it sometime ago and they said it didn't work and then I forgot all about it until this thread.

Yeah it is shaky and needs to be replaced really badly. It is one of the mpegs that her old video guy did. We had a lot of problems with the ones that he did. We do them ourselves now in Final Cut Pro. Actually that is what we finish them off in. Angel uses iMovie for editing and titles and then gives us the .dv file.

Ok… code works properly in Firefox… mark one thing off in my ever growing to do list.

cd34 2005-03-15 06:42 PM

the reason I ask is that you are specifying type="audio/mpeg" in your

Cleo 2005-03-15 06:57 PM

Quote:

Originally Posted by cd34
the reason I ask is that you are specifying type="audio/mpeg" in your

Well you could have just said that instead of confusing me. ;)

I just changed it to video/mpeg and my web authoring program even changed the plugin icon to a movie clip instead of a musical note, a good sign.

Ok, does it still play in Windows Firefox?
http://www.foxyangel.com/transsexual...s/sample7.html

cd34 2005-03-15 07:06 PM

Quote:

Originally Posted by Cleo
Well you could have just said that instead of confusing me. ;)

I sort of did :)

Quote:

Originally Posted by cd34
is that a video or audio file? you have your embed set to audio, but,


Cleo 2005-03-15 07:21 PM

And people wonder why manuals written by programers are impossible to understand.

cd34 2005-03-15 07:53 PM

sorry, too many things going on at once. my time slicing algorithm was acting up.

Useless 2005-03-16 09:56 AM

Quote:

Originally Posted by Cleo
Ok, does it still play in Windows Firefox?
http://www.foxyangel.com/transsexual...s/sample7.html

Yes maam. ;)

Cleo 2005-03-16 09:58 AM

Thanks, guess I need to do a fast search and replace of a snippet of code one Angel's server. :)


All times are GMT -4. The time now is 12:12 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc