FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Using this HTTP handler you can easily FLV streaming downloads just like video.google.com does. All you need is to install on your IIS 5.0/6.0 the following HTTP handler and to get this to work correctly, you will need to make sure that IIS handles request for .flv files. In your site's properties, click the "Home directory tab" and click the "Configuration" button. You'll get a form like this:

IIS Configuration step 1

Add the entry for .flv, click edit, and copy the path in the executable field. This is the aspnet_isapi.dll for the current version of the .NET Framework of your virtual site. Cancel out of that dialog and click "add." Paste the path into the executable, use the extension .flv and set your verbs limited to "GET, POST, HEAD, DEBUG" like this:

IIS Configuration step 2


Now any request for a .flv file on the site will be handled by ASP.NET. Since the server-wide machine.config file doesn't specify what class should handle the request, a default handler is used unless we add the following lines to the web.config file:

Web.config

    <httpHandlers>        
           verb="*" path="*.flv" type="FLVStreaming" />
    <
/httpHandlers>

FLVStreaming.cs


using System;
using System.IO;
using System.Web;

public class FLVStreaming : IHttpHandler
{

    // FLV header
    
private static readonly byte[] _flvheader = HexToByte("464C5601010000000900000009");

    public FLVStreaming()
    {
    }

    
public void ProcessRequest(HttpContext context)
    {
        
try
        
{
            
int pos;
            
int length;

            
// Check start parameter if present
            
string filename = Path.GetFileName(context.Request.FilePath);

            
using (FileStream fs = new FileStream(context.Server.MapPath(filename), FileMode.Open, FileAccess.Read, FileShare.Read))
            {
                
string qs = context.Request.Params["start"];

                
if (string.IsNullOrEmpty(qs))
                {
                    pos = 0;
                    length = Convert.ToInt32(fs.Length);
                }
                
else
                
{
                    pos = Convert.ToInt32(qs);
                    length = Convert.ToInt32(fs.Length - pos) + _flvheader.Length;
                }

                
// Add HTTP header stuff: cache, content type and length        
                
context.Response.Cache.SetCacheability(HttpCacheability.Public);
                context.Response.Cache.SetLastModified(DateTime.Now);

                context.Response.AppendHeader("Content-Type", "video/x-flv");
                context.Response.AppendHeader("Content-Length", length.ToString());

                
// Append FLV header when sending partial file
                
if (pos > 0)
                {
                    context.Response.OutputStream.Write(_flvheader, 0, _flvheader.Length);
                    fs.Position = pos;
                }

                
// Read buffer and write stream to the response stream
                
const int buffersize = 16384;
                
byte[] buffer = new byte[buffersize];
                
                
int count = fs.Read(buffer, 0, buffersize);
                
while (count > 0)
                {
                    
if (context.Response.IsClientConnected)
                    {
                        context.Response.OutputStream.Write(buffer, 0, count);
                        count = fs.Read(buffer, 0, buffersize);
                    }
                    
else
                    
{
                        count = -1;
                    }
                }
            }
        }
        
catch (Exception ex)
        {
            System.Diagnostics.Debug.WriteLine(ex.ToString());
        }
    }

    
public bool IsReusable
    {
        
get return true; }
    }

    
private static byte[] HexToByte(string hexString)
    {
        
byte[] returnBytes = new byte[hexString.Length / 2];
        
for (int i = 0; i < returnBytes.Length; i++)
            returnBytes[i] = Convert.ToByte(hexString.Substring(i * 2, 2), 16);
        
return returnBytes;
    }

}

All you need now to stream your favorite FLV movies is a custom-made player which is fetching the contents passing to the request the ?start= parameter in order to seek the current position inside the video file.

Fabian Topfstedt has one available onto his site (get the player and place it in your site document root)

To use Fabian player you have to embed the following HTML code inside your page:

<object 
  classid
="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
  
codebase
="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0
  
width="336" 
  
height
="297">    
  <
param name="movie" value="scrubber.swf?file=http://&bufferTime=3&autoStart=false" /
>    
  <
param name="quality" value="high" /
>    
  <
embed src
="scrubber.swf?file=http://&bufferTime=3&autoStart=false" 
    
quality
="high" 
    
pluginspage
="http://www.macromedia.com/go/getflashplayer" 
    
type
="application/x-shockwave-flash" 
    
width
="336" 
    
height="297"></embed
>  
<
/object
>

The video file was converted into a .flv using of ffmpeg and indexed with flvtool2 in order to add the correct metadata inside the FLV file.

ffmpege.exe -i test.avi test.flv
flvtool2.exe -U test.flv

You can download here solution and project files or if you have the chance check online demo here.

An ASP.NET v1.1 version is available here.

Feel free to contact me for any information.

 

Technorati tags: , , , , , ,

posted @ mercoledì 4 ottobre 2006 22.13

Print

Comments on this entry:

# re: FLV Streaming with ASP.NET 2.0 / IIS and HTTP handler

Left by Mauro Servienti at 04/10/2006 22.47
Gravatar
Ciao,

cortesemente potresti chiedere ad Andrea (http://blogs.ugidotnet.org/pape) di spostare il tuo feed sul "muro" in inglese, oppure postare in italiano ;-)

Inoltre per la fruibilità sarebbe meglio se sul muro arrivasse solo un abstract del post.

Bel post comunque, argomento interessante.

Grazie, ciao
Mauro

# re: FLV Flash video streaming with ASP.NET 2.0 / IIS and HTTP handler

Left by Tim at 12/10/2006 21.14
Gravatar
Can I use this in our WebTV solution. How is the license agreement?

# re: FLV Flash video streaming with ASP.NET 2.0 / IIS and HTTP handler

Left by ramkumar at 01/11/2006 6.55
Gravatar
plz how to run ur code on asp.net1.1

# re: FLV Flash video streaming with ASP.NET 2.0 / IIS and HTTP handler

Left by Francesco Meani at 02/11/2006 2.06
Gravatar
Hi Ramkumar, the code can be easily modified in order to run on ASP.NET 1.1 environment.

Let me know if you need any help.

# re: FLV Flash video streaming with ASP.NET 2.0 / IIS and HTTP handler

Left by FADI at 09/11/2006 16.11
Gravatar
Congratulations on this code.

this was the only solution that i have found on the internet. i hope this works as intended.

# re: FLV Flash video streaming with ASP.NET 2.0 / IIS and HTTP handler

Left by philips at 17/11/2006 8.17
Gravatar
Hello sir,
this article is really superb but when i try to use it on .net 1.1 nothing is displayed. can u please show me how to use it on .net 1.1

# re: FLV Flash video streaming with ASP.NET 2.0 / IIS and HTTP handler

Left by JH at 22/11/2006 15.10
Gravatar
This works great w/ IE but doesn't appear to work correctly with Netscape or FireFox. Do you have a fix or solution to support multiple browsers.

# re: FLV Flash video streaming with ASP.NET 2.0 / IIS and HTTP handler

Left by JH at 22/11/2006 15.19
Gravatar
never mind... my flash player was an older version that did not support FLV streaming... after updating the player it works great... super job!

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by kfra at 26/11/2006 13.30
Gravatar
Hi all, here you can find a ASP.NET v1.1 compatible solution:

FLV Flash video streaming with ASP.NET v1.1, IIS and HTTP handler

http://blogs.ugidotnet.org/kfra/archive/2006/11/26/57225.aspx

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Zac at 08/12/2006 2.10
Gravatar
i have installed the code to my windows xp machine and i can get the player to display... but when i click play, it stalls on buffering video. it just sits there and doesn't appear to be loading anything. Any ideas?

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Murat Kebabci at 11/12/2006 20.57
Gravatar
There's a typo in default.htm, look at its source, correct the filename from golfers.flv.flv to golfers.flv in Flash file's object and embed parts then it'll probably work

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Francesco Meani at 11/12/2006 21.05
Gravatar
Hi Murat,
thanks for you advice. I fixed the typoo in the default.htm (both 2.0 and 1.1 solution) and repack it.

Francesco.

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Zac at 15/12/2006 5.49
Gravatar
that fixed my error too! thankyou!

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by jd6strings at 28/12/2006 22.50
Gravatar
Awesome! What's a good solution for encoding to FLV on the fly? I'd like to take video from an Axis camera, encode to FLV and use the above solution. Thanks!

# FLV Flash video streaming ASP.NET v1.1 (code behind .vb)

Left by Bhavesh at 08/01/2007 14.08
Gravatar
Hi sir,


I have entered below code in web.config file

<httpHandlers>
<add verb="*" path="*.flv" type="MyTest.FLVStreaming, MyTest" />
</httpHandlers>

And convert FLVStreaming.cs file code into .vb like:

Public Class FLVStreaming : Implements IHttpHandler

But it doesn't play the .flv file

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Paris at 11/01/2007 18.02
Gravatar
Hi,

Great article! got it working when viewing a video, I can't move along the timeline to scroll to a different part of the video. When I try, the video just restarts from the beginning. Any feedback would be greatly appreciated.

Thanks,

Paris.

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Francesco Meani at 14/01/2007 22.55
Gravatar
Hi Paris,
did you indexed with flvtool2 to your .flv in order add the correct metadata (keyframes) to the video file?

EG: flvtool2.exe -U test.flv

Let me know,

Francesco

# ffmpeg and flvtool2

Left by shawn at 22/01/2007 18.46
Gravatar
regarding ffmpeg and flvtool2... I saw the downloads for these... what / how do I use them at the command line? Do I need to install both of these apps? or just place them where my command line runs? if so, which files do I place? all of them? Basically, please talk me through it from download to conversion commands... thanks!

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by charan at 26/01/2007 19.24
Gravatar
flv is missing in my iis.wht am i supposed to do

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Darren McCready at 09/02/2007 1.08
Gravatar
Would it be possible to add this player to a full flash website and make it dynamic, say to read a folder of movies?

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Bala at 15/02/2007 13.02
Gravatar
Hi,
After doing everything that are suggested, still it dosn't play the flv file. It stops at 'Buffering Video'. What could be the reason.

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Sniipe at 17/02/2007 15.15
Gravatar
I get the same error as Bala.

http://www.wiredkind.com/default.htm

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Francesco Meani at 17/02/2007 20.33
Gravatar
Hi,
the html code inside the page:

<param name="movie"
value="scrubber.swf?file=http://www.wiredkind.com/1.flv&bufferTime=3&autoStart=false"">http://www.wiredkind.com/1.flv&bufferTime=3&autoStart=false" />

invokes a non existing file http://www.wiredkind.com/1.flv raising a 404 error.

Could you check it please?

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by JEDIMAST14 at 20/02/2007 1.38
Gravatar
You guys besides the MIME TYPE, you need to enable ASP.NET ALLOW , withtout that it will not work

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Sniipe at 20/02/2007 16.24
Gravatar
The file http://www.wiredkind.com/1.flv exists, but I can't type it directly in. Its a widows hosting server, what should I ask them to do to get it working?

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Ashit at 23/02/2007 13.40
Gravatar
I tried to use code and also installed flash media server 2 ,also embedded code in .aspx ,but i can't get any buffering in buffer video.Can you pls. tell me what is missing.
I have not installed lightpd,if its necessary can you tell how its to be installed and where to keep

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Bunajim at 25/03/2007 20.28
Gravatar
Can this player support sessions so that only logged in users will be able to view the movie?

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Andri at 27/03/2007 12.45
Gravatar
This is a fantistic solution if it works.
But something must be missing. I did everything in the tutorial (using the source files) and yet i only see the player with a black screen (buffering video). It doesn't play.
I assume that the FLV in the source files (golfers.flv) has already been indexed with flvtool2. I still downloadied it but it flashed a command prompt and disappeared (is it for linux).

I really want to make this work as this eliminates the need for Flash Media Server or Red5 (which needs to be installed on the remote server/not possible in my case). I would be most grateful for clarification.

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by DMalach at 11/04/2007 6.05
Gravatar
I tried in stall your demo app. When I goto above URL I get the viewer, but it says video not found.

When I try surf to http://74.92.208.172/malach/golfers.flv, i get a ASP.NET error saying "Could not load type 'FLVStreaming'."

Do you have any ideas what I'm doing wrong?

Thanks (dave@malach.com)

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by parul jain at 13/04/2007 15.03
Gravatar
Hey
nice script. when i try to embed ur script m getting this error
Error
Class 'FLVStreaming' must implement 'ReadOnly Property IsReusable() As Boolean' for interface 'System.Web.IHttpHandler'. Implementing property must have matching 'ReadOnly' or 'WriteOnly' specifiers.
D:\mypractice\video2flash\App_Code\FLVStreaming.vb
http://localhost/video2flash/
can you tell me whts the reason behind this?

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by beyazcennet at 15/04/2007 2.43
Gravatar
page not looding....
the waiting Page

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by jack at 17/04/2007 11.44
Gravatar
Try this video to flv sdk at http://www.flash-video-mx.com/flv_encoder_sdk/

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Manish Thouri at 18/04/2007 14.11
Gravatar
brother
its excellent help u have provided online...
One query....
I am working on asp.net 2.0 application. I have list of .flv files in a GridView Control of asp.net.

I wish to play the chosen .flv file on the same page.

I tried using FLVStreaming.cs but no luck.

Pls Help.

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Yoki at 19/04/2007 9.37
Gravatar
I need to determine the width and height of the original video files (not the flv but the avi or mov or ...) does anyone knows how to do this?

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Tim at 23/04/2007 15.59
Gravatar
Looks great but can i use the httphandler in selfmade webserver or do i have to rewrite it, tips are welcome :)

# How to stream a movie in ASP.NET? - JodoHost Forums

Left by at 25/04/2007 23.06
Gravatar
How to stream a movie in ASP.NET? - JodoHost Forums

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by vishal at 04/05/2007 18.33
Gravatar
Amazing post..thank you very much for this post.

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Gianni at 10/05/2007 15.26
Gravatar
Where can i find scrubber.fla modify for asp.net ?

I mean , the only one i have found in internet is for load a php file but the in the project fo asp.net there's only the .swf without the source.

thanz in advance

Dove posso trovare il file .fla visto che nel progetto asp.net c'è solo il file .swf e non il sorgente?

grazie

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Francesco Meani at 12/05/2007 12.20
Gravatar
Gianni,
you can find .fla for the scrubber player directly from
Fabian Topfstedt's pages:

FLV-Scrubber 1.0
http://www.topfstedt.de/weblog/?p=145

FLV-Scrubber 2.0
http://www.topfstedt.de/weblog/?page_id=208

Best,

Francesco.

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Gianni at 14/05/2007 11.13
Gravatar
thanx a lot

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by greg at 15/05/2007 12.19
Gravatar
Hey,

It's working great with golfers.flv, but with a bigger file (240MB) it plays correctly at the beginning but i can no longer use seek function.

I guess it's a buffer size parameter somewhere between IIS and .NET, but i'm clueless at the moment.

Any idea on this ?

Thanks,

greg.

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Francesco Meani at 15/05/2007 13.29
Gravatar
Gregg,
be sure to index file with flvtool2 (flvtool2.exe -U <filename>.flv) as described in the post.

Best,

Francesco.

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by JJ at 24/05/2007 23.19
Gravatar
I can't get this to work. Is anyone willing to help. I followed the tutorial word for word but it wont play the golfers.flv file. It just says "buffering" and does nothing! I've tryed loading it through IIS and through VWD no solution.

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by jj at 25/05/2007 10.54
Gravatar
I got it working....awesome! Thanks for sharing!

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by chall3ng3r at 07/06/2007 3.36
Gravatar
hi,

i got it working on the first go. its coool.

i have only one feature request. i also tried myself, but i'm stuck with another project, so not getting enough time to play around with that.

on a post on flashcomguru.com, someone posted a nice solution for controlling bandwidth.
http://www.flashcomguru.com/index.cfm/2005/11/2/Streaming-flv-video-via-PHP-take-two#c0320B8CA-D611-38B6-16B9263706E7E41E

all i want to do is implement same in .net version. currently when flv is requested, the server returns th flv at full speed.

can anyone help me adding bandwidth throtteling in this script?

tia,

// chall3ng3r //

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by MAKTECK123 at 08/06/2007 10.27
Gravatar
Plz help!!,
in this article, U use Shockwave player i want the same thing with FLV player which is install on my local machine
also how convert and upload the video's in .flv format

# Asp.net FMS 开发视频网站

Left by 秀才 at 13/06/2007 8.59
Gravatar
Asp.net FMS ??????

# FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Kris - TECH at 13/06/2007 10.19
Gravatar
Reference from : http://blogs.ugidotnet.org/kfra/archive/2006/10/04/50003.aspx Using this HTTP handler

# Asp.net FMS 开发视频网站

Left by 清风涤尘 at 19/06/2007 9.00
Gravatar
Asp.net FMS ??????

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by dotNetGeek at 20/06/2007 7.48
Gravatar
This is a cool article on streaming flv files on the web. What i actually want to achieve is to control the bandwidth of the rate at which the flv file is streamed from the server to the client. Kindly help me on this..

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by gurpreet at 27/06/2007 9.03
Gravatar
where can i download ffmpege.exe

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Francesco Meani at 30/06/2007 15.01
Gravatar
Here you can find unofficial builds for Windows platform:

http://arrozcru.no-ip.org/ffmpeg_builds/

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by MM at 19/07/2007 21.16
Gravatar
Is it possible to get the flv from a CDN?

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Neil at 23/07/2007 17.49
Gravatar
Hi, how do I execute these commands in a aspx page: ffmpege.exe -i test.avi test.flv AND flvtool2.exe -U test.flv?

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Neil at 23/07/2007 17.49
Gravatar
Hi, how do I execute these commands in a aspx page: ffmpege.exe -i test.avi test.flv AND flvtool2.exe -U test.flv?

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by vbn at 07/08/2007 14.11
Gravatar
comment........

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by bmongtangco at 13/08/2007 10.13
Gravatar
How can you hide the .flv in asp.net? like what youtube.com does with the flv's....?

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Selvakumar at 14/08/2007 15.39
Gravatar
Hi,
The article is very nice. Many webdeveloper get benefit of this. Can you tell me how can i put share my code part here?

Regards,
Selva
www.selvaonline.com

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by yiliu at 17/08/2007 9.23
Gravatar
我想实现FLASH视频直播,
FMS要安在服务器上吧?
我现在能把本机的摄像头视频内容抓到FLASH中,
在本地机演示可以,
本地的局网也可以
但放到公网上,怎么做,就不会了,
正在找资料,
我的功能要求较简单
只要把摄像头的视频内容公开到网上,
这样我每天在做什么,家人都可以看到了。

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by TArek at 17/08/2007 14.12
Gravatar
do you know of any mpeg/avi to flash video converters for .net?

thanks

joompinc@gmail.com

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by David Brosnan at 21/08/2007 20.48
Gravatar
Hi. Thanks for the information, was a great help. I have videos uploading and converting to flv and playing on my website fine.

I am trying to avoid buffering the videos for too long before they start to play (4 seconds max) but i can only manage this by having very poor quality flv files. Here is the ffmpeg command i am using.
ffmpeg.exe -i mympgvideo.mpg -ar 11025 -ab 32 -b 300 -r 20 -f flv -s 350*210 " + myflvvideo.flv

This leads to poor quality videos. Is there any way of increasing the quality and still allow the video to play without having to pause for buffering when playing. Any help would be great. Thanks

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by akennedy at 22/08/2007 20.12
Gravatar
i'm trying to implement this on my localhost, i have IIS running, and have made the change to the framework (i have also restarted IIS). I've downloaded the files and placed them in my wwwroot directory. When i test the sample it never gets past the black screen and buffering message. can anyone shed some light?

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Jacob at 23/08/2007 22.25
Gravatar
I'd like to add a comment, since this is the best serving-FLV-from-ASP.NET search result page out there. I was trying a similar approach, except instead of using an HTTP handler, I wanted to serve the FLV from a .aspx page. After much effort, I finally found out that the Adobe Flash video player checks for the file extension .flv!

I did find a workaround, though. By adding something like kludge=.flv to the end of the query string, the video player's stupid prerequisite was satisfied. With this solution, you don't need to muck with IIS's settings to serve FLV from ASP.NET (a big plus if a separate team is doing the deployment).

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Asif Iqbal at 24/08/2007 16.56
Gravatar
Hey, I get the following error :

Parser Error Message: Could not load type 'FLVStreaming'.

Source Error:


