End stream correctly, dont seek throttle by selection

main
Chris Vickery 2018-05-24 11:19:33 -07:00
parent bc5eafa74e
commit 554cda5ba3
2 changed files with 2 additions and 2 deletions

View File

@ -427,7 +427,7 @@ export default class Explorer extends Component {
const { entries } = message;
const seekIndex = this.indexFromSeekTime(time);
const seekTime = entries[seekIndex].relTime;
const seekTime = time;
this.props.onSeek(seekIndex, seekTime);
}

View File

@ -93,7 +93,7 @@ async function loadData(entry) {
res.on("end", function() {
console.log("Stream ended");
entry.ended = true;
setTimeout(() => (entry.ended = true));
queueBatch(entry);
});