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 @ Wednesday, October 4, 2006 10:13 PM

Print

Comments on this entry:

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

Left by Mauro Servienti at 10/4/2006 10:47 PM
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 11/1/2006 6:55 AM
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 11/2/2006 2:06 AM
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 11/17/2006 8:17 AM
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 11/22/2006 3:10 PM
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 11/22/2006 3:19 PM
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 11/26/2006 1:30 PM
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 12/11/2006 8:57 PM
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 12/11/2006 9:05 PM
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 1/8/2007 2:08 PM
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 1/26/2007 7:24 PM
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 2/15/2007 1:02 PM
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 2/17/2007 3:15 PM
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 2/23/2007 1:40 PM
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 3/27/2007 12:45 PM
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 4/15/2007 2:43 AM
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 4/23/2007 3:59 PM
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 5/14/2007 11:13 AM
Gravatar
thanx a lot

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

Left by Francesco Meani at 5/15/2007 1:29 PM
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 6/13/2007 10:19 AM
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 6/20/2007 7:48 AM
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 6/27/2007 9:03 AM
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 6/30/2007 3:01 PM
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 8/7/2007 2:11 PM
Gravatar
comment........

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

Left by David Brosnan at 8/21/2007 8:48 PM
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 9/22/2007 7:45 AM
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 9/27/2007 2:44 PM
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 9/29/2007 7:41 AM
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 10/9/2007 5:05 AM
Gravatar
在哪里下载

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

Left by Haiha at 10/10/2007 11:39 AM
Gravatar
sinhv

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

Left by cow at 10/14/2007 7:45 PM
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 10/19/2007 6:52 AM
Gravatar
Thanks, alot of

# Hosting FLV files with ASP.NET 2.0 and IIS

Left by Pat Gannon's Blog at 10/31/2007 4:54 AM
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 11/6/2007 8:32 AM
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 12/10/2007 8:22 AM
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 12/27/2007 4:40 AM
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 1/7/2008 3:24 PM
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 1/11/2008 1:20 PM
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 1/15/2008 10:00 PM
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 1/23/2008 3:56 AM
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 1/24/2008 9:39 PM
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 3/3/2008 8:27 PM
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 3/29/2008 6:09 AM
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 5/9/2008 8:42 AM
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 5/16/2008 9:11 AM
Gravatar
goamfgqh - Google Search

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

Left by Lakshman at 5/18/2008 5:18 PM
Gravatar
Thanks for the videos

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

Left by satish at 6/10/2008 7:58 AM
Gravatar
this is new for me

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

Left by rao at 7/1/2008 8:28 AM
Gravatar
very good article

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

Left by gab at 7/4/2008 2:13 PM
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 8/1/2008 11:21 AM
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 8/26/2008 3:54 PM
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 8/26/2008 3:57 PM
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 8/27/2008 8:17 AM
Gravatar
your demo is not working ...

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

Left by nagarjuna at 8/27/2008 9:50 AM
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 8/27/2008 8:20 PM
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 8/31/2008 10:46 AM
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 9/1/2008 5:43 AM
Gravatar
Awesome! Thanks dude!

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

Left by piya at 11/3/2008 2:16 PM
Gravatar
great. thanks

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

Left by Peter Juliano at 11/5/2008 1:04 AM
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 12/16/2008 1:16 PM
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 1/7/2009 12:08 PM
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 2/27/2009 5:02 PM
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 6/25/2009 9:40 AM
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 10/17/2009 10:32 AM
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 10/28/2009 3:56 PM
Gravatar
The same thing of Joe Fronsee happens to me too.

# source of scrubber.swf

Left by tomjoy at 12/28/2009 5:00 AM
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 2/14/2010 11:32 AM
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 3/15/2010 3:14 AM
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 3/16/2010 9:11 AM
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 4/1/2010 8:38 PM
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 4/24/2010 12:19 PM
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 4/29/2010 6:30 AM
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 5/21/2010 11:33 AM
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 8/26/2010 2:05 PM
Gravatar
Tried it several differnet ways, finally got it and now it works! Thanks much

# fangtie

Left by qq at 8/31/2010 5:04 PM
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 12/9/2010 3:45 AM
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 12/19/2010 11:33 AM
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 12/22/2010 7:45 AM
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 12/23/2010 9:57 AM
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 1/1/2011 11:40 PM
Gravatar
Welcome to my site : Realitystorm.com

# blind spot mirror

Left by atis at 1/29/2011 5:56 PM
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 2/24/2011 4:46 PM
Gravatar
thanks!!!

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

Left by Pingback/TrackBack at 2/25/2011 10:39 PM
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 3/7/2011 3:47 PM
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 3/11/2011 5:44 AM
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 3/17/2011 11:50 AM
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 5/10/2011 11:20 PM
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 5/22/2011 12:20 PM
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 5/30/2011 10:21 PM
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 6/1/2011 3:39 PM
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 6/2/2011 8:54 AM
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 6/14/2011 4:27 PM
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 6/24/2011 11:33 PM
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 7/7/2011 4:13 AM
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 7/9/2011 3:15 PM
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 7/21/2011 3:21 PM
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 7/21/2011 7:27 PM
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 7/22/2011 3:16 PM
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.
«October»
SunMonTueWedThuFriSat
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789