Silverlight视频的缩略图 [英] Thumbnail image of Silverlight video

查看:173
本文介绍了Silverlight视频的缩略图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关流行的视频播放器,如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.

迈克尔

这篇关于Silverlight视频的缩略图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