Author: | ElderDaniel |
VR Publish Date: | Oct 07 2005 |
VampireRave Premium Members now have access to some cool new features. Not only do these add extra options like email addresses, but this access also allows for the use of some extra HTML tags for Profiles. These tags are normally not allowed by many webforums because they can be abused. This is the case which both additions Cancer has made available. Since you are paying for Premium access however, I hope you will respect their use online. I will be splitting up my coverage of both major additions into two seperate articles. The next article will cover Cascading Style Sheets, or CSS, which is used to spruce up your Profile page. This article however deals with another feature just for Profiles, the embedding of music and/or video files into your profile. First, I'll talk about the different standards for media. Then I will give a breakdown of each method for embedding media, from easiest to most complex. Please note, as this file is in my journal, I cannot have working examples. I'll include some in my profile, but for now, you'll just have code samples and will have to try them yourself on your profile to test them out. Also, don't forget, all of the media files that you want to embed need to be hosted on other servers and linked with full web addresses to those other sites. Web-browser standards There aren't any. OK, that's sarcasm, but it ain't far from the truth. Fact is, there are too many standards and the best you can do is pick popular ones and hope for the best. For example, there are a dozen sound file formats, but most browsers will gladly play .MID, .WAV, or .MP3 files for you. .mid or MIDI files are an old standard for programming external music synthesizers that were also adopted for playing music on a PC. These consist of text files that tell which note, sustain, and duration to play. These files sound "synthesized" or "canned" and have no sung lyrics as a result. Their chief benefit is wide public availability and compact size. .wav files were developed my Microsoft for playing sound and music on Windows. They are sampled data straight from a sound source. Depending on the quality they are sampled at, these can be quite large; roughly 10MB per minute of CD quality audio. These can be good for sound bytes on the order of a few seconds. Anything longer will take forever to download and a user may give up waiting. .mp3 files are compressed .WAV files. They employ MPEG-3 compression to squeeze an audio file down to roughly 1MB per minute of audio sampled from a quality source like a music CD. Thanks to this technique, people can share music, take it with them in personal players, and play them on their webpages. Still however, they can be too large for some people to wait for. That's just the music standards, and that doesn't even include popular proprietary formats like RealAudio, WindowsMedia, etc.! For video you have .AVI, .WMV (WindowsMedia), .RM (RealPlayer), and .MOV (QuickTime), to name a few. All of these standards are what lead to some websites having links to more than one of these formats. If you plan to embed a media file, you might try to do the same -- assuming you have it in more than one of these formats. To complicate matters further, there is more than one way to embed media into HTML. This is due to early attempts being surpassed by new techniques, and different browsers trying better ways. What follows is an explanation of each type and why you might choose to use it. All four of these HTML Tags are available to Premium Members only, and only in Profiles. These will not work in the forums, journals, etc. The The RealPlayer Example (Note CONTROLS="ImageWindow", as this is how you hide the controls. If you want them active, set this to "all".) <EMBED NAME="YourSongReal" SRC="http://www.YourWebsite.com/YourPathTo/YourSong.rm" TYPE="audio/x-pn-realaudio-plugin" CONSOLE="YourSongReal" CONTROLS="ImageWindow" WIDTH="200" HEIGHT="150" AUTOSTART="true" AUTOPLAY="false" > QuickTime Example (Note with this one, the PLUGINSPACE tells your browser where to download the QT player if you don't already have it.) <EMBED NAME="YourSongReal" SRC="http://www.YourWebsite.com/YourPathTo/YourSong.mov" PLUGINSPAGE="http://www.apple.com/quicktime/download/" CONTROLLER="true" WIDTH="160" HEIGHT="144" AUTOSTART="true" AUTOPLAY="false" > The RealPlayer Example The controls parameter should have the value "ImageWindow" if you don't want the control buttons to show, or "All" if you want all the controls to show. CLASSID="CLSID:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"> VALUE="http://www.YourWebsite.com/YourPathTo/YourVideo.rm" /> WindowsMedia Example CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"> VALUE="http://www.YourWebsite.com/YourPathTo/YourSong.wmv" /> QuickTime Example CLASSID="CLSID:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab" WIDTH="160" HEIGHT="144"> VALUE="http://www.YourWebsite.com/YourPathTo/YourVideo.mov" /> To see this in use, visit my Portfolio's Slideshow; a sweet option Cancer added to all Portfolios. The music plays on the Slideshow page, and uses an IFRAME to open a page that refreshes after a set number of seconds to display the next photo in my portfolio. Only the contents of the IFRAME refresh, not the IFRAME or the main page itself. Putting this all together, let's say you wanted to play a MIDI file on your webpage. To cover all bases you will want to use an This will work for MIDI, WAV and MP3 files. Anything more sophisticated listed above, then remove the Let me wrap up with a reminder... Please do not link to copyrighted music or videos that you do not own the rights to. Just because you found it on the web does not make it legal. You will just open yourself up to a nasty legal barrel of crap if you choose to do so. VR has made the warnings known. If you choose to violate this, you take on the risk. Freedom of choice and extra options require responsibility. There's my 2¢. Enjoy the Rave, The Elder Lurker Daniel |
Times Viewed: | 16,613 |
Times Rated: | 1,274 |
Rating: | 9.832 |
Rated
awesome