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 11.5k 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 @Ramez
      last edited by

      @ramez Thx a lot.
      I’ll play with that later today and let you know.
      Just to let you know I am building the smart mirror in order to have it as an Advertisement mirror and I would like to trigger by myself some video through a remote or button on it.
      I’ll try your recommandations and let you know where I land :-)

      WAF : Woman Acceptance Factor (the most important thing that drive your life :-)

      lavolp3L R 2 Replies Last reply Reply Quote 0
      • lavolp3L Offline
        lavolp3 Module Developer @remylpat
        last edited by

        WAF : Woman Acceptance Factor (the most important thing that drive your life :-)

        Ha! Great!

        Isn’t there already at least one video player module out?
        Can’t you use that one for your purpose.
        Have a look into the 3rd party modules section at the MM github site.

        How to troubleshoot modules
        MMM-soccer v2, MMM-AVStock

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

          @remylpat nice, you may have to check those 2 modules MMM-Buttons and capacitve touch buttons fork

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

            @sputnik

            Are you wanting 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?

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

            1 Reply Last reply Reply Quote 0
            • 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
                                • justjim1220J Offline
                                  justjim1220 Module Developer @Sputnik
                                  last edited by

                                  @sputnik & @remylpat …

                                  Give this a try…

                                  See if it is anything close to what you are wanting…

                                  Still tweaking it a bit, but it is working.

                                  I am working on getting it to work with the RasPi buttons also.

                                  Please give me any and all feedback, Thanks! :smiling_face_with_sunglasses:

                                  Description:

                                  A very simple video player module with clickable thumbnails to show playlist.

                                  Screenshots:

                                  0_1544778617287_Screenshot (442).png
                                  0_1544778640438_Screenshot (443).png
                                  0_1544778668486_Screenshot (444).png
                                  0_1544778726663_Screenshot (445).png
                                  0_1544778755884_Screenshot (446).png
                                  0_1544778856502_Screenshot (447).png

                                  Variations:

                                  this is the first version, working on: simplifying configurations,
                                  size of player, buttons, number of videos, buttons can be changed to text as well as color
                                  and upcoming… option to use physical buttons on RasPi

                                  Any options anyone may want with this module… Feel free to let me know! :smiling_face_with_sunglasses:

                                  Download:

                                  [card:justjim1220/MMM-MyVideoPlayer]

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

                                  1 Reply Last reply Reply Quote 1

                                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                  With your input, this post could be even better 💗

                                  Register Login
                                  • 1 / 1
                                  • 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