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

Check last frame time for feed? #59

Closed
BenWoodford opened this issue Oct 27, 2020 · 1 comment
Closed

Check last frame time for feed? #59

BenWoodford opened this issue Oct 27, 2020 · 1 comment
Assignees
Labels

Comments

@BenWoodford
Copy link

(Fantastic little plugin by the way, saved me loads of time)

Is there a way to grab the timestamp of the last successful frame from a feed? I'd like to check it and if one hasn't been provided in a while, and handle it as though the submitting application is lagging behind for whatever reason and tell the user, rather than leaving them with a static image.

@keijiro keijiro self-assigned this Oct 28, 2020
@keijiro
Copy link
Owner

keijiro commented Oct 28, 2020

Unfortunately, it's not possible. Spout is just a wrapper class for shared memory, so it can't detect modifications on it.

You can check if the sender is still alive by comparing _plugin with System.IntPtr.Zero.

https://github.com/keijiro/KlakSpout/blob/master/Packages/jp.keijiro.klak.spout/Runtime/SpoutReceiver.cs#L64

@keijiro keijiro closed this as completed Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants