Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET
 <object width="100%" height="100%" id="gsp_player_api" data="Players/flowplayer-3.2.5.swf"
  <param name="allowfullscreen" value="true">
  <param name="allowscriptaccess" value="always">
  <param name="quality" value="high">
  <param name="cachebusting" value="false">
  <param name="bgcolor" value="#000000">
  <param name="wmode" value="opaque">
   <param name="flashvars" value='config={"clip":{"autoPlay":true,"scaling":"fit","url":"VideoHandler.ashx?imgID=2"},"playerId":"gsp_player","playlist":[{"autoPlay":true,"scaling":"fit","url":"VideoHandler.ashx?imgID=2"}]}'>

<%@ WebHandler Language="C#" Class="VideoHandler" %>
using System;
using System.Web;
using System.Data.SqlClient;
using System.Data;
public class VideoHandler : IHttpHandler {
    Class1 objcls = new Class1();
    public void ProcessRequest (HttpContext context) {
        string imageId = context.Request.QueryString["imgID"];
        SqlDataReader dr = objcls.SP_GET_VIDEO_BY_ID(imageId);
        if (dr.HasRows)
            while (dr.Read())
    public bool IsReusable {
        get {
            return false;
200, Stream not found, NetStream.Play.StreamNotFound, clip: "[Clip]"http://localhost:6259/VideoHandler.ashx?imgID=2"
Posted 19-Feb-13 1:20am
Edited 22-Feb-13 18:14pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

The working code will be
<object id="flowplayer" data="flowplayer-3.2.2.swf" type="application/x-shockwave-flash" width="320" height="240" >
    <param name="movie" value="flowplayer-3.2.2.swf">
    <param name="allowfullscreen" value="true">
    <param name="flashvars" value="config={'clip':{'url':'mymovie.mp4','autoPlay':false}}">
your url propery value is VideoHandler.ashx. If so then in your local host server http://localhost:6259" should have that ashx file and it should write video stream to Httpresponse object.
Member-515487 at 23-Feb-13 0:16am
see i have uploaded my ashx file n mymovie.mp4 it will work proper but when i am tring to use with ashx binary output write not working properly

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

  Print Answers RSS
Your Filters
0 Shai Vashdi 1,518
1 Manas Bhardwaj 319
2 Tadit Dash 285
3 OriginalGriff 273
4 Peter Leow 205
0 Sergey Alexandrovich Kryukov 9,530
1 OriginalGriff 5,716
2 Peter Leow 4,345
3 Maciej Los 3,540
4 Abhinav S 3,373

Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 23 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid