gacain Posted September 5, 2003 Share Posted September 5, 2003 Greetings, Can anyone tell me what I need to do to set up streaming audio from my web sites here at TCH? (I already know how to create the mp3, wav etc. files) Any information would be greatly appreciated. Thanks! Greg Quote Link to comment Share on other sites More sharing options...
Wilexa Posted September 5, 2003 Share Posted September 5, 2003 Just to clarify: You want to do streaming, not let the users download your files? Downloading is easier. Just put a link to the file name and when the user clicks on it, presto it opens (or downloads). If you want to do streaming you will need to encode your files using (suprise) an encoder. You might want to try Real Networks' Helix Producer Basic for limited functionality (its free) or Helix Producer Plus for extra functionality. You can also use Microsoft products or Quicktime. HTH, Dave Quote Link to comment Share on other sites More sharing options...
gacain Posted September 5, 2003 Author Share Posted September 5, 2003 Dave (& all): Right - I want to do streaming of .mp3 files, not downloading. I realize that it's possible to save streaming audio to ones hard drive, but it takes a little more effort and I'm trying as much as possible to prevent this stuff from being copied. Thanks much for the tip. Greg Quote Link to comment Share on other sites More sharing options...
musicfrisk Posted September 5, 2003 Share Posted September 5, 2003 Dave (& all): Right - I want to do streaming of .mp3 files, not downloading. I realize that it's possible to save streaming audio to ones hard drive, but it takes a little more effort and I'm trying as much as possible to prevent this stuff from being copied. Thanks much for the tip. Greg I'm not sure of the how. I do know on the sites I've seen it that Real Audio takes up much less bandwith for the same Windows Media file. I cheat and it doesn't really stream, it dumps into the temp cache and plays from there. if the file is small enough most people will just click and not save as if prompted to do so and it's fast. I'd check around the Real Audio site, I'd bet there's instructions on "how to" stream there. http://www.musicfrisk.com/picture/intervie...volume1.no1.php Quote Link to comment Share on other sites More sharing options...
boxturt Posted September 5, 2003 Share Posted September 5, 2003 .m3u and .ram pointer files are good for hiding / preventing downloads. Even if prompted to open or save (as Netscape and Mozilla do) you can only save the link target which is just a one line file. Example: You have the mp3 called MySong.mp3 Open a text editor and create the following line ONLY (tailored to your specs and locations) : h*tp://******/mp3s/MySong.mp3 (must be full url) Now save that as 'MySong.m3u' Link to the m3u file from your page and you have instant streaming and fairly decent download protection. Quote Link to comment Share on other sites More sharing options...
[subc] Posted September 6, 2003 Share Posted September 6, 2003 mmm, I made a tutorial some time ago that explains how to stream mov, wma, mp3 and real audio from servers that support and don't support streaming, along with all the html tags needed... there's only one problem: is written in spanish if you care about it let me know and I can re-publish it on my site. Quote Link to comment Share on other sites More sharing options...
Wilexa Posted September 6, 2003 Share Posted September 6, 2003 Ty... What a great tip! Perfect for light-security streaming. I will put it to use right away. [subc]... TCH really needs a tutorial on streaming. It would be great to have a link, even in Spanish ...Dave Quote Link to comment Share on other sites More sharing options...
TCH-Don Posted September 6, 2003 Share Posted September 6, 2003 Yes Ty (aka Boxturt)! that is a great tip Thumbs Up Quote Link to comment Share on other sites More sharing options...
Wilexa Posted September 6, 2003 Share Posted September 6, 2003 Ty and turtle, Sorry, it was getting late and I got my *turt* mixed up! A quick edit and all is well. ..Dave Quote Link to comment Share on other sites More sharing options...
gacain Posted September 6, 2003 Author Share Posted September 6, 2003 ,Sep 6 2003, 12:29 AM] mmm, I made a tutorial some time ago......if you care about it let me know and I can re-publish it on my site. Yes, I'd be very interested in reading your tutorial! Please do post it. If you'd rather not do the translation to English, go ahead and post the Spanish version - I can have it translated. Also, if you wouldn't mind, please post here when you have it uploaded. Thanks very much! Greg Quote Link to comment Share on other sites More sharing options...
[subc] Posted April 16, 2004 Share Posted April 16, 2004 a user reminded me about this unaswered post, so here it goes: WMA 'streaming' assuming you created the WMA files, here's the code needed for an html page or a popup html window in order to stream that WMA file. All WMV (windows media video) and WMA (windows media audio) files have an ID name in order for the browser to identify what they are. Instead of just calling them WMV and WMA, Microsoft decided to call identify them with: clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95 You must insert this identifier in the html code of the page, and in order to tell the browser that a multimedia object is embedded, you must use the code: <object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"> Next, you must specify the video or audio file that is embedded, so the code changes to: <object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"> <param name="Filename" value="http://www.yoursite.com/folder/file.wma"> (you know what to replace there, right?) the above code shows the complete path to the WMA file, but if the WMA file is inside the same folder as the html file with the code, then you can simply write it like this: <param name="Filename" value="file.wma"> and that would give you something like this: <object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"> <param name="Filename" value="file.wma"> finally, we close the object code by using the </object> tag, and we get something like this: <object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"> <param name="Filename" value="file.wma"> </object> That is really basic code to embedd video or audio files into a page (WMV and WMA). The page will load and the files will play as soon as the page finishes loading. If you really want to personalize the stream, then you can use a few more parameters. for example: <object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="Player" width="320" height="240"> <param name="AudioStream" value="0"> <param name="AutoSize" value="0"> <param name="AutoStart" value="0"> <param name="AnimationAtStart" value="0"> <param name="AllowScan" value="0"> <param name="AllowChangeDisplaySize" value="0"> <param name="AutoRewind" value="1"> <param name="Balance" value="0"> <param name="BufferingTime" value="5"> <param name="ClickToPlay" value="0"> <param name="CursorType" value="0"> <param name="CurrentPosition" value="0"> <param name="CurrentMarker" value="0"> <param name="DisplayBackColor" value="0"> <param name="DisplayForeColor" value="16777215"> <param name="DisplayMode" value="0"> <param name="DisplaySize" value="5"> <param name="Enabled" value="0"> <param name="EnableContextMenu" value="0"> <param name="EnablePositionControls" value="0"> <param name="EnableFullScreenControls" value="0"> <param name="EnableTracker" value="0"> <param name="Filename" value="file.wma"> <param name="InvokeURLs" value="0"> <param name="Language" value="0"> <param name="Mute" value="0"> <param name="PlayCount" value="1"> <param name="PreviewMode" value="0"> <param name="Rate" value="1"> <param name="SelectionStart" value="0"> <param name="SelectionEnd" value="0"> <param name="SendOpenStateChangeEvents" value="0"> <param name="SendWarningEvents" value="0"> <param name="SendErrorEvents" value="0"> <param name="SendKeyboardEvents" value="0"> <param name="SendMouseClickEvents" value="0"> <param name="SendMouseMoveEvents" value="0"> <param name="SendPlayStateChangeEvents" value="0"> <param name="ShowCaptioning" value="0"> <param name="ShowControls" value="1"> <param name="ShowAudioControls" value="0"> <param name="ShowDisplay" value="0"> <param name="ShowGotoBar" value="0"> <param name="ShowPositionControls" value="0"> <param name="ShowStatusBar" value="1"> <param name="ShowTracker" value="0"> <param name="TransparentAtStart" value="0"> <param name="VideoBorderWidth" value="0"> <param name="VideoBorderColor" value="0"> <param name="VideoBorder3D" value="0"> <param name="Volume" value="80"> <param name="WindowlessVideo" value="0"> </object> the parameters pretty much explain themselves... but I must remind that '1' means 'yes' and '0' equals 'no'. Now, there is something called 'ActiveX' that allows the browser to download the necessary components in order to playback to files (like missing audio or video codecs, etc). Not all browsers support this, but IE and recent versions of netscape/mozilla/firefox should do it). So the code will look like this now: <!-- BEGIN GENERIC ALL BROWSER FRIENDLY HTML FOR NETSHOW V3 --> <object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="Player" width="320" height="240"> codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=,1,52,701" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject"> <param name="Filename" value="file.wma"> <param name="AutoStart" value="0"> <param name="AutoRewind" value="1"> <param name="ShowTracker" value="0"> <param name="ShowStatusBar" value="1"> <EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" SRC="archivo.wmv" name="MediaPlayer" width=320 height=240> </EMBED> </OBJECT> the grey code is the activeX part. This will allow for maximum compatability (not good spelling) in different browsers. Quote Link to comment Share on other sites More sharing options...
Paul_Ecuador Posted September 26, 2005 Share Posted September 26, 2005 ' date='Sep 5 2003, 07:29 PM' post='29505']mmm, I made a tutorial some time ago that explains how to stream mov, wma, mp3 and real audio from servers that support and don't support streaming, along with all the html tags needed... there's only one problem: is written in spanish if you care about it let me know and I can re-publish it on my site. ¡Me encantaría tener ese tutorial! I'll love to have that tutorial! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.