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.

    MMM-htmlvideo, Basic video file player

    Scheduled Pinned Locked Moved Entertainment
    videovideoplayermediamovie
    14 Posts 9 Posters 14.1k Views 11 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.
    • brobergB Offline
      broberg Project Sponsor
      last edited by broberg

      Description:

      This module will play a video file on your magicmirror, using the html video tag so the fileformats are limited to what the browser supports.

      Use CSS to adjust size, placement etc etc.
      Make sure the browser has autoplay enabled since the controls are hidden.

      Download:

      [card:brobergp/MMM-htmlvideo]


      Version 0.1

      Startupversion, nothing fancy.

      1 Reply Last reply Reply Quote 2
      • L Offline
        LeztherRokk
        last edited by

        I tried to install this module but when I start my MM2 I get a blank screen, any suggestion?

        brobergB 1 Reply Last reply Reply Quote 0
        • brobergB Offline
          broberg Project Sponsor @LeztherRokk
          last edited by

          @LeztherRokk lets see your config file

          L 1 Reply Last reply Reply Quote 0
          • L Offline
            LeztherRokk @broberg
            last edited by

            @broberg wait, no it was my fault, I did not comment a module I’m working on and still have errors. but yours work great!

            1 Reply Last reply Reply Quote 0
            • D Offline
              domi256
              last edited by

              where can i download this module? thanks :)

              brobergB 1 Reply Last reply Reply Quote 0
              • brobergB Offline
                broberg Project Sponsor @domi256
                last edited by

                @domi256 It’s in the first post above.

                1 Reply Last reply Reply Quote 0
                • D Offline
                  Damian
                  last edited by

                  @broberg

                  hello can you help me with your experience? im thinking to use this but have my own content play from my Pi-nas and even though it sounds overkill would making my own intranet possibly with another Pi, be okay in such like module? i understand pc workings but still unsure with linux and mm workings to allow suchlikes or as another suggested just use iframe? thank you

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    nhl
                    last edited by

                    Is there anyway to play a video thats stored on the SD card? Mine rasp pi 3 lags when streaming the mp4

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      Sputnik
                      last edited by

                      Yes, I am also trying to find a simple way to play a single mp4 file which is stored on my PI. Anyone has a solution inside a module ??

                      J 1 Reply Last reply Reply Quote 0
                      • J Offline
                        jabellas @Sputnik
                        last edited by

                        @Sputnik I have had success with file://path/to/you/file.mp4 as the url but it is still choppy when played from the same sd card

                        cowboysdudeC 1 Reply Last reply Reply Quote 0
                        • M Offline
                          maydaymiao
                          last edited by maydaymiao

                          Hi, thanks for this great module, and it works well. I have a speical scenario and it will be great if someone can give some tips here (Sorry, I am not a JS programmer…)

                          Right now, the video is running by default when mm starts. Here is my scenario,

                          1. The video will not run automatically by default so that I can still see other information clearly.
                          2. I can store mutiple videos (let’s assume two videos: 1.mp4 & 2.mp4) in the local Pi directory, and only when there is a certain mqtt message “1” published to the topic, it triggers to play 1.mp4; another message “2” published, triggers 2.mp4.

                          I am not sure whether there is an easier to achieve that, thanks!

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

                            @jabellas You are using a pi and they aren’t really powerhouses when it comes to computing. I would try having the video located off of the pi and try it again.

                            J 1 Reply Last reply Reply Quote 2
                            • J Offline
                              jabellas @cowboysdude
                              last edited by

                              @cowboysdude Yes, thanks. I ended up doing just that. It seemed to me initially counterintuitive that it would play faster from an external location than locally but it is perfectly smooth if I host the video on a separate web server.

                              cowboysdudeC 1 Reply Last reply Reply Quote 1
                              • cowboysdudeC Offline
                                cowboysdude Module Developer @jabellas
                                last edited by

                                @jabellas said in MMM-htmlvideo, Basic video file player:

                                @cowboysdude Yes, thanks. I ended up doing just that. It seemed to me initially counterintuitive that it would play faster from an external location than locally but it is perfectly smooth if I host the video on a separate web server.

                                I agree with you!! Glad you got it working better :)

                                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