[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tips and tricks
Somehow I managed to get onto a developer's mailing list at real.com. All
this browsing and signing my name to stuff, I guess. Any, I found these
two tidbits, in case anyone is interested in adding some flair to their
Web pages:
*******Developer Tips and Tricks*******
*** Embedding plugins and controls into your web page ***
RealPlayer custom controls can be easily and seamlessly integrated into
your Web page layout. Individual interactive components, such as a play
button or image window, can be placed anywhere on your page, just as you
would place an image using the <IMG> tag in HTML.
Adding custom controls to a Web page is a simple step-by-step process:
1.Select the audio or video file to playback.
2.Create a metafile (.rpm) with the desired URL. For more info on Meta
files see - http://www1.real.com/create/ccguide/config.html#metacreate
3.Design interface by selecting RealPlayer custom controls.
4.Add <EMBED> statement to HTML.
The following page is an interactive developers resource to embedding
custom player controls. Select the controls you want, see the result, and
get a printout of the html required.
http://www.real.com/create/plugtest/plugin.html
*** Using javascript with RealPlayer plugins ***
The featured site of the day, "House of B's Funky Fashions"(See
http://www.geocities.com/FashionAvenue/2903/), uses http streaming off a
web server and javascript to allow many clips to be played using the same
plugin/active-x control. The designer of this site used JPEG images in
the
left frame for users to select video clips. Each JPEG image launches the
javascript program which allows all the clip to playback in the same
plugin/control in the frame on the right.
The program 'PlayClip' was written as follows:
<SCRIPT Language=JavaScript>
function PlayClip(clipname)
{
//alert(clipname);
if (navigator.appName == "Netscape") {
clipname="http://www.geocities.com/FashionAvenue/2903/"+clipname;
document.rvcontrol.SetSource(clipname);
document.rvcontrol.DoPlayPause();
}
else
{
rvocx2.Source=clipname;
rvocx2.DoPlayPause();
}
}
</SCRIPT>
This program is called using:
<AREA SHAPE=RECT COORDS="0,0,76,16"
HREF="JavaScript:PlayClip('video1.rpm')">
For more information on how they created this site, right click your mouse
in the left frame to use the "view frame source" browser function for the
complete html.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
john
http://sunsite.unc.edu/smiley/
"The painter's work is done in vain,
The shithouse poet strikes again."
-found on a bathroom stall in Phillips
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.2
mQCPAzN7m18AAAEEALBjEgrkjRql9cqhZ43lNx9/teBerhHDibYzZ9Mb8NwEH/P3
lTvdJG3MPlPtSfhx3t96cFz3dHXpsct8YQaN0ZxaDXqgFMPpBKjP/QO5Mf5E3xUc
qR+SyFTQLAVrJeK6UkaBvU35ThiMfn3kpBsaiyMKj60JnXD6suTY/0VwKrttABEB
AAG0KEpvaG4gRC4gSm9obnNvbiA8c21pbGV5QHN1bnNpdGUudW5jLmVkdT4=
=rQIs
-----END PGP PUBLIC KEY BLOCK-----