MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Halloween mirror ghouls anyone?

    Scheduled Pinned Locked Moved General Discussion
    56 Posts 18 Posters 55.6k Views 19 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • MitchfarinoM Offline
      Mitchfarino Module Developer @Jopyth
      last edited by

      @Jopyth Have you had any luck with this mate?

      I haven’t looked at it for a while, have had a few things going on so haven’t had chance

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        Jopyth Moderator @Mitchfarino
        last edited by

        @Mitchfarino did not have the time for it. I will see if I get to it, when I get back from vacation in one week.

        Helpful sticky: How to troubleshoot

        1 Reply Last reply Reply Quote 0
        • bheplerB Offline
          bhepler Module Developer
          last edited by bhepler

          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>"
                         }
           },
          MitchfarinoM 2 Replies Last reply Reply Quote 1
          • MitchfarinoM Offline
            Mitchfarino Module Developer @bhepler
            last edited by Mitchfarino

            @bhepler What video did you use? Sorry I missed the link

            How did you rip it from YouTube?

            yawnsY 1 Reply Last reply Reply Quote 0
            • yawnsY Offline
              yawns Moderator @Mitchfarino
              last edited by

              @Mitchfarino
              check your chat ;)

              MitchfarinoM 1 Reply Last reply Reply Quote 0
              • MitchfarinoM Offline
                Mitchfarino Module Developer @yawns
                last edited by

                @yawns Awesome, thank you!

                1 Reply Last reply Reply Quote 0
                • MitchfarinoM Offline
                  Mitchfarino Module Developer @bhepler
                  last edited by

                  @bhepler Is there a way to loop through a number of videos, rather than just the one on repeat?

                  bheplerB 1 Reply Last reply Reply Quote 0
                  • bheplerB Offline
                    bhepler Module Developer @Mitchfarino
                    last edited by

                    @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.

                    MitchfarinoM 1 Reply Last reply Reply Quote 0
                    • MitchfarinoM Offline
                      Mitchfarino Module Developer @bhepler
                      last edited by

                      @bhepler Any idea how to do that?

                      bheplerB 1 Reply Last reply Reply Quote 0
                      • bheplerB Offline
                        bhepler Module Developer @Mitchfarino
                        last edited by

                        @Mitchfarino StackExchange had a pretty good start.

                        Based upon the fact that the text value includes the HTML tag , you can probably put another tag in there to handle your script. Probably. I haven’t tried it. You may end up making some fancy character escaping in order to get it to work properly, but it should be possible. If I get the chance I’ll play with it.

                        strawberry 3.141S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 5 / 6
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy