Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Streaming a video from a non URL reference
Message
From
28/06/2006 01:17:35
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Streaming a video from a non URL reference
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01132273
Message ID:
01132273
Views:
50
Some of our users will be allowed to view some streaming videos. If everyone would be allowed to, the following could apply:
        lcHtml = lcHtml + "<OBJECT id=""VIDEO"" width=""320"" height=""240"" " + _
         "CLASSID=""CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6""" + _
         "type=""application/x-oleobject"">" + oApp.cCR
        lcHtml = lcHtml + "<PARAM NAME=""URL"" VALUE=""" + oApp.cHttp + lcFileName + """>" + oApp.cCR
        lcHtml = lcHtml + "<PARAM NAME=""SendPlayStateChangeEvents"" VALUE=""True"">" + oApp.cCR
        lcHtml = lcHtml + "<PARAM NAME=""AutoStart"" VALUE=""True"">" + oApp.cCR
        lcHtml = lcHtml + "<PARAM name=""PlayCount"" value=""9999"">" + oApp.cCR
        lcHtml = lcHtml + "</OBJECT>" + oApp.cCR
        Return lcHtml
Basically, I would be able to return that HTML code into a literal on the page and that would do. I tested that and it works very well. The video is streamed into the Windows Media Player.

But, as we have a restriction to only make that video available to certain members, I cannot put the wmv file on the Web server branch. When it is for a download, I use Response.TransmitFile() which allows me to hide the file in a non IIS directory branch so no one could go on the browser and guess a URL to try to download the file. But, we cannot use Response.TransmitFile() when streaming. Because, when using Response.TransmitFile(), it is an automatic download where the browser will ask if we want to open or save the file. Anyone would know a way to accomplish this?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Reply
Map
View

Click here to load this message in the networking platform