Windows Media Player重复播放功能: [英] Windows media player repeat function:

查看:343
本文介绍了Windows Media Player重复播放功能:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Studio 2008中使用C#使用了Windows Media Player控件.

I have used a Windows media player control in Studio 2008 using C#.

如果使用真实" Microsoft媒体播放器,请通过开始"按钮,然后进行打开重复播放"设置,以允许重播视频.

If the 'real' Microsoft media player is used, via the Start button, then there is a setting to 'turn repeat on' which allows a video to be replayed.

但是媒体播放器控件没有此选项.

But the media player control doesn't have this option.

有人知道是否有启用此功能的方法吗?

Does anyone know if there is a way of enabling this?

谢谢.

MartinW.

推荐答案

这应该对您有用:

This should work for you:


  private void mediaElement1_MediaEnded(object sender, RoutedEventArgs e)
  {
   mediaElement1.Position = new TimeSpan();
  }


这篇关于Windows Media Player重复播放功能:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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