I am creating a video gallery in asp.net just like youtube. Here, I have used ffmpeg player to covert the video and generate a thumbnail. But my problem is that every time when i click on the thumbnail to watch a new video the path in the embed tag where
the path of the video is there in flashvars is not changing...
rohit3000
0 Points
2 Posts
ffmpeg video gallery
Apr 05, 2012 02:07 PM|LINK
Hello,
I am creating a video gallery in asp.net just like youtube. Here, I have used ffmpeg player to covert the video and generate a thumbnail. But my problem is that every time when i click on the thumbnail to watch a new video the path in the embed tag where the path of the video is there in flashvars is not changing...
<embed src="Players/flvplayer.swf" width="425" height="355"
bgcolor="#FFFFFF" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
flashvars="file=Video/SWF/likh.swf&autostart=false&frontcolor=0xCCCCCC&backcolor=0x000000&lightcolor=0x996600&showdownload=false&showeq=false&repeat=false&volume=100&useaudio=false&usecaptions=false&usefullscreen=true&usekeys=true"></embed>
here in flashvars is likh.swf but i want to change it on click of link button...
Any help will be appreciated
Thank You
all-alone808
Member
290 Points
75 Posts
Re: ffmpeg video gallery
Apr 07, 2012 07:59 PM|LINK
see here.
http://videoplayer.codeplex.com/
Hua-Jun Li -...
All-Star
75950 Points
5608 Posts
Re: ffmpeg video gallery
Apr 10, 2012 05:20 AM|LINK
Hi,
You can change the src propety dynamicly in the codebehind.
Html Code:
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0
width="560" height="340" style="width: 467px">
<param runat="server" id="paramVideoLink1" name="movie" value="http://www.youtube.com/v/84ZgMGtX7nE&hl=en_US&fs=1&>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed runat="server" id="paramVideoLink2" src="http://www.youtube.com/v/84ZgMGtX7nE&hl=en_US&fs=1&" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed>
</object>
<asp:Button ID="ChangeFlvUrl" runat="server" Height="26px" onclick="ChangeFlvUrl_Click"
Text="Change flv url" Width="122px" />
CS Code:
protected void ChangeFlvUrl_Click(object sender, EventArgs e)
{
paramVideoLink1.Attributes.Add("value", "http://www.youtube.com/v/ac7aSF7ETtU&hl=en_US&fs=1&");
paramVideoLink2.Attributes.Add("src", "http://www.youtube.com/v/ac7aSF7ETtU&hl=en_US&fs=1&");
}
Please check the following link:
http://blogs.ugidotnet.org/kfra/archive/2006/10/04/50003.aspx
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework