As part of a recent presentation that I gave, I had a palette whereby I could press a button and an audio clip would play (standard KM 'Play Sound' macro), combined with a 'Display Text (large)' macro that was used for purposes of showing a caption. Works great!
But I have some ideas for a talk where it will involve audience participation and I would like to be able to trigger video clips (which would also have the associated caption). There is no 'Play video' macro, though. So, is there a way that a combination of macros could achieve this?
I might want to set some sizing
I'd want the video clip to disappear once played
I don't want to have any play/pause/transport controls visible
It should overlay anything currently on screen (which may be a Keynote or PPT slide)
Is this something that may be possible with KM, do you think? Or should I be looking elsewhere for this?
You might be able to do it with a custom HTML prompt and some HTML5 video handling code. KM can make such windows floating as well (via the gear icon menu), so it'd appear in front of everything.
Would it suit your needs to call an external video player? I think that you may well be able achieve all you need to by using KM to control the free video player IINA.
This can be done via IINA's menu, so you could use a Select or show a menu item action.
I have given this a go, and I need to be able to close the floating window after a certain duration. I found this on the forum which seemed to be the answer:
However, this is not working for me.
I amended your example to this:
And here is the macro that should close the window:
It's not closing the prompt window, and when I manually intervene, then I get the error message:
2024-04-18 11:06:42 No matching Custom HTML Prompt windows found. Macro “Video Player” cancelled (while executing Execute a JavaScript in Custom Prompt with ID “KMVideoPlayer”).
I wanted to use this IINA player, but I found one particular issue - it animates to the video size in a rather annoying way. I want it to just open at the default size for the video, but I could not work out the various preferences to stop it behaving as it is. Any idea how I can stop that animation?