video streaming in web application

Posted by Pvnarayana_51 under ASP.NET on 3/3/2013 | Points: 10 | Views : 821 | Status : [Member] | Replies : 0
Hi Experts,

I am doing video streaming using Windows media player.I want to stop playing video after 10 seconds.I searched for it in google.But i am not get any answer.please reply me.
And code is




StringBuilder sb = new StringBuilder("<OBJECT ID='" +
this.ClientID + "' name='" + this.ClientID + "' " +
"CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'" +
"VIEWASTEXT" +
" height=" + _Height + " " + "width=" + _Width +">");
sb.Append("<PARAM name='URL' value='"_fileName + "'>");
sb.Append("<PARAM name='AutoStart' value='" +
_autoStart.ToString() + "'>");
sb.Append("<EMBED type='application/x-mplayer2' pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'");
sb.Append("id='").Append(this.ClientID).Append("' name='mediaPlayer' ");
sb.Append("displaysize='4' autosize='0' showcontrols='1' showtracker='1' showdisplay='0' showstatusbar='1' videoborder3d='0' ");
sb.Append("width='").Append(_Width).Append("' height='").Append(_Height).Append("' ");
sb.Append("src=\"").Append(_fileName).Append("\" autostart='").Append(_autoStart).Append("' ");
sb.Append("uiMode='none'");
sb.Append("designtimesp='5311' loop='0'></EMBED>");




Responses

(No response found.)

Login to post response