Removing/hiding video.add_text after x seconds #4162
Closed
gavin2812
started this conversation in
User Support
Replies: 2 comments 3 replies
-
Hi, example with 10 seconds, something like this: def print_metadata(m) =
metadata := m["filename"]
end
def hide_metadata() =
metadata := ""
end
main_source.on_metadata(print_metadata)
main_source.on_metadata(fun(_) -> thread.run(hide_metadata, delay=10., fast=false)) Or one line |
Beta Was this translation helpful? Give feedback.
1 reply
-
Just another quick question... How would I do the same for an image? So to show/hide an image in the same way? I know how to add an image:
But I've not been able to temporarily hide it, for example, on metadata change same as the text. With the text it was easier (to just set the text string as empty) but how would I do such a thing with an image? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm currently showing some metadata on tracks change using .on_metadata and this works as expected.
I would like to hide this metadata after x seconds, but I'm not sure how to accomplish this.
This is the section of code:
And the above works as expected and the metadata updates on track change.
What would be the best/easiest/most efficient way to hide this text after x seconds?
I have tried, for example:
But that didn't work. What would be the best way of doing this?
To summarise, show metadata on screen on track change and then remove it after x seconds.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions