Question

Tell me please how to execute a method BackgroundAudioPlayer fastforward?

That is, how to do that when you long press the button, fast forward, and then release the button, the track nchinal play, in general as well as buttons work in the locked mode.

If you long press call as follows:

private void btnNext_Hold(object sender, System.Windows.Input.GestureEventArgs e)
        {
            BackgroundAudioPlayer.Instance.FastForward();
        }

The track is scrolled to the end and pops up an error.

Was it helpful?

Solution

What is your desired behavior? You probably need some code on the MouseLeftButtonUp event to call Play to resume the playing of the current audio track.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top