Send mp4 video to client - WeOnlyDo Discussion board

Send mp4 video to client (wodWebServer / wodWebServer.NET)

by wodDrazen, Thursday, December 05, 2013, 10:37 (3788 days ago) @ C.Boschi

Hi Crisitiano,


I already sent you reply to same request inside our ticketing system. Here is info what you need to do to play video using wodWebServer.

It's important that you change Content-Type to appropriate one when you want to open video inside browser.

So you can try something like this inside RequestHeaders Event:
----------------------------------------------------------
Private Sub Http1_RequestHeaders(ByVal User As WODWEBSERVERCOMLib.IWebUser)
If User.Request.PageName = "video.mp4" Then
User.Response.Headers.Add "Content-Type", "video/mp4"
End If
End Sub
----------------------------------------------------------

Let us know how it goes.


Regards,
Drazen

--
_________________________________________________
WeOnlyDo! Software - Internet Security Components
----------=== http://www.weonlydo.com ===----------


Complete thread: