[thelist] wmv link not calling player
JR
jr_junk at yahoo.com
Sat Feb 17 17:58:04 CST 2001
OOPs!!!
It's not "response.type"!!!
Here is the correct syntax with a little extra:
---------------------------------------------------
Response.ContentType = "application/YOURTYPEHERE"
'check microsoft or something for types
Dim sPhysicalPath
sPhysicalPath = Server.MapPath(sVirtualPath)
Dim objFSO, objFile, objFileTextStream
Const ForReading = 1
Set objFSO =
CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile(sPhysicalPath)
Set objFileTextStream =
objFile.OpenAsTextStream(ForReading)
Dim sLine
Do While objFileTextStream.AtEndOfStream <> TRUE
sLine = objFileTextStream.ReadLine
Response.Write sLine & vbCrLf
Loop
objFileTextStream.Close
-----------------------------------------------------
--- JR <jr_junk at yahoo.com> wrote:
> I don't know what system your using, but if it's NT
> and you use .ASP then you can create an asp page to
> open and stream the file to the browser.
>
> use the file system object
> (scripting.filesystemobject) to open the file as a
> stream and write it to the page using response.type
> =
> "application/whatevertype"
>
> this has worked for me with several other binary
> file
> types...I don't know if it will work in your
> situation....good luck!
>
> John
>
> --- Ann Hyde <dpplus at teleport.com> wrote:
> > The links to the wmv files on my companies site
> > bring up code in IE and
> > NN instead of calling Windows Media Player. I can
> > open both the local
> > and Internet files manually in the player. I've
> just
> > spent hours on the
> > Microsoft site checking out the error/bug files
> and
> > I'm going
> > cross-eyed. We've put quite a few videos on-line
> and
> > haven't had any
> > problems using a simple link. What am I missing?
> >
> > Thanks for any help,
> > Ann Hyde
> > Design Publish Plus, Inc.
> >
> > ---------------------------------------
> > For unsubscribe and other options, including
> > the Tip Harvester and archive of TheList go to:
> > http://lists.evolt.org Workers of the Web, evolt !
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail -
> only $35
> a year! http://personal.mail.yahoo.com/
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
More information about the thelist
mailing list