-
Notifications
You must be signed in to change notification settings - Fork 0
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
Move next should respect the QuickLoop bounds #31
base: bbc-release52
Are you sure you want to change the base?
Conversation
let rawParts = playoutModel.getAllOrderedParts() | ||
let allowWrap = false // whether we should wrap to the first part if the curIndex + delta exceeds the total number of parts | ||
|
||
const quickLoopService = new QuickLoopService(_context, playoutModel) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this is a desirable solution or if the specific method should be exposed through the PlayoutModel instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if it should be, but as we have getSegmentsBetweenQuickLoopMarker
exposed on the PlayoutModel
, it would be reasonable and consistent to expose this one too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great to have some unit tests for selectNewPartWithOffsets
if you feel up to writing some. Same for getPartsBetweenMarkers
.
I know there aren't any for either thing already, so I don't mind if you dont
@@ -76,5 +76,5 @@ export interface IOnSetAsNextContext extends IShowStyleUserContext, IEventContex | |||
* Multiple calls of this inside one call to `onSetAsNext` will replace earlier calls. | |||
* @returns Whether a new Part was found using the provided offset | |||
*/ | |||
moveNextPart(partDelta: number, segmentDelta: number): Promise<boolean> | |||
moveNextPart(partDelta: number, segmentDelta: number, ignoreQuickLoop: boolean): Promise<boolean> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the parameter is optional in other places, including the implementation, should it be optional here too?
let rawParts = playoutModel.getAllOrderedParts() | ||
let allowWrap = false // whether we should wrap to the first part if the curIndex + delta exceeds the total number of parts | ||
|
||
const quickLoopService = new QuickLoopService(_context, playoutModel) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if it should be, but as we have getSegmentsBetweenQuickLoopMarker
exposed on the PlayoutModel
, it would be reasonable and consistent to expose this one too.
No description provided.