Read the statement by Michael Teeuw here.
Halloween mirror ghouls anyone?
-
I experimented with this a bit yesterday. Thanks to @rvdgeer for the hint and @Jopyth for the initial code to start.
I ripped a YouTube video to disk and uploaded it to my Pi, putting it in the
vendor
folder. Adding this to my config.js was surprisingly effective (the rotate 90 is due to the video being designed to be projected on a window):{ module: "helloworld", position: "fullscreen_below", config: { text: "<video src='vendor/halloween.mp4' autoplay loop style='transform:rotate(90deg); position:absolute; top:50%;left:30%; height:50%'></video>" } },
-
@bhepler
What video did you use?Sorry I missed the linkHow did you rip it from YouTube?
-
@Mitchfarino
check your chat ;) -
@yawns Awesome, thank you!
-
@bhepler Is there a way to loop through a number of videos, rather than just the one on repeat?
-
@Mitchfarino Presumably you can inject some scripting to define an array of video files and then call a function to play the next file in the array. If you call that function from the onended() event in the VIDEO tag you should be able to get 90% of the way there.
-
@bhepler Any idea how to do that?
-
@Mitchfarino StackExchange had a pretty good start.
Based upon the fact that the text value includes the HTML tag
-
@bhepler the problem is to get the script tag evaluated, when it gets inserted as text, i have a script that is working, but still stuck on the evaluation. It’s probably easier to just create a new module, than finding another hacky workaround
-
@strawberry-3.141 You’re going to turn me into a Javascript developer with crazy talk like that.