如何以不同的间隔暂停媒体元素(可能是用户给出的) [英] how to pause a media element at different intervals(may be user given)

查看:84
本文介绍了如何以不同的间隔暂停媒体元素(可能是用户给出的)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨......我是c#的初学者,我只是想使用mediaElement在c#中制作一个视频播放器,我想知道是否可以在特定用户间隔时间暂停我的视频..有人请帮帮我.. :(

HI... I am beginner in c# ,I was just trying to make a video player in c# using mediaElement,I was wondering if I can pause my video at certain user given intervals ..can somebody please help me..:(

推荐答案

首先来看看这些,

如何到暂停一个视频和播放,IT-来自另一个位置的wpf和c-sharp [ ^ ]

Pausing-a-video-after-every-10s-in-c-sharp [ ^ ]

Pause-and-play-a-video-in-wpf-applications [ ^ ]

您可以看到这些并不是您需要的答案,但我相信您已经知道如何使用计时器来做那件事。在这些样本中他们使用了定义的时间间隔,如10秒,您需要更改此only.Use文本框并从那里选择值,将其设置为 dispatcherTimer.Interval 。希望这会奏效。
First have a look at these,
How-to-pause-a-video-and-play-it-from-another-position-in-wpf-and-c-sharp[^]
Pausing-a-video-after-every-10s-in-c-sharp[^]
Pause-and-play-a-video-in-wpf-applications[^]
You can see these are not exactly answers what you need, but i believe you have an idea how to use timer to do that thing.In those samples they used a defined time interval such as 10s,you need to change this only.Use a textbox and pick the value from there,set it to dispatcherTimer.Interval. Hope this will work.


这篇关于如何以不同的间隔暂停媒体元素(可能是用户给出的)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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