player: byteseek support
This commit is contained in:
parent
82b7345944
commit
f2d142c9c7
1 changed files with 5 additions and 0 deletions
|
@ -168,6 +168,11 @@ seekDone:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!strncmp("byteseek ", line, sizeof("byteseek " - 1))){
|
||||||
|
std::streampos byte = atoi(line + sizeof("byteseek "));
|
||||||
|
fileSrc.seekg(byte);//if EOF, then it's the client's fault, ignore it.
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (!strcmp("play", line)){
|
if (!strcmp("play", line)){
|
||||||
playing = true;
|
playing = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue