Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max Time To Sequence Ahead Issue #7

Open
JohnnyTheG opened this issue Jun 27, 2022 · 0 comments
Open

Max Time To Sequence Ahead Issue #7

JohnnyTheG opened this issue Jun 27, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@JohnnyTheG
Copy link
Contributor

This is probably a bug caused by the way we’re hacking in pausing and skipping. However, I thought I’d report it anyway in case its not. I’ve found that the sequencer hangs and doesn’t schedule any more clips after playing some longer clips. We never noticed this before as we’d set all the lengths to 2 seconds for development, but not we’ve set them to correct length the film seems to stop halfway through at points.
It seems it’s not sequencing the next clip because playHeadTime is set to 0 and, therefore, this method returns false. It doesn’t happen for shorter clips, because maximumSecondsToSequenceAheadOfTime is set to 120 and so it’s longer than the layerEndTime
public bool CanSequence()
{
if (playheadTime + maximumSecondsToSequenceAheadOfTime > layerEndTime)
{
return true;
}
return false;
}
A fix is to set maximumSecondsToSequenceAheadOfTime to a bigger value. For example:
private const float maximumSecondsToSequenceAheadOfTime = 10000f;
As I say, probably a result of my hacking. But in case it is a bug more generally thought I’d report it.

@JohnnyTheG JohnnyTheG added the bug Something isn't working label Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant