예제 #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();
 }