play flv video in asp.net

to play flv video here you want some files. those are
1)player_flv_maxi.swf

string url = "VideoGallery/" + objPage.VideoURL.ToString() + ".flv";
                    string imageurl = "VideoGallery/" + objPage.VideoURL.ToString() + ".jpg";
                    //string plyr = "<object type='application/x-shockwave-flash' data='/CMS/Controls/player_flv_maxi.swf' width=" + (int.Parse(objPage.ControlWidth.ToString())-50) + " height=" + (int.Parse(objPage.ControlHeight.ToString())-50) + ">" +
                    //   startimage=imageurl&amp;    skin=player_flv_skin001.jpg&amp;
                string plyr = "<object type='application/x-shockwave-flash' data='/CMS/Controls/player_flv_maxi.swf' width=" + objPage.ControlWidth + " height=" + objPage.ControlHeight + ">" +
                "<param name='movie' value='/CMS/Controls/player_flv_maxi.swf' /> <param name='wmode'value='transparent'/>    <param name='allowFullScreen' value='true' />  " +
                "<param name='FlashVars' value='flv=" + url + "&amp;startimage="+imageurl+"&amp;showvolume=1&amp;showfullscreen=1&amp;showtime=1&amp;playercolor=cccccc&amp;buttoncolor=333333&amp;buttonovercolor=999999&amp;slidercolor1=333333&amp;slidercolor2=0&amp;sliderovercolor=999999&amp;loadingcolor=0&amp;' /></object>";
                   plh.Controls.Add(new LiteralControl(plyr));

Comments

Popular posts from this blog

WCF interview questions

The term 'Connect-MsolService' is not recognized as the name of a cmdlet, function, script file, or operable program

what is Event Cache table in sharepoint