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.

    Playing a local mp4 file as a module

    Scheduled Pinned Locked Moved Troubleshooting
    20 Posts 6 Posters 9.8k Views 6 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.
    • R Offline
      remylpat
      last edited by

      @justjim1220 said in Playing a local mp4 file as a module:

      g something to play a single mp4 file or several (like in a playlist) or to be given a choice to play from of a list of files stored in a local directory?

      My target is having like 5 files and 1 button per file to launch each of them.
      I want mirror to diplay a video when I click on a remote then back to normal state (no video / minimal display) then click again (on another button for example) and the other video launch.
      The mirror is to be used on a shop like a haircut

      justjim1220J 2 Replies Last reply Reply Quote 0
      • justjim1220J Offline
        justjim1220 Module Developer @remylpat
        last edited by

        @remylpat

        I think I can work out something. might take me a few days to get it done, but I should be able to come up with something.

        "Life's Too Short To Dance With Ugly People"
        Jim Hallock - 1995

        cowboysdudeC 1 Reply Last reply Reply Quote 1
        • justjim1220J Offline
          justjim1220 Module Developer @remylpat
          last edited by justjim1220

          @remylpat

          Are one of these modules that you are planning to use for the buttons?

          https://github.com/ptrbld/MMM-Button
          https://github.com/Jopyth/MMM-Buttons
          https://github.com/tosti007/MMM-TouchNavigation

          "Life's Too Short To Dance With Ugly People"
          Jim Hallock - 1995

          R 1 Reply Last reply Reply Quote 0
          • cowboysdudeC Offline
            cowboysdude Module Developer @justjim1220
            last edited by cowboysdude

            @justjim1220 Here’s an idea…

            https://medium.com/@daspinola/video-stream-with-node-js-and-html5-320b3191a6b6
            https://stackoverflow.com/questions/24976123/streaming-a-video-file-to-an-html5-video-player-with-node-js-so-that-the-video-c

            justjim1220J 1 Reply Last reply Reply Quote 1
            • R Offline
              remylpat @justjim1220
              last edited by

              @justjim1220 said in Playing a local mp4 file as a module:

              https://github.com/ptrbld/MMM-Button
              https://github.com/Jopyth/MMM-Buttons

              Yes I was planning using the MMM-Button but right now it is not yet working on my side. I am resolving some depandencies issues

              justjim1220J 1 Reply Last reply Reply Quote 0
              • justjim1220J Offline
                justjim1220 Module Developer @cowboysdude
                last edited by

                @cowboysdude Thanks CBD! :winking_face:

                "Life's Too Short To Dance With Ugly People"
                Jim Hallock - 1995

                1 Reply Last reply Reply Quote 0
                • justjim1220J Offline
                  justjim1220 Module Developer @remylpat
                  last edited by

                  @remylpat

                  Just making sure I’m on the same page as you…

                  You are wanting to use a button for each video on your Raspi which would mean you are going to have 5 buttons conected to the Raspi?

                  And, you are not wanting clickable buttons on the screen?

                  are you going to have a keyboard connected to your Raspi?

                  "Life's Too Short To Dance With Ugly People"
                  Jim Hallock - 1995

                  R 1 Reply Last reply Reply Quote 0
                  • justjim1220J Offline
                    justjim1220 Module Developer @Sputnik
                    last edited by

                    @sputnik

                    are you wanting the same setup as @remylpat is requesting?

                    If you are wanting different setup or options, let me know. :smiling_face_with_sunglasses:

                    "Life's Too Short To Dance With Ugly People"
                    Jim Hallock - 1995

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      remylpat @justjim1220
                      last edited by

                      @justjim1220 You are right. No clickable button on screen. My preference is physical button on GPIO or bluetooth remote if simple.

                      1 Reply Last reply Reply Quote 0
                      • justjim1220J Offline
                        justjim1220 Module Developer
                        last edited by justjim1220

                        @justjim1220 said in Playing a local mp4 file as a module:

                        https://github.com/ptrbld/MMM-Button
                        https://github.com/Jopyth/MMM-Buttons

                        Anyone give me an idea on which of these module works the best with RasPi?

                        I want to integrate one of them into a different module I am creating that will also use them…

                        So looking for ease of use and understand-ability not only by myself, but for the user.

                        (I don’t have a RasPi, So will also be looking for anyone willing to help test it for me as well.) :smiling_face_with_sunglasses: :smiling_face_with_sunglasses: :smiling_face_with_sunglasses:

                        "Life's Too Short To Dance With Ugly People"
                        Jim Hallock - 1995

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 2 / 2
                        • 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