1
00:00:01,980 --> 00:00:08,310
OK, so moving right along, we can now play a song and these things do the things, but if we move

2
00:00:08,310 --> 00:00:09,150
forward.

3
00:00:11,580 --> 00:00:20,580
Well, this gets reset, but this thing does that if we go back, this gets reset with this, but the

4
00:00:20,580 --> 00:00:23,420
slider doesn't it's still just trucking right along.

5
00:00:23,430 --> 00:00:24,780
So we need to fix that.

6
00:00:24,780 --> 00:00:26,270
And that's we're going to do in this video.

7
00:00:26,280 --> 00:00:32,340
So let's head over to our code and let's look at our next song function and our previous song function.

8
00:00:32,350 --> 00:00:35,070
So the next song, let's do this one first.

9
00:00:35,070 --> 00:00:42,870
And we look through here here at the bottom, none of the like the there is no like status bar updating.

10
00:00:42,880 --> 00:00:46,980
So this is all happening in the play time function, but we can be explicit about it.

11
00:00:46,980 --> 00:00:49,230
So we might just do that right here.

12
00:00:49,230 --> 00:00:56,280
So let's create a comment and go reset slider position and status bar.

13
00:00:56,580 --> 00:01:03,030
So let's just let's do the status of our first set the status bar that config.

14
00:01:04,250 --> 00:01:11,240
And let's just set the text to nothing just to reset it, because when you go to the next song we wanted

15
00:01:11,240 --> 00:01:16,010
to set, you know, set to zero, and then when the play time function goes, it will update automatically

16
00:01:16,010 --> 00:01:22,610
on its own, but at least it will update from zero in that millisecond extra might look better or we

17
00:01:22,610 --> 00:01:24,560
might not even notice that we might not even need that.

18
00:01:24,570 --> 00:01:26,120
So, OK, that's fine.

19
00:01:26,540 --> 00:01:28,790
Now let's do the step, the slider.

20
00:01:28,790 --> 00:01:32,540
So let's go song underscore slider dat config.

21
00:01:33,650 --> 00:01:34,850
And what do we want to do here?

22
00:01:35,630 --> 00:01:41,660
Well, we just want to set the value of our slider to zero, so when the next song plays, bring it

23
00:01:41,660 --> 00:01:42,830
back over to zero.

24
00:01:42,830 --> 00:01:43,140
Right.

25
00:01:43,410 --> 00:01:45,010
So that's really all we need to do there.

26
00:01:45,020 --> 00:01:48,680
So let's copy this and let's add this to the previous song.

27
00:01:50,230 --> 00:01:56,110
Function as well, and OK, let's go ahead and save this and run this guy one more time.

28
00:01:57,430 --> 00:02:00,130
See if that worked, so let's add some songs.

29
00:02:01,540 --> 00:02:10,540
Let's play one the volume down and if we move forward, boom, that resets there, those things reset

30
00:02:11,530 --> 00:02:12,510
forward again.

31
00:02:14,530 --> 00:02:17,370
Can we go back that reset?

32
00:02:17,430 --> 00:02:18,820
Well, OK.

33
00:02:21,660 --> 00:02:23,140
So that seems to be working.

34
00:02:31,350 --> 00:02:31,890
All right.

35
00:02:33,100 --> 00:02:37,570
So those are the minor things for our slider, like I said, there's probably going to be other little

36
00:02:37,570 --> 00:02:41,320
things that we're going to have to tweak with this thing as we go on in the next video, we want to

37
00:02:41,320 --> 00:02:48,580
start to look at moving this slider around and then moving around in the song based on where we drop,

38
00:02:48,910 --> 00:02:50,760
based on where we drag and drop this guy.

39
00:02:50,920 --> 00:02:52,690
And we'll start to look at that in the next video.
