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& skin=player_flv_skin001.jpg&
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 + "&startimage="+imageurl+"&showvolume=1&showfullscreen=1&showtime=1&playercolor=cccccc&buttoncolor=333333&buttonovercolor=999999&slidercolor1=333333&slidercolor2=0&sliderovercolor=999999&loadingcolor=0&' /></object>";
plh.Controls.Add(new LiteralControl(plyr));
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& skin=player_flv_skin001.jpg&
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 + "&startimage="+imageurl+"&showvolume=1&showfullscreen=1&showtime=1&playercolor=cccccc&buttoncolor=333333&buttonovercolor=999999&slidercolor1=333333&slidercolor2=0&sliderovercolor=999999&loadingcolor=0&' /></object>";
plh.Controls.Add(new LiteralControl(plyr));
Comments