Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 22nd, 2003, 11:16 AM
Registered User
 
Join Date: Nov 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to display video file from database


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


 
Old November 22nd, 2003, 01:13 PM
Registered User
 
Join Date: Nov 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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 ACELP® .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







Similar Threads
Thread Thread Starter Forum Replies Last Post
how to view a video with flv file rahulcbr PHP How-To 1 September 25th, 2008 01:21 AM
Video buffering, streaming, and displaying video t CurvyBabe C# 1 March 9th, 2007 01:17 PM
WMSDK (How to display text on video frame) arun.sharma.kumar Visual C++ 0 February 14th, 2007 05:49 AM
Video Stream Display using SWT nkrust Java GUI 1 June 9th, 2006 10:39 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.