Click here to Skip to main content
15,881,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
200 stream not found netstream.play.streamnotfound,clip:'[Clip]'Handler.ashx?id=(1) etc error raises when i click specific video to play using flowplayer in asp.net after hosting in my website
Here the videos are played using flow player and handler.ashx
Please kindly reply to the issue i need to solve it urgently

What I have tried:

my handler code

Dim id As Integer = Integer.Parse(context.Request.QueryString("id"))

Dim bytes As Byte()
Dim contentType As String
Dim strConnString As String = ConfigurationManager.AppSettings("ConnectionString").ToString()
Dim name As String
Using con As New SqlConnection(strConnString)
Using cmd As New SqlCommand()
cmd.CommandText = "select Name, Data, ContentType from tblFiles where memid=@memid"
cmd.Parameters.AddWithValue("@memid", id)
cmd.Connection = con
con.Open()
Dim sdr As SqlDataReader = cmd.ExecuteReader()
sdr.Read()
bytes = DirectCast(sdr("Data"), Byte())
contentType = sdr("ContentType").ToString()
name = sdr("Name").ToString()
con.Close()
End Using
End Using
context.Response.Clear()
context.Response.Buffer = True
context.Response.AppendHeader("Content-Disposition", "attachment; filename=" + name)
context.Response.ContentType = contentType
context.Response.BinaryWrite(bytes)
context.Response.[End]()
End Sub



aspx page

<asp:DataList ID="DataList1" Visible="true" runat="server" AutoGenerateColumns="false"
RepeatColumns="2" CellSpacing="5">
<itemtemplate>

<%# Eval("Name") %>,<%# Eval("memid")%>,<%# Eval("Id")%>







<script src="FlowPlayer/flowplayer-3.2.12.min.js" type="text/javascript"></script>
<script type="text/javascript">
flowplayer("a.player", "FlowPlayer/flowplayer-3.2.16.swf", {
plugins: {
pseudo: { url: "FlowPlayer/flowplayer.pseudostreaming-3.2.12.swf" }
},
clip: { provider: 'pseudo', autoPlay: false},
});
</script>
Posted
Comments
Suvendu Shekhar Giri 27-Feb-16 4:45am    
Please format the code correctly.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900