• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 10.2k 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 Mar 28, 2017, 2:53 PM

    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

    B 1 Reply Last reply Mar 28, 2017, 6:21 PM Reply Quote 0
    • B Offline
      broberg Project Sponsor @Anthony_Haddad
      last edited by Mar 28, 2017, 6:21 PM

      @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 Mar 29, 2017, 11:42 AM Reply Quote 1
      • A Offline
        Anthony_Haddad @broberg
        last edited by Mar 29, 2017, 11:42 AM

        @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

        B 1 Reply Last reply Mar 29, 2017, 12:00 PM Reply Quote 0
        • B Offline
          broberg Project Sponsor @Anthony_Haddad
          last edited by Mar 29, 2017, 12:00 PM

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

          1 Reply Last reply Reply Quote 0
          • W Offline
            wizz
            last edited by Mar 29, 2017, 12:36 PM

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

            1 Reply Last reply Reply Quote 0
            • J Offline
              johnnyboy
              last edited by Mar 31, 2017, 10:05 AM

              This post is deleted!
              B 1 Reply Last reply Mar 31, 2017, 1:51 PM Reply Quote 0
              • B Offline
                broberg Project Sponsor @johnnyboy
                last edited by Mar 31, 2017, 1:51 PM

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

                J 1 Reply Last reply Mar 31, 2017, 7:32 PM Reply Quote 0
                • J Offline
                  johnnyboy @broberg
                  last edited by johnnyboy Mar 31, 2017, 7:37 PM Mar 31, 2017, 7:32 PM

                  This post is deleted!
                  B 1 Reply Last reply Apr 1, 2017, 4:38 AM Reply Quote 0
                  • B Offline
                    broberg Project Sponsor @johnnyboy
                    last edited by Apr 1, 2017, 4:38 AM

                    @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 Apr 9, 2017, 10:59 AM

                      @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

                      J 1 Reply Last reply Apr 9, 2017, 11:48 AM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 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