Answered by:
How to play videos on asp.net web page?

Question
-
User1196896799 posted
I got to build a web site to play bunch of corporate videos on the web site. They are two kinds of videos, public videos accessible to all employees by default, and some are confidential, those are only for people who got permission to play.
Though confidential videos are not accessible to everyone, but those will be displayed on the web page. If anybody interested in those videos, he/she can send view request by clicking play button or something else. As soon as video owner got message request from the employee, either video owner will accept/reject. In either case response should notify to the requested user. I have input videos in wmv format.
I’m using VS.Net 2005, looking for the best way to build this website. Your implementation suggestions are greatly appreciated.
Thursday, May 22, 2008 12:59 PM
Answers
-
User-417784260 posted
Silverlight 2.0 supports digital rights management. That might be a good way to go.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, May 22, 2008 1:12 PM
All replies
-
User1293098721 posted
Buy Community Server! They have a great Media Gallery that would work nice for this.
Otherwise, you'll have to setup some authorization and do some custom coding in your application to achieve that.Thursday, May 22, 2008 1:09 PM -
User-417784260 posted
Silverlight 2.0 supports digital rights management. That might be a good way to go.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, May 22, 2008 1:12 PM -
User1196896799 posted
Do you have any sample code for your second solution?
Thursday, May 22, 2008 5:39 PM -
User915387828 posted
Hi G.S.Reddy,
As far as I know, it is possible to implement it.
Please use the following code to play sound, you can control playcount,AutoStart and other parameters.
<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="Object1" >
<param name="Filename" value="../test.aspx"> file position
<param name="PlayCount" value="1"> set playcount
<param name="AutoStart" value="0">
<param name="ClickToPlay" value="1">
<param name="DisplaySize" value="0">
<param name="EnableFullScreen Controls" value="1"><
<param name="ShowAudio Controls" value="1">
<param name="EnableContext Menu" value="1">
<param name="ShowDisplay" value="1">
</object>Then you can write the bindary stream at page test.aspx.
protected void Page_Load(object sender, EventArgs e)
{Response.Clear();
if(user has the right)
Response.TransmitFile(@"../Now/WebCast20070201pm_Video.wmv");
Response.End();Let me know if I have misunderstood what you mean.
Thanks.
Hope it helps,
Hua Jun
Monday, May 26, 2008 5:44 AM -
User1196896799 posted
Hi Hua-Jun Li,
Thank for your sample code,
1) it is working fine with inline video file path binding. I thought of reuse one control for all videos rather than using one control per video. I think that would help to load my page faster. May be kind of youtube.com website, I'm not able access object id in the code behind to set video control value property, may I could do this using javascript. I'm wondering, how to rotate two or three videos at one time in a frame, when user clicks on those, it would play one video and rotates again after completion video (same as youtube).
2) you wrote: Then you can write the bindary stream at page test.aspx.
how to bind this stream to control again.
3) how to display playcount for a video on web page.
Thank you,
I would appreciate your help.
Friday, May 30, 2008 10:31 AM