internal void Play(TimeSpan?startPosition) { if (startPosition.HasValue) { _audio.currentTime = startPosition.Value.Seconds; } _audio.play(); _playCount++; }
public static void Beep() { if (!Settings.MessageFormBeep) { return; } if (snd == null) { snd = new HTMLAudioElement(); snd.src = ResourceManager.GetResourceString("beepSound"); } snd.play(); }