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

[web-wasm] Handle EOS and inputs with different framerates #878

Merged
merged 4 commits into from
Dec 3, 2024

Conversation

noituri
Copy link
Member

@noituri noituri commented Nov 21, 2024

This PR adds handling for EOS on inputs and adds support for inputs that have different framerates from the queue framerate.

Closes #810

@noituri noituri force-pushed the @noituri/web-input-state branch from fd1cdbe to 9df0eeb Compare November 21, 2024 12:33
@noituri noituri requested a review from wkozyra95 November 21, 2024 12:35
ts/@live-compositor/web-wasm/src/input/source.ts Outdated Show resolved Hide resolved
ts/@live-compositor/web-wasm/src/input/mp4/demuxer.ts Outdated Show resolved Hide resolved
ts/@live-compositor/web-wasm/src/input/input.ts Outdated Show resolved Hide resolved
ts/@live-compositor/web-wasm/src/input/input.ts Outdated Show resolved Hide resolved
ts/@live-compositor/web-wasm/src/input/input.ts Outdated Show resolved Hide resolved
ts/@live-compositor/web-wasm/src/input/input.ts Outdated Show resolved Hide resolved
@noituri noituri force-pushed the @noituri/web-input-state branch 3 times, most recently from 25a4f70 to a550383 Compare November 28, 2024 10:34
@noituri noituri requested a review from wkozyra95 November 28, 2024 12:21
@noituri noituri marked this pull request as draft November 28, 2024 15:28
@noituri noituri removed the request for review from wkozyra95 November 28, 2024 15:28
@noituri noituri force-pushed the @noituri/web-input-state branch from a550383 to 7a16f70 Compare November 28, 2024 15:44
@noituri noituri marked this pull request as ready for review November 28, 2024 15:45
@noituri noituri requested a review from wkozyra95 November 28, 2024 15:45
@noituri noituri force-pushed the @noituri/web-input-state branch from 7a16f70 to df0152c Compare November 28, 2024 16:30
ts/@live-compositor/web-wasm/src/utils.ts Outdated Show resolved Hide resolved
ts/@live-compositor/web-wasm/src/queue.ts Outdated Show resolved Hide resolved
ts/@live-compositor/web-wasm/src/input/input.ts Outdated Show resolved Hide resolved
ts/@live-compositor/web-wasm/src/input/input.ts Outdated Show resolved Hide resolved
ts/@live-compositor/web-wasm/src/input/input.ts Outdated Show resolved Hide resolved
type: CompositorEventType.VIDEO_INPUT_PLAYING,
inputId: this.id,
});
public async getFrameRef(currentQueuePts: number): Promise<FrameRef | undefined> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

misleading name, I'm not sure what this function does, but it is definitely a lot more than geting a value

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed offline

@noituri noituri force-pushed the @noituri/web-input-state branch from 5262162 to 39c1c80 Compare December 3, 2024 11:02
@noituri noituri force-pushed the @noituri/web-input-state branch from f44fca7 to fd00e03 Compare December 3, 2024 13:59
@noituri noituri merged commit 7db7381 into master Dec 3, 2024
5 checks passed
@noituri noituri deleted the @noituri/web-input-state branch December 3, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[wasm] Improve input handling
2 participants