How to play Flash (.flv) files in ASP.net 2.0 .aspx

Rate It (2)

Last post 05-01-2009 2:04 AM by vikvish1. 24 replies.

Sort Posts:

  • How to play Flash (.flv) files in ASP.net 2.0 .aspx

    10-16-2007, 10:49 AM
    • Member
      4 point Member
    • higaurav
    • Member since 06-13-2007, 3:05 PM
    • Posts 34

    Hi all!

    Would appreciate if someone can guide me on how toenable playing Flash (.flv) media (Audio & Video) files on ASPX pages using Streaming. In particular I'm looking forward to uploading the code on a 3rd Party web hosting site and hence would not have the control to change/configure IIS settings.

    I've tried googling through for the same, but it seems that it requires a 3rd party control (not aware if there is a free ware option Smile ). Are there any other options/ workarounds available???

    NOTE: One may assume that I would already have .flv files available on the 3rd party web server (though if an on-the-fly conversion option is also available, with the constraints of not being able to change settings of 3rd party shared web hosting servers, it would be great).

    So its primarily a matter of being able to Play/Stream already avaiable Flash (.flv) files on an ASP.Net page hosted on a 3rd Party Web hosting Server.

    Looking forward to the expert advice.

    Thanks in advance!

    Best Regards!

    Gaurav.

     

  • Re: How to play Flash (.flv) files in ASP.net 2.0 .aspx

    10-16-2007, 11:17 AM
    • Participant
      1,221 point Participant
    • skurocks
    • Member since 09-19-2007, 7:58 AM
    • India
    • Posts 213
    Hi Grav I face the same issue and the solution is as follows 1. Open IIS Manager on the server
    2. Expand the Local Computer Server.
    3. Examine the 'Properties' of the local server
    4. Select the MIME Types tab.
    5. Click the 'New' button and enter the following:
    * Associated Extension box: .FLV
    * MIME Type box: flv-application/octet-stream
    6. Click Ok and restart IIS.
       Refer the below linkhttp://weblogs.asp.net/danlewis/archive/2007/10/01/iis-6-0-and-flash-streaming-flv.aspx

     

    Thanks
    Sku
    Please remember to click “Mark as Answer” on the post that helps you.
    This can be beneficial to other community members reading the thread.
  • Re: How to play Flash (.flv) files in ASP.net 2.0 .aspx

    10-16-2007, 11:33 AM
    • Member
      4 point Member
    • higaurav
    • Member since 06-13-2007, 3:05 PM
    • Posts 34

    Hi there!

    Thanks for the quick response. Not sure if i'd been able to clearly state the problem. I'll try once again.

    I need to host the application on a 3rd party shared web hosting server (godaddy . com), where I don't have control of the IIS server Manager console. So how do I go about it?

    Also, given your solution (which is only possible for server's that are under my direct control), what would be the UI control that I need to use on my ASPX page to be able to view/play the streamed Flash (.flv) files??

    Thanks in advance!

    Gaurav.

  • Re: How to play Flash (.flv) files in ASP.net 2.0 .aspx

    10-16-2007, 3:21 PM
    Answer
    • Participant
      1,221 point Participant
    • skurocks
    • Member since 09-19-2007, 7:58 AM
    • India
    • Posts 213

    Configuring the IIS is unavoidable you have to do that / request the hosting company to do that...
    Refer an article that supports this
    http://blogs.ugidotnet.org/kfra/archive/2006/10/04/50003.aspx


    To embed the flv file in the page you need to wrap that into a flash and refer to the below link for a example
    view the source
    http://www.alaron-nuclear.com/devsite/groundControl4.html

    Thanks
    Sku
    Please remember to click “Mark as Answer” on the post that helps you.
    This can be beneficial to other community members reading the thread.
  • Re: How to play Flash (.flv) files in ASP.net 2.0 .aspx

    10-24-2007, 7:40 AM
    • Member
      22 point Member
    • parulitengg
    • Member since 08-01-2007, 10:00 AM
    • India
    • Posts 11
    hi there I"ve to play flv files on my aspx page. In my project user will upload .wmv or .avi or .dat files which on fly will convert to .flv using ffmpeg tool also i"ve also get images of the uploaded video on fly now i want that my flv player will get its flv filename from the url and paly  the same .flv file.
    Regards
    Parul Jain
  • Re: How to play Flash (.flv) files in ASP.net 2.0 .aspx

    02-26-2008, 12:45 AM
    • Member
      145 point Member
    • c.ratnakar
    • Member since 11-19-2006, 6:21 AM
    • Hyderabad,India.
    • Posts 43

    hi

    im in need of ur help can u plz send me the code for that convertion of any video file to flv im in need of that,

     

    thanks in advance,

    Ratnakar,

    c.ratnakar@gmail.com 

     

    Ratnakar Choudry,

    c.ratnakar@gmail.com,

    Tension Nahi Leneka Apun Hai Nah...
  • Re: How to play Flash (.flv) files in ASP.net 2.0 .aspx

    02-26-2008, 2:18 PM
    • Participant
      1,900 point Participant
    • jkirkerx
    • Member since 12-07-2007, 7:52 AM
    • Huntington Beach CA
    • Posts 446

    I think you can get a quick head start with media handler, you can google it on the web.  They have a kit you can trial that sets you up.  It takes around a 2 weeks to really get it dialed in.

    To just embed a flash movie flv stream from you tube, you can embed this code with is class ready.
     

    Case "FLASH"
    							With Context.Response
    								'I need to find a way to control the movie
    								.Write("<div style=""padding-top: 20px; text-align: left; padding-left: 40px;"">" & vbCrLf)
    
    								.Write("<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=""" & MovieWidth & """ height=""" & MovieHeight & """>" & vbCrLf)
    								.Write("<param name=""movie"" value=""" & MovieURL & "?file=http://&bufferTime=10&autoStart=false"" /> " & vbCrLf)
    								.Write("<param name=""quality"" value=""high"" />" & vbCrLf)
    								.Write("<param name=""wmode"" value=""opaque"" />" & vbCrLf)
    								.Write("<param name=""menu"" value=""true"" />" & vbCrLf)
    								.Write("<embed src=""" & MovieURL & "?file=http://&bufferTime=10&autoStart=false"" quality=""high"" pluginspage=""http://www.macromedia.com/go/getflashplayer"" Type=""application/x-shockwave-flash""	width=""" & MovieWidth & """ height=""" & MovieHeight & """></embed>" & vbCrLf)
    								.Write("</object>" & vbCrLf)
    								.Write("</div>" & vbCrLf)
    							End With
      
  • Re: How to play Flash (.flv) files in ASP.net 2.0 .aspx

    06-12-2008, 7:16 AM
    • Member
      56 point Member
    • dotnetukguru
    • Member since 06-12-2008, 10:36 AM
    • Posts 21

    Thats a good example. I used this FLASH FLV Player and embedded it using the SWFObject.js method and it works a treat. I also had to add specific FLV HTTPHandlers in the web.config.

     

    Just a word of warning, I havent found a way to get it to work on IIS 7.0 (the streaming that is)

     

  • Re: How to play Flash (.flv) files in ASP.net 2.0 .aspx

    06-27-2008, 5:40 AM
    • Member
      8 point Member
    • parul_it_engg
    • Member since 06-27-2008, 8:01 AM
    • Posts 4

    How to upload a video file in asp.net? what i am doing is uploading a video and convert it to .flv file and extract a thumbnail for display. Its working very fine on localhost but on the server while uploading the video after sometime it always show the page with error page cannot be displayed. I searched for it but not get success. I "ve already changed my web.config settings to allow user upload heavy images. My settings are:

    <httpRuntime executionTimeout="240" maxRequestLength="2097151" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100"/>

     

    please help me out with this.

  • Re: How to play Flash (.flv) files in ASP.net 2.0 .aspx

    06-27-2008, 1:19 PM
    • Participant
      1,900 point Participant
    • jkirkerx
    • Member since 12-07-2007, 7:52 AM
    • Huntington Beach CA
    • Posts 446

    Upload, convert and extract 1 frame all at same time, or seperate stages with button click?

    I'm interested in your conversion and extraction.  I have the same thing, but I had to use the Media Handler DLL for conversion, and you have to buy the other DLL for the frame extraction.

  • Re: How to play Flash (.flv) files in ASP.net 2.0 .aspx

    07-11-2008, 5:31 AM
    • Member
      56 point Member
    • arunguptadch
    • Member since 04-22-2008, 7:46 AM
    • Posts 24

    sir i have .flv file in c:initpub/wwroot/test/images/flv i want to play it with vb.net whats are needed to play

    it please give me step to play it

    or the code you have written above where its write

    and how its work

    please give me details

    its urgent]

     

    arun gupta
  • Re: How to play Flash (.flv) files in ASP.net 2.0 .aspx

    07-11-2008, 5:45 AM
    • Member
      22 point Member
    • parulitengg
    • Member since 08-01-2007, 10:00 AM
    • India
    • Posts 11

    all the task on one button click. Its working fine now. You can see the same on www.hamarajahan.com  in videolibrary you can upload video. The problem with the server. Big Smile

    Regards
    Parul Jain
  • Re: How to play Flash (.flv) files in ASP.net 2.0 .aspx

    07-11-2008, 5:48 AM
    • Member
      22 point Member
    • parulitengg
    • Member since 08-01-2007, 10:00 AM
    • India
    • Posts 11

     see the link below

    http://www.aspnetflashvideo.com/

     

    i"ve used this control on www.hamarajahan.com .Its working fine with me.  Hope it help you also.

     

    Regards
    Parul Jain
  • Re: How to play Flash (.flv) files in ASP.net 2.0 .aspx

    07-11-2008, 12:05 PM
    • Participant
      1,900 point Participant
    • jkirkerx
    • Member since 12-07-2007, 7:52 AM
    • Huntington Beach CA
    • Posts 446

    It's just a html object.  The same one used in youtube videos.   

     

    'Get WebSite Server Name and convert to Absolute URL
              Dim DomainName As String = Nothing
              Dim SkinPath As String = Nothing
              Dim PartURL = Context.Request.Url.PathAndQuery.ToString
              Dim FullURL = Context.Request.Url.AbsoluteUri.ToString
              DomainName = FullURL.Replace(PartURL, "")
     
     MovieEmbedCode = "<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='" & MovieWidth & "' height='" & MovieHeight & "'>" & _
              "<param name='movie' value='" & SkinPath & "?file=" & MovieURL & "&bufferTime=3&autoStart=" & MovieAutostart & "' />" & _
              "<param name='quality' value='high' />" & _
              "<param name='menu' value='true'>" & _
              "<param name='wmode' value='transparent'></param>" & _
              "<embed src='" & SkinPath & "?file=" & MovieURL & "&bufferTime=" & MovieBufferTime & "&autoStart=" & MovieAutostart & "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" & MovieWidth & "' height='" & MovieHeight & "' />" & _
              "</object>"
    
     
  • Re: How to play Flash (.flv) files in ASP.net 2.0 .aspx

    07-12-2008, 2:11 AM
    • Member
      56 point Member
    • arunguptadch
    • Member since 04-22-2008, 7:46 AM
    • Posts 24

    Index -8 is either negative or above rows count.

    this article give the following error

     

    arun gupta
Page 1 of 2 (25 items) 1 2 Next >