تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
من يستطيع مساعدتي في حل مشكلة تقطع الفيديو في ميديا بلاير سي شارب
#1
private void timer1_Tick(object sender, EventArgs e)
        {
             if (axWindowsMediaPlayer1.currentMedia != null)
            {
               iTalk_TrackBar1.Maximum = Convert.ToInt32(axWindowsMediaPlayer1.currentMedia.duration);
              iTalk_TrackBar1.Value = Convert.ToInt32(axWindowsMediaPlayer1.Ctlcontrols.currentPosition);

                //نص عدد الدقائق والثواني
                int allSize1 = Convert.ToInt32(axWindowsMediaPlayer1.currentMedia.duration);
                int hour1 = allSize1 / 3600;
                int abider1 = allSize1 % 3600;
                int minute1 = abider1 / 60;
                int second1 = abider1 % 60;

                //النص المتغير لعدد الدقائق والثواني
                int allSize2 = Convert.ToInt32(axWindowsMediaPlayer1.Ctlcontrols.currentPosition);
                int hour2 = allSize2 / 3600;
                int abider2 = allSize2 % 3600;
                int minute2 = abider2 / 60;
                int second2 = abider2 % 60;

                label1.Text = (hour2 + ":" + minute2 + ":" + second2 + "  /  " + hour1 + ":" + minute1 + ":" + second1).ToString();
الرد }}}
تم الشكر بواسطة:
#2
جرب هذا العديل
PHP كود :
private void timer1_Tick(object senderEventArgs e)
{

    if (
axWindowsMediaPlayer1.playState == WMPLib.WMPPlayState.wmppsPlaying)
    {
        
iTalk_TrackBar1.Maximum 100;
        
iTalk_TrackBar1.Value Convert.ToInt32((axWindowsMediaPlayer1.Ctlcontrols.currentPosition axWindowsMediaPlayer1.currentMedia.duration) * 100);
        
label1.Text axWindowsMediaPlayer1.Ctlcontrols.currentPositionString " / " axWindowsMediaPlayer1.currentMedia.durationString;
    }



البطئ قد يكون هناك مشكلة في المشغل نفسه ولكن جرب ان تجعل Interval الخاص بالتايمر 200 مثلاً
الرد }}}
تم الشكر بواسطة:



التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم