Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error in Firefox embed?



I use a combination of EMBED and SMIL (without the OBJECT)
generated on the fly to end up with a programmable/positionable
media stream playable by QT from Firefox, IE, and Safari on
OSX (Firefox and Safari) and Windows (Firefox and IE).


Purpose of programmable/positionable is to allow the user
to click anywhere in a transcript and to have the media player
crank up from the start of the clicked-on paragraph (controlled
via timecodes worked into the php/html).

Firefox works great (OSX & Win) and I can embed the media player
in a top frame positioned over the place in the transcript where
the media player starts.  Neither IE nor Safari can handle that
level of multi-tasking without breaking the text display in the
lower frame and hence I have to go to a plain HTML page w/o the
transcript text when routing to those browsers.

Finally, OSX in general cannot playback the mp4 movie in QT as
easily as QT running on Windows can.  My datapoint is QT on
Win2k on 450 laptop plays video smoothly (802.11a), same
QT/video on 1ghz emac has some jerkiness to it (wired to network).

My code is not intuitive because I use javascript to dynamically
setup the EMBED because I was trying to delay the startup of QT
so the frames might work fine in Safari on OSX, or Firefox would
work w/ frames on Panther.


Roughly ... javascript ...

function loadMediaPlayer(baseMediaWidth, mediaEmbedHeight, tmpMediaReference) {
	var mediaDiv = document.getElementById('media_div');
	var node;
	setBrowserAndOS();
	if (OS == 'Windows' || OS == 'OSX') {
		node = document.createElement("EMBED");
		node.setAttribute('SRC', "/empty.mov");
		node.setAttribute('WIDTH', baseMediaWidth);
		node.setAttribute('HEIGHT', mediaEmbedHeight);
		node.setAttribute('QTSRC', tmpMediaReference + '.smil');
		node.setAttribute('PLUGINSPAGE','http://www.apple.com/quicktime/download/');
	} else {
		// pass back SMIL reference w/o QuickTime force via empty.mov; probably won't work
		node = document.createElement("EMBED");
		node.setAttribute('SRC', tmpMediaReference + '.smil');
		node.setAttribute('WIDTH', baseMediaWidth);
		node.setAttribute('HEIGHT', mediaEmbedHeight);
	}
	mediaDiv.appendChild(node);
}


PHP used to pick up the above javascript function:

echo("<body class='media_frame' onload=\"loadMediaPlayer($baseMediaWidth, $mediaEmbedHeight,
'$tmpMediaReference');\">\n"); ((all on one line))


Example of a tmp smil file:

<smil xmlns:qt="http://www.apple.com/quicktime/resources/smilextensions";
qt:time-slider="true" qt:autoplay="true">
<head>
<layout>
<root-layout width="226" height="169" />
<region id="1" top="0" left="0" width="226" height="169" />
</layout>
</head>
<body>
<video src="rtsp://207.145.0.6/Blackstock.mp4"; clip-begin="npt=62.90" region="1" />
</body>
</smil>





I should add--it only seems to be Firefox 1.5 for windows--on the Mac
(which I just checked) it worked fine.



----------------------------------------
Gray T. Miller
Telecast Operations Technician
email@hidden
(608) 663-1961



"Gray Miller" <email@hidden> 12/29 12:51 PM >>>


I have what seems to be a pretty weird error, and while I've searched
online, I can't seem to find any solution.

I've been getting our small DSS and media online, and had one
particular segment, http://www.mmsd.org/mmsdtv/streamingBOE.htm ,
working fine. In fact, if you look at it in Explorer (on PC), it's
STILL
working fine, ditto with Safari. (ok, I'm a little bothered with the
audio/video not being in sync, but the goal was to get chapters
working,
and that works fine).

But in Firefox, it doesn't work. Moreover, I've found other sites
where
the video has stopped working when it's a reference movie (
Soundstream,
for example). Has anyone else noticed this? My embed code is as
follows:

<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab"; height="255"
width="320">
			<param name="src"
value="streaming/BOE1205str.mov">
			<param name="autoplay" value="true">
			<param name="controller" value="true">
			<embed height="255"
pluginspage="http://www.apple.com/quicktime/download/";
src="streaming/BOE1205str.mov" type="video/quicktime" width="320"
controller="true" autoplay="true">
		</object>

I'm not too worried right now--since most of my userbase uses
Explorer--but it's a concern.

----------------------------------------
Gray T. Miller
Telecast Operations Technician
email@hidden (608) 663-1961


------------------------------------------------------------------------

BEGIN:VCARD
VERSION:2.1
X-GWTYPE:USER
FN:Gray Miller
ORG:;Doyle
EMAIL;WORK;PREF;NGW:email@hidden
N:Miller;Gray
TITLE:Telecast Operations Technician
END:VCARD



------------------------------------------------------------------------

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Streaming-server-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/streaming-server-users/email@hidden

This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Streaming-server-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/streaming-server-users/email@hidden

This email sent to email@hidden
References: 
 >Re: Error in Firefox embed? (From: "Gray Miller" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.