MySQL query to find time difference based on a condition Mysql version 5.7.28

I have a db with data in the below format

Id     ign     sp    time 
1       1      25    10:00
2       1      22    10:01
3       1      0     10:02
4       1      0     10:03
5       1      0     10:04
6       1      0     10:05
7       1      0     10:06
8       1      8     10:07
9       1      25    10:08
10      1      22    10:09
11      1      0     10:10
12      1      0     10:11
13      1      0     10:12
14      1      0     10:13
15      1      8     10:14
16      1      10    10:15


I need to design a query that will give me the result based on the condition
Ign =1 and sp =0 and the time difference between time where sp is consecutively 0. In this case, sp=0 between time 10:02 to 10:06 and 10:10 to 10:13.

Desired output:

Sp Start Time  Sp Stop Time
10:02          10:06 
10:10          10:13
SELECT MIN(`time`) time_from,
       MAX(`time`) time_till
FROM ( SELECT *, 
              @group := @group + CASE WHEN NOT sp AND @prev THEN 1 ELSE 0 END group_num, 
              @prev:=sp
       FROM test, (SELECT @prev:=-1, @group:=0) variable
       WHERE ign = 1
       ORDER BY `time` ) temp
WHERE NOT sp
GROUP BY group_num;


fiddle