|
#1
|
||||
|
||||
|
Hello,
Many people have questions about media steaming support for their sites. Hostgator supports "Http Streaming". I am presenting a "How to" for those who need it to work from their sites. ================================================== ================================================== ==== After you encode your media files, there are two more steps in preparing your content for streaming from a Web server: creating Windows Media metafiles with .wax, .wvx, or .asx file name extensions and adding tags to your HTML files. The HTML tag points the end user's browser to the metafile, which points Windows Media Player to the content—the Windows Media file. A metafile must be used to reference the media because a direct reference to the media in an HTML tag will cause most browsers to attempt to download the media rather than stream it. To create a Windows Media metafile Open a text editor, such as Microsoft Notepad. Type the following metafile script, replacing the URL with that of your media. Reference the media just as you would any other Web file. Code:
<ASX VERSION="3.0"> <ENTRY> <REF HREF = "http://YourWebServer/Path/YourFile.wmv" /> </ENTRY> </ASX> Code:
<REF HREF="YourFile.wmv" /> Code:
<HTML> <BODY> Play this Windows Media file: <A HREF = "http://YourWebServer/Path/YourFile.wvx"> YourFile</A> </BODY> </HTML> ================================================== ================================================== ====
__________________
Shashank Wagh Systems Administrator & Level III Support, Hostgator.com LLC. Find us @ http://www.HostGator.com/help/ |
|
#2
|
||||
|
||||
|
Very nice article! *thumbs-up"
|
|
#3
|
|||
|
|||
|
Ok what I want to know how to do is stream music were it doesn't download a file to there cache or temp floder! Or protects my content! You know what I mean some people stream videos etc to you and after you watch it you can go into your temp folder and find it in there! And copy it! Well sometime you can't or you go into there and there is no media file or it is in a type that can't be played back or protected! Can you help me thanks!
__________________
Want cheap speedy hosting then check out http://speedyhosted.com also for free funny videos check out http://humorvids.com or for a list of host's check out http://hostinglister.com and my personal site and free image hosting is http://cheaptechsales.com thanks! |
|
#4
|
||||
|
||||
|
Thanks very much for the how to Joe. I learned something today. I had wondered about it, and figured it had something to do with meta files but never had needed to before so I hadn't played with it yet. Now I won't have to figure it out by trial and error. Keep them coming
![]() I think it would be great if HG could offer how to articles every week or two and place them in their own forum. Maybe you could setup a simple form for users (registered) to fill in to submit requested topics/how to's. Sorry, I know...but don't you know that no good deed every goes unpunished ![]() David |
|
#5
|
||||
|
||||
|
Quote:
|
|
#6
|
|||
|
|||
|
Thanks! These streaming instructions are just what I needed.
I followed all instructions on writing the script. I tested it by double clicking it in my Windows Explorer and it worked great. However, when I enter the link in the address bar (or reference it in the html of my site) it just brings up the text rather than running the script. Any idea what I may be doing wrong? The script is at xxx (problem solved, linked removed. Thanks!) Thanks in advance. Christine Last edited by ebiz1; 05-25-2005 at 01:48 PM. |
|
#7
|
||||
|
||||
|
Christine,
I'm not sure if this will make a difference but I noticed a small discrepency in your code... GatorJoe wrote: Quote:
Your code: Quote:
My browser tried in earnest to stream the file but couldn't find it. Could just be a path issue. |
|
#8
|
|||
|
|||
|
Quote:
![]() I actually have access to a flash creator but that needs to start with AVI rather than wmv (9). So I thought I would try this route instead. I'm about at my wits end, but I know that it has to be possible. Maybe someone from hostgator will eventually get back to me. Thanks for the suggestion. ![]() Christy |
|
#9
|
||||
|
||||
|
Dunno much about this never tried it but have you tried using the full URL to the wmv file?
Are you keeping with case sensitivity? By the way (this is not the problem probably) but I have noticed in code examples that the trailing forwardslash should have a space before it <REF HREF="wmvfile.wmv" /> not <REF HREF="wmvfile.wmv"/> I'll look for more info on this as sooner or later some customer is bount to want to stream. Antonio. |
|
#10
|
||||
|
||||
|
Quote:
__________________
best regards, George |
|
#11
|
||||
|
||||
|
u might have something there cause I only tested with firefox too :-)
|
|
#12
|
|||
|
|||
|
Quote:
That's something I usually remember to try. Yes, I'm on Firefox. Switched to IE and it works! I was so confounded by trying to figure out how to get it into FLV, when I finally gave up and went this route I was already at my wits end. Thank you!! Christy (I'll go remove that link now so no one else gets tortured by the video )
|
|
#13
|
|||
|
|||
|
So does this method of streaming work in FireFox? I haven't gotten it to work in FireFox.
|
|
#14
|
|||
|
|||
|
Should, remember that it only works with certain filetypes.
__________________
|
|
#15
|
|||
|
|||
|
Thanks for the tutorial! I usually search the knowledgebase and the forums for answers. When I searched the knowledgebase for streaming media, I didn't get any hits. Would you create a "Streaming Media/Video" or similar category in the knowledgebase and add this article? That would be great.
Regards, Vernessa |
|
#16
|
|||
|
|||
|
Has anyone got the working in Firefox? And if so, how.
|
|
#17
|
||||
|
||||
|
Quote:
I've yet to find a way to do what has been discussed here in Firefox. |
|
#18
|
|||
|
|||
|
Thank you for this information. I was hoping to use mp3 because of the smaller file size. Is that possible?
|
|
#19
|
|||
|
|||
|
Quote:
|
|
#20
|
|||
|
|||
|
do the instructions work for quicktime (.mov) files as well?
|
|
#21
|
|||
|
|||
|
Quote:
please fill me in. - troy |
|
#22
|
||||
|
||||
|
Quote:
I put the file on the server and used the following link to the file: <embed src="dateline.mov" width="320" height="300" qtsrc="http://bowwowtv.com/video/dateline.mov"> I used a java script to create the movie window popup. You can check the source code of the page at: http://bowwowtv.com/video/quicktime.htm Doesn't look so good when it isn't in its window, but you will get the idea. The only problem I've discoved is that if the client doesn't have Quicktime, then they are not prompted to download it, so I added that to the page. (BTW: don't PM me, email me...) |
|
#23
|
|||
|
|||
|
Quote:
|
|
#24
|
|||
|
|||
|
Your ASX file should be formatted like this.
Code:
<ASX VERSION="3.0"> <ENTRY ClientSkip="no"> <TITLE>Primal Media Ad</TITLE> <AUTHOR>Primal Media Limited</AUTHOR> <COPYRIGHT>(c)2007 Primal Media Limited</COPYRIGHT> <REF HREF="http://media.primalmedia.co.nz/primaltv/no_ad_intro.wmv" /> </ENTRY> <ENTRY ClientSkip="no"> <TITLE>Primal Media Ad</TITLE> <AUTHOR>Primal Media Limited</AUTHOR> <COPYRIGHT>(c)2007 Primal Media Limited</COPYRIGHT> <REF HREF="http://media.primalmedia.co.nz/primaltv/no_ad_intro.wmv" /> </ENTRY> </ASX> Code:
<object id="vidPlayer" width="500" height="344" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex...ion=6,4,7,1112" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" align="right" style="padding: 4px;"> <param name="URL" VALUE="<?php echo SITE_URL."/video/play_300_item".$rowv['magVideoId'].".asx"; ?>"> <param name="SendPlayStateChangeEvents" VALUE="True"> <param name="enabled" value="True"> <param name="PlayCount" value="1"> <param name="animationatStart" value="true"> <param name="EnableContextMenu" value="0"> <param name="TransparentatStart" value="true"> <param name="EnableFullScreenControls" value="true"> <param name="DefaultFrame" value="0"> <param name="stretchToFit" value="false"> <param name="uiMode" value="full"> <param name="autoStart" value="true"> <param name="showControls" value="true"> <param name="ShowStatusBar" value="true"> <embed id="vidPlayer" name="vidPlayer" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows/win...Downloads.aspx" enablecontextmenu="0" src="<?php echo SITE_URL."/video/play_300_item".$rowv['magVideoId'].".asx"; ?>" width="500" height="344" ShowControls="1" ShowAudioControls="1" uimode="full" StretchToFit="false" ShowStatusBar="1" ShowDisplay="0" autostart="1"></embed> </object> |
|
#25
|
||||
|
||||
|
I wonder if these people from 2005 still care
__________________
Follow me on Twitter! http://twitter.com/mrw |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| tipping point network upgrade news.... | GatorBrent | Network Status | 6 | 05-31-2005 02:35 PM |
| Streaming .flv files... | Unregistered | Suggestions | 2 | 03-14-2005 07:26 PM |