Пример #1
0
        internal void Play(TimeSpan?startPosition)
        {
            if (startPosition.HasValue)
            {
                _audio.currentTime = startPosition.Value.Seconds;
            }

            _audio.play();
            _playCount++;
        }
Пример #2
0
 public static void Beep()
 {
     if (!Settings.MessageFormBeep)
     {
         return;
     }
     if (snd == null)
     {
         snd     = new HTMLAudioElement();
         snd.src = ResourceManager.GetResourceString("beepSound");
     }
     snd.play();
 }