Passing a stream to the video control rather than a URL

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!

I’m sure there is an answer on here somewhere but I can’t find it!

I’m using the video control which wants a URL for the video.

I have the video content but it is in a stream.

How do I pass the stream to the video control or how do I convert the stream to a URL?



  • You must to post comments
Best Answer

You can implement the Wisej.Core.IWisejHandler interface and turn any control into a response handler. Then set the URL to this.GetPostbackURL() where “this” is the control implementing¬†Wisej.Core.IWisejHandler, could be a subclass of Wisej.Web.Video.

You’ll get a callback from the client when it tries to download the video to ProcessRequest(HttpContext) which is the same as an ASPNET service. There you can send the stream back to context.Response. You have full control of the response data, content type, etc. This is how the PdfViewer uses the stream option.

You need to hold on the stream and release the memory when not needed. Also, note that the HTML5 video tag doesn’t support live video streaming. The stream that you send to the response will be fully downloaded by the browser.


  • You must to post comments

Thanks Luca,

This post from Felix Chan ( really helped me figure it out once you had given me the clue.


  • You must to post comments
Showing 2 results
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
File Name Size
There are currently no files uploaded.
Maximum number of files 5, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json mixin.theme