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.

    Adding a background video?

    Scheduled Pinned Locked Moved Development
    15 Posts 4 Posters 12.3k Views 4 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.
    • A Offline
      Anthony_Haddad
      last edited by

      Hey all!

      I was helping a mate of mine set up his magic mirror the other day and he asked me an interesting question: Instead of having a black background is it possible to have a video play in the background? IF it’s possible how would this be achieved?

      Kind regards,
      Tony

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

        @Anthony_Haddad my first thought was if background-image could handle this, but no go. Unless you convert it to a humongous GIF.

        But MM2 can handle the HTML video tag, and supports some videoformats, so here is the freshly baked basic htmlvideo player module!

        [card:brobergp/MMM-htmlvideo]

        A 1 Reply Last reply Reply Quote 1
        • A Offline
          Anthony_Haddad @broberg
          last edited by

          @broberg Thanks so much, I will install it soon as possible because I’m quite busy at the moment with school. Sorry, but would it be also possible to have like a playlist of videos playing?

          Much appreciated!

          Tony

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

            @Anthony_Haddad I think @wizz is trying that now :)

            1 Reply Last reply Reply Quote 0
            • W Offline
              wizz
              last edited by

              @Anthony_Haddad @broberg Soon i will try that and report on how it works.

              1 Reply Last reply Reply Quote 0
              • johnnyboyJ Offline
                johnnyboy
                last edited by

                This post is deleted!
                brobergB 1 Reply Last reply Reply Quote 0
                • brobergB Offline
                  broberg Project Sponsor @johnnyboy
                  last edited by

                  @johnnyboy It’s not advance enough to handle live streams as we hoped, the html video is limited to what the browser can play, so for Chrome that is H.264 in MP4, Theora and Vorbis in Ogg, and VP8 and Vorbis in WebM (source : https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats)

                  You can play files from anywhere, no restrictions as long as it is a file and not a live stream (that requires m3u8 or similar)

                  You can place the module anywhere and use css to set the size of the videoclip.

                  johnnyboyJ 1 Reply Last reply Reply Quote 0
                  • johnnyboyJ Offline
                    johnnyboy @broberg
                    last edited by johnnyboy

                    This post is deleted!
                    brobergB 1 Reply Last reply Reply Quote 0
                    • brobergB Offline
                      broberg Project Sponsor @johnnyboy
                      last edited by

                      @johnnyboy as long as the MM2 browser can play it then yes, other than the formats listed in the link I don’t know, you have to try it and see.

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        Anthony_Haddad
                        last edited by

                        @broberg I have a MP4 video saved on the Pi, I configured the ‘VideoSRC’ with the path of the video and it wouldn’t play, is it due to it only being able to play html videos from the web?
                        Cheers,
                        -Tony

                        johnnyboyJ 1 Reply Last reply Reply Quote 0
                        • johnnyboyJ Offline
                          johnnyboy @Anthony_Haddad
                          last edited by johnnyboy

                          This post is deleted!
                          A 1 Reply Last reply Reply Quote 0
                          • A Offline
                            Anthony_Haddad @johnnyboy
                            last edited by

                            @johnnyboy Yes, I understand. Thanks a lot mate! Daptly is quite steep for what it is and I live in one of the most expensive cities in the world (whenever that was last surveyed)

                            johnnyboyJ 1 Reply Last reply Reply Quote 0
                            • johnnyboyJ Offline
                              johnnyboy @Anthony_Haddad
                              last edited by johnnyboy

                              This post is deleted!
                              A 1 Reply Last reply Reply Quote 0
                              • A Offline
                                Anthony_Haddad @johnnyboy
                                last edited by

                                @johnnyboy I like the idea of what you proposed. I was thinking I’m currently running the MM on a Pi2 if I were to purchase a Pi3 (which has a substantial increase in power) could it run MM with 3rd party modules with more stability then it would on the Pi2?

                                johnnyboyJ 1 Reply Last reply Reply Quote 0
                                • johnnyboyJ Offline
                                  johnnyboy @Anthony_Haddad
                                  last edited by

                                  This post is deleted!
                                  1 Reply Last reply Reply Quote 0

                                  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