fixup for websocket based outputs
This commit is contained in:
parent
2f6cc46f88
commit
bd238e367e
1 changed files with 2 additions and 5 deletions
|
@ -574,17 +574,14 @@ namespace Mist{
|
||||||
|
|
||||||
//Play command, sets pause state off and optionally also seeks
|
//Play command, sets pause state off and optionally also seeks
|
||||||
if (command["type"] == "play") {
|
if (command["type"] == "play") {
|
||||||
|
bool wasPlaying = parseData;
|
||||||
parseData = true;
|
parseData = true;
|
||||||
if (command.isMember("seek_time")){
|
if (command.isMember("seek_time")){
|
||||||
handleWebsocketSeek(command);
|
handleWebsocketSeek(command);
|
||||||
}else{
|
}else{
|
||||||
if (!currentTime()){
|
if (!wasPlaying){
|
||||||
command["seek_time"] = 0;
|
command["seek_time"] = 0;
|
||||||
handleWebsocketSeek(command);
|
handleWebsocketSeek(command);
|
||||||
}else{
|
|
||||||
parseData = true;
|
|
||||||
selectDefaultTracks();
|
|
||||||
firstTime = Util::bootMS() - (lastPacketTime / target_rate);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue