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);
                        context.Response.Flush(); 

                        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 @ giovedì 5 ottobre 2006 01:13

Print

Comments on this entry:

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

Left by Mauro Servienti at 05/10/2006 01: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 ramkumar at 01/11/2006 08: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 04: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 philips at 17/11/2006 10: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 17: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 17: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 15: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 Murat Kebabci at 11/12/2006 22: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 23: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.

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

Left by Bhavesh at 08/01/2007 16: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 charan at 26/01/2007 21: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 Bala at 15/02/2007 15: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 17: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 Ashit at 23/02/2007 15: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 Andri at 27/03/2007 15: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 beyazcennet at 15/04/2007 05:43
Gravatar
page not looding....
the waiting Page

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

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

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

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

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

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

Best,

Francesco.

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

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

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

Left by dotNetGeek at 20/06/2007 10: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 12: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 18: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 vbn at 07/08/2007 17:11
Gravatar
comment........

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

Left by David Brosnan at 21/08/2007 23: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 jay at 22/09/2007 10:45
Gravatar
how to stream video in LAN

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

Left by sam at 27/09/2007 17: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 10: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 08:05
Gravatar
在哪里下载

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

Left by Haiha at 10/10/2007 14:39
Gravatar
sinhv

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

Left by cow at 14/10/2007 22: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 09: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 06: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 kewlman at 06/11/2007 10: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 srinivas at 10/12/2007 10:22
Gravatar
Can any please tell me how to customize scrubber.swf with volume controls ,play,pause,start and fulscreen options in asp.net 2.0

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

Left by zhou at 27/12/2007 06:40
Gravatar
I would like to find a video Web site development in the entire process code:
Only the most basic functions:
1, online video, dialogue
2, code asp.net (2.0)
Thanks!

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

Left by Nitin at 07/01/2008 17:24
Gravatar
Hi

In my web application i want that user upload wmv,avi, etc files and on fly it convert it in flv nad save it in a folder.

I m unable to incoprate this code in my site. i also did not understand the use of
ffmpege.exe -i test.avi test.flv
flvtool2.exe -U test.flv
and from where i get it.

Pleae guide me

Thanks & Regards
Nitin

# how to upload flv files using dot net 2.0

Left by toks at 11/01/2008 15:20
Gravatar
please help me on steps necessary to upload flv files from an aspx form to the iis server

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

Left by DotNetKicks.com at 16/01/2008 00:00
Gravatar
You've been kicked (a good thing) - Trackback from DotNetKicks.com

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

Left by T at 23/01/2008 05:56
Gravatar
This is a cool post. Thanks for the info
btw, just wondering would you know how to extract a thumbnail from an flv in .net

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

Left by Elian at 24/01/2008 23:39
Gravatar
thanks a lot, it works perfect

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

Left by Randhir at 03/03/2008 22:27
Gravatar
I am create the new recording web site ans using the mci component but problem on the server .I hope ur help the problem

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

Left by vijendra at 29/03/2008 08:09
Gravatar
Please guide me about flvtool2
(flvtool2.exe -U <filename>.flv)
How can I use it in asp.net page
Thanks in advance

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

Left by Dennis at 09/05/2008 11:42
Gravatar
Hello i tried to convert the .cs file to .vb file. the only thing that is not working is scrubbing the movie stops playing.

Here is the example of the .vb can anybody tell me what's wrong

Imports Microsoft.VisualBasic
Imports System
Imports System.IO
Imports System.Web

Public Class FLVStreaming
Implements IHttpHandler
Private ReadOnly _flvheader() As Byte = HexToByte("464C5601010000000900000009") '"FLV\x1\x1\0\0\0\x9\0\0\0\x9"
Private Const buffersize As Integer = 16384


Public Sub New()

End Sub

Public ReadOnly Property IsReusable() As Boolean Implements System.Web.IHttpHandler.IsReusable
Get
Return True
End Get
End Property

Public Sub ProcessRequest(ByVal context As HttpContext) Implements System.Web.IHttpHandler.ProcessRequest

Try
Dim pos As Integer
Dim length As Integer

' Check start parameter if present
Dim filename As String = Path.GetFileName(context.Request.FilePath)

Using fs As New FileStream(context.Server.MapPath(filename), FileMode.Open, FileAccess.Read, FileShare.Read)
Dim qs As String = context.Request.Params("start")

If (String.IsNullOrEmpty(qs)) Then
pos = 0
length = Convert.ToInt32(fs.Length)

Else
pos = Convert.ToInt32(qs)
length = Convert.ToInt32(fs.Length - pos) + _flvheader.Length
End If



' 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())

'HttpContext.Current.Response.End()

' Append FLV header when sending partial file
If (pos > 0) Then
context.Response.OutputStream.Write(_flvheader, 0, _flvheader.Length)
fs.Position = pos
End If

' Read buffer and write stream to the response stream
Dim buffer(buffersize) As Byte
Dim count As Integer
count = fs.Read(buffer, 0, buffersize)
While (count > 0)

If (context.Response.IsClientConnected) Then

context.Response.OutputStream.Write(buffer, 0, count)
count = fs.Read(buffer, 0, buffersize)


Else

count = -1
End If
End While
context.Response.OutputStream.Close()
End Using

Catch ex As Exception
System.Diagnostics.Debug.WriteLine(ex.ToString())
End Try


End Sub

Public Function HexToByte(ByVal hexString As String) As Byte()
Dim returnBytes(hexString.Length / 2) As Byte

For i As Integer = 0 To returnBytes.Length - 1
returnBytes(i) = Convert.ToByte(hexString.Substring(i * 2, 2), 16)
Next

Return returnBytes
End Function



End Class

# goamfgqh - Google Search

Left by Pingback/TrackBack at 16/05/2008 12:11
Gravatar
goamfgqh - Google Search

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

Left by Lakshman at 18/05/2008 20:18
Gravatar
Thanks for the videos

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

Left by satish at 10/06/2008 10:58
Gravatar
this is new for me

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

Left by rao at 01/07/2008 11:28
Gravatar
very good article

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

Left by gab at 04/07/2008 17:13
Gravatar
what i want to do is to place in a web page all the videos i have on my server's video directory...

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

Left by vikas at 01/08/2008 14:21
Gravatar
hi,i m using flv player to play video file .its playing on only client not server.can i know the reason and solution.

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

Left by kunal at 26/08/2008 18:54
Gravatar
i try to play your demo but it can't play the golfers.flv file ..
for that any specific setting ...

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

Left by kunal at 26/08/2008 18:57
Gravatar
In my web application i want that user upload wmv,avi, etc files and on fly it convert it in flv nad save it in a folder.

I m unable to incoprate this code in my site. i also did not understand the use of
ffmpege.exe -i test.avi test.flv
flvtool2.exe -U test.flv
and from where i get it.

Pleae guide me

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

Left by happy at 27/08/2008 11:17
Gravatar
your demo is not working ...

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

Left by nagarjuna at 27/08/2008 12:50
Gravatar
how to video upload and download

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

Left by Ricardo Boaro at 27/08/2008 23:20
Gravatar
Hello

My name is Ricardo Boaro, I work for WWW.MRBOOL.COM as a technical editor. I would like to invite you to join our team of video classes producers.

Currently we need speakers (producers) for Java, .Net, Asp.Net and Delphi videos, but we are accepting suggestions if you know any other language.

Let me explain how it works

• Each video class must have at least fifteen minutes .
• The program that we use to record the video classes is Camtasia Studio.
• The payment for each video class sent, approved and published is US$ 80,00 (eighty dollars)
• The payment is done until the fifteenth day of the next month after the publishing
• THE PAYMENT IS POSSIBLE PAY TO YOU FOR THIS FORM PAYPAL

We would be pleased if you join our team. If you have any question or doubt, just get in touch with me.

Regards,

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

Left by eric at 31/08/2008 13:46
Gravatar
Can you pleasesend me the code in vb.net for ASP.net. I am getting full, it doens't compile becuase I always getting that context is not a member of FLVStreaming.
Please help

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

Left by Asim at 01/09/2008 08:43
Gravatar
Awesome! Thanks dude!

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

Left by piya at 03/11/2008 16:16
Gravatar
great. thanks

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

Left by Peter Juliano at 05/11/2008 03:04
Gravatar
Can the same be achieved with .WMV files using Silverlight as the browser

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

Left by Rakesh Kumar at 16/12/2008 15:16
Gravatar
I have used the code specified in this article and it works gr8. only problem, I found is that when the file is completely played to end then that file gets downloaded to the temporary internet folder.

But I don't want it to be downloaded in temp folder rather it should always get that file from the server.

Actually I need the functionality of the player as in You tube.

plz assist or provide some links where this is explained.

Thanks in Advance.

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

Left by sanjay at 07/01/2009 14:08
Gravatar
How do i call the FLVStreaming.cs file or when it will call. How to jump to perticular position using seek bar. When i start the program i cannot go to any perticular postition it remain on the start position itself.

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

Left by Andy at 27/02/2009 19:02
Gravatar
acromm,

I got around the huge memory requirement of buffering the entire response by putting a Response.flush(); inside the loop. I also added a Thread.Sleep statement in there that sends the 16KiB buffer no more than 8 times a second, thus throttling the bandwidth used by flv streams.

Great code to build upon! Thanks!

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

Left by ZAK at 25/06/2009 12:40
Gravatar
how to execute flvtool2 in c#
and ffmpeg in c#

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

Left by Kumar Gaurav at 17/10/2009 13:32
Gravatar
What if IIS is not installed.

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

Left by Ken Uston at 28/10/2009 17:56
Gravatar
The same thing of Joe Fronsee happens to me too.

# source of scrubber.swf

Left by tomjoy at 28/12/2009 07:00
Gravatar
I want get source of scrubber.swf

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

Left by WhiteSites at 14/02/2010 13:32
Gravatar
Awesome Tutorial. I am going to try to build a test site using this, before I integrate it with one my client's sites. If I can get it working I will post a tutorial for integrating this with IIS 7.5 on my blog.

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

Left by WhiteSites at 15/03/2010 05:14
Gravatar
I got it working perfectly. Thanks. I also modified the HTTP handler. I added detection of the video's bit rate and dynamic throttling to ensure it doesn't preload faster than the user needs ( helps to save on bandwidth.) Also I added a little exception that will ignore the throttling for the first 2 seconds of a new seek to ensure there is minimal delay when its seeking.

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

Left by Ranjit kumar at 16/03/2010 11:11
Gravatar
please tell me how can i upload all kind of vedio format and convert ino .flv file through streaming

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

Left by Hugh at 01/04/2010 23:38
Gravatar
Hello,

I am trying to stream Flash Video from IIS 6.0 and came across your article. However, I was unable to get your approach to work. However, I developed an aspx page that writes the file to browser successfully and opens Adobe Media Player on my desktop. However, I cannot get it to work with an embedded palyer on a webpage. Help!!!

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

Left by germany exports at 24/04/2010 15:19
Gravatar
Can you please send me the code in vb.net for ASP.net. I always getting that context is not a member of FLVStreaming.

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

Left by Prudential West at 29/04/2010 09:30
Gravatar
I got around the huge memory requirement of buffering the entire response by putting a Response.flush(); inside the loop. I also added a Thread.Sleep statement in there that sends the 16KiB buffer no more than 8 times a second, thus throttling the bandwidth used by flv streams.

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

Left by convert miles to km at 21/05/2010 14:33
Gravatar

This is my first time i visit here. I found so many interesting stuff in your blog. I guess I am not the only one having all the enjoyment here! keep up the good work.

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

Left by cdbet at 26/08/2010 17:05
Gravatar
Tried it several differnet ways, finally got it and now it works! Thanks much

# fangtie

Left by qq at 31/08/2010 20:04
Gravatar
led light led lights led lighting led bulb led bulbs led light bulbs led bulb light

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

Left by qwap at 09/12/2010 05:45
Gravatar
like this game called qwap or qwob . this qwob game is simple but difilcult enjaoy qwob flash game

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

Left by selfprep at 19/12/2010 13:33
Gravatar

Thanks for the list of apps. I will have to try and see if any of these will help me with the design and layout that I am wanting to do for a new website. I am excited to get in and start playing around with these different apps!

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

Left by testking at 22/12/2010 09:45
Gravatar
This is a good resource. Results seem to vary from other websites I've used. This seems to be pretty accurate.
70-299 | 70-350

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

Left by Roulette Gazette at 23/12/2010 11:57
Gravatar
Interesting post and thanks for sharing.Some things in here I have not thought about before.Thanks for making such a cool post which is really very well written.I will be referring all my friends about this article.Keep blogging.

# Welcome to my site : Realitystorm.com

Left by Pingback/TrackBack at 02/01/2011 01:40
Gravatar
Welcome to my site : Realitystorm.com

# blind spot mirror

Left by atis at 29/01/2011 19:56
Gravatar

Blind Spot Mirror system for the 21st Century. Maxi View attaches quickly and easily to any vehicle's side mirrors. The unique ball swivel allows it to be adjusted to suit any driver's viewing position and maximizes the view from both side mirrors. Only Maxi View will never block your vision. Maxi View was specifically designed to be placed in the upper inside corner of both side mirrors. That is where all mirrors must show some sky. The only part of the mirror on every vehicle that driver's don't use.

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

Left by sergio at 24/02/2011 18:46
Gravatar
thanks!!!

# radiossl.com &amp;raquo; Blog Archive &amp;raquo; Asp.net FMS develops video websites

Left by Pingback/TrackBack at 26/02/2011 00:39
Gravatar
radiossl.com &amp;raquo; Blog Archive &amp;raquo; Asp.net FMS develops video websites

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

Left by x ray tech at 07/03/2011 17:47
Gravatar
I must admit great code.
thanks.

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

Left by periodic inspection report at 11/03/2011 07:44
Gravatar
All you need is to install on your IIS 5.0/6.0 the following HTTP handler and to get this to work correctly periodic inspection report, gas safety certificate birmingham, corgi plumber birmingham

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

Left by iamram at 17/03/2011 13:50
Gravatar
Wow..plumber birmingham I really loved this post.
mot test My search is over because of this one. Thanks a lot.
mot cost

# Miniclip

Left by Miniclip at 11/05/2011 02:20
Gravatar
wow.. great post .. i love it!

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

Left by Plant hire at 22/05/2011 15:20
Gravatar
I'm having difficulty installing IIS 5.0/6.0 is there any help pages relevant thanks in advance

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

Left by Josue at 31/05/2011 01:21
Gravatar
EXCELENT!!! IT HELPED ME VERY MUCH, GREAT!!!
THANKS !!!!!!!!!!!!!!!!!!!!!!!!

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

Left by hydroponics at 01/06/2011 18:39
Gravatar
Thanks for the info had been having terrible problems finding hydroponics shops in leeds.

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

Left by Tim at 02/06/2011 11:54
Gravatar
I was actually having some problems with flash applications and the http handler. convert mkv to avi

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

Left by gerd hanly at 14/06/2011 19:27
Gravatar
I like your post! As it is instructive, it helps a lot. Keep posts like this coming. Your way here is amazing.
Sonicare FlexCare Plus

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

Left by painter and decorator london at 25/06/2011 02:33
Gravatar
Good info. Thanks

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

Left by How much do psychologists make at 07/07/2011 07:13
Gravatar
Great code share thanks, I'm gonna tweet this
medical assistant jobs in Michigan

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

Left by James at 09/07/2011 18:15
Gravatar
Very good stuff! Thanks!

Pharamcy

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

Left by energy healing at 21/07/2011 18:21
Gravatar
Your blog article is very interesting and fantastic, at the same time the blog theme is unique and perfect, great job. To your success. One of the more impressive blogs I’ve seen. Thanks so much for keeping the internet classy for a change.energy healing

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

Left by Massagistas at 21/07/2011 22:27
Gravatar
i having some problems with flash applications and the http handler. Your tutorial here has helped me a lot and I solved my problem. Now it all works smooth and fast.

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

Left by jump starters at 22/07/2011 18:16
Gravatar
Finally, an issue that I am passionate about. I have looked for information of this calibre for the last several hours. Your site is greatly appreciated.jump starters
Comments have been closed on this topic.
«dicembre»
domlunmarmergiovensab
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234