How to display video file from database

  • Thread starter Thread starter Isabella
  • Start date Start date
I

Isabella

I have successfully insert .wmv files into MySQL. When I display the video
in the browser using Read.aspx to get the .wmv:

Response.ContentType = objDataReader.Item("swingContentType")
Response.BinaryWrite(objDataReader.Item("swing"))

if I directly call this Read.aspx, window media will open and play the .wmv.
But I want to play the .wmv in browser, so I use another file to display
..wmv with <object>. Nothing happen:

<OBJECT id="player" type="application/x-oleobject" height="280" width="400"
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" VIEWASTEXT>
<PARAM NAME="Filename" VALUE="Read.aspx">
</OBJECT>


Any ideas?



Isabella
 
I found that it works if upgrade to windows media 9 and Acelp.Net Audio
Codec is asked to installed.
From msdn web site, "Sipro Labs ACELPR .net audio codec is a version of the
Algebraic-Code-Excited Linear Prediction (ACELP) compression methodologies
that has been optimized for use on Internet Protocol (IP) networks and the
Intel Pentium platform. Using the ACELP net-adapted packetization method, it
is able to minimize the impact of errors and significantly improve the error
correction possibilities in case of data-packet loss. This codec uses frame
concatenation and interlacing to more efficiently encode data. In Windows
Media Encoder, ACELP.net can be used to compress audio to bandwidths ranging
from 5 Kbps to 16 Kbps. This codec is most useful for encoding low bit rate
voice content.
After content has been sufficiently compressed, the data must be formatted
so that it can be easily streamed over a network. To create Windows Media
content for streaming, or downloading as a .wma file, the content is encoded
in ASF."

Anyone know what happen. How can I fix it if users don't have window media
9?

Thanks

Isabella
 
Back
Top