如何将DispatcherTimer用于mediaelement音频 [英] How to use DispatcherTimer to a mediaelement audio

查看:53
本文介绍了如何将DispatcherTimer用于mediaelement音频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正处于开发人员开发WP8应用程序的初级阶段。播放器就像应用程序只在应用程序中播放歌曲。

I am in beginner stage in developer developing a WP8 app. The player like app which plays songs only in the app.

我通过媒体元素播放歌曲现在我只想放置搜索栏...我听说DispatcherTimer用于此。但我不知道如何使用它连接我的mediaelement音频。所以请任何人使用调度程序
计时器为mediaElement音频提供搜索栏的代码。

I played the songs through media element Now all I want to put the seek bar.. i heard the DispatcherTimer is used for that.. but I don't know how to use it to connect with my mediaelement audio. So please any one come out with code for seekbar using dispatcher timer for mediaElement audio.

我的代码是

 public Somg()
        {
            InitializeComponent();
            ma.Source = new Uri("Assets/Audio/Aud_1.mp3", UriKind.Relative);
            ma.Play();
          }
               


请有人帮忙。



NPSARAVANA KUMAR

Please anyone help on it.


N.P.SARAVANA KUMAR

推荐答案

警告:我没有这样做但是......我猜你会使用计时器来轮询媒体元素,以发现沿着轨道的距离。但是,我很惊讶您也不能使用绑定来执行此操作
Warning: I've not done this but...I would guess you use the timer to poll the media element to discover how far along the track is. However, I'm surprised you cannot use binding to do this too


这篇关于如何将DispatcherTimer用于mediaelement音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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