Line 39:
Line 40: <httpHandlers>
Line 41: <add verb="*" path="*.flv" type="FLVStreaming" />
Line 42: </httpHandlers>
Line 43:


Source File: C:\Inetpub\wwwroot\Trial\web.config Line: 41

Can anybody tell me what's going wrong ?

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Hareram Singh at 25/08/2007 10.50
Gravatar
i have installed the code to my windows xp machine and i can get the player to display... but when i click play, it stalls on buffering video. it just sits there and doesn't appear to be loading anything. Any idea?


There's a typo in default.htm, look at its source, correct the filename from golfers.flv.flv to golfers.flv in Flash file's object and embed parts then it'll probably work

the fileanme was initially golfers.flv in the root folder.

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by vladim at 26/08/2007 12.48
Gravatar
nuo manoe serio

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Simran at 12/09/2007 8.56
Gravatar
How i can do Video Streaming using Flash Media Server.. that will stream files without downloading at client side??

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by jay at 22/09/2007 7.45
Gravatar
how to stream video in LAN

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by APA at 25/09/2007 7.32
Gravatar
Can't stream large files (200MB+). They just don't play on the cline machine and the server memory usage spike to larger han the requested file size. What's taking up all the memory?

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by chaitanya at 26/09/2007 11.03
Gravatar
That is realy nice I want Flash player to concatinate with asp.net 2.0 for Playing the vedios if Any easy solution then send me

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Guisella at 27/09/2007 1.36
Gravatar
How can I prevent the file being cached in the client computer, so this code works like a really streaming server? I don't want by the time the video is completed the file can be located in the temp files. Any one have a clue on this?

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by sam at 27/09/2007 14.44
Gravatar
Error 2 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. C:\Inetpub\wwwroot\FLVStreaming\wwwroot\Web.Config 26

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by san at 29/09/2007 7.41
Gravatar
Hi All. can some please guide me...i m planning to run IIS server on my own computer for to watch the video just for me and my friends...to watch movie and stuff.....but how can i achieve this...i have installed the IIS but now further i dont what to do.....like what do i need......
Thanks All.

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by chai at 09/10/2007 5.05
Gravatar
在哪里下载

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Haiha at 10/10/2007 11.39
Gravatar
sinhv

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by cow at 14/10/2007 19.45
Gravatar
http://steveorr.net/articles/Flasher.aspx

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by NamND at 19/10/2007 6.52
Gravatar
Thanks, alot of

# Hosting FLV files with ASP.NET 2.0 and IIS

Left by Pat Gannon's Blog at 31/10/2007 4.54
Gravatar
Hosting FLV files with ASP.NET 2.0 and IIS

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Prakash Patani at 05/11/2007 11.50
Gravatar
In the FLVStreaming.cs one line is there ,
string qs = context.Request.Params["start"];

this parameter is passed from where.??
i m using xml file which include all the flv file list and passed to the flash player object.

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by ahmed at 05/11/2007 14.09
Gravatar
hi all
ihave ip cam Dlink (dcs 5300)
i want connect this camera with this application
what is the requirment
thx alot

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by kewlman at 06/11/2007 8.32
Gravatar
I want to make the following as part of my embed code
<param name="movie" value="http://www.mytube.com/v/5P6UU6m3cqk"></param>

Does anyone know what are the changes i will need to do in the FLVStreaming.cs to support this format

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Him at 07/11/2007 11.48
Gravatar
Can anyone provide a VB.net version of the FLVStreaming class.

Thank you

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Ravikumar P V S at 15/11/2007 11.28
Gravatar
Hi,
I am developing a web site where user should play audio/video. But user should not download any audio/video file from the player.
And can you give me the code in vb.net, which i have implement to use adobe flash player component? How to encode any audio/video to .flv format? how to do this programmetically. Please send me the code.

Ravi, Bangalore, India

# re: FLV Flash video streaming with ASP.NET 2.0, IIS and HTTP handler

Left by Nancy at 28/11/2007 18.55
Gravatar
I love this. Thanks.

I put it in a popup page that links from the default.aspx page. When the video object is not embedded, the popup windows look alike, but when I add it, in IE it's really small and in Firefox it's exactly the size I want it. How do I address the difference in browsers?

Thanks for your hel