Silverlight视频的缩略图缩略图、视频、Silverlight

2023-09-03 03:08:24 作者:我百毒不侵却怕她入你心。

有关流行的视频播放器,如sl2videoplayer, HTTP://www.$c$cplex.com / sl2videoplayer ,我的问题是怎么的Siverlight视频的缩略图显示在我们点击播放(非自动播放的情况下)。

For the popular video player, like sl2videoplayer, http://www.codeplex.com/sl2videoplayer, my question is how is the thumbnail image of Siverlight video is displayed before we click play (in the scenario of non-autoplay).

在此先感谢, 乔治

推荐答案

在MediaElement的是,视频播放器使用将显示帧的缩略图在当前位置。否则,像前pression恩codeR工具创建缩略图(JPEG或PNG图像),将被用于视频缩略图和章节标记。

the MediaElement that the Video Player uses will show a thumbnail image of the frame at the current position. Otherwise, tools like Expression Encoder create thumbnail images (JPEGs or PNGs) that will be used for the video thumbnails and chapter markers.

这将显示Bear.wmv视频的第一帧,并且不会自动播放:

This will show the first frame of the Bear.wmv video and won't play automatically:

<Grid x:Name="LayoutRoot" Background="White">
	<MediaElement AutoPlay="False" Source="Bear.wmv"/>
</Grid>

如果你知道缩略图来自于时间,你可以有具有那个时候当前位置次要的MediaElement。当播放开始时,你会崩溃的可见性。

If you knew the time that the thumbnail comes from, you could have a secondary MediaElement with its Current Position having that time. When playback starts, you would collapse its visiblity.

迈克尔