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.

    youtube - Embedded YouTube on Your MagicMirror

    Scheduled Pinned Locked Moved Entertainment
    22 Posts 11 Posters 28.3k 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.
    • Z Offline
      zichao92
      last edited by zichao92

      Description:

      Hi everyone,

      This is my first module development so please pardon me if i made any mistakes. This module allows you to play and control youtube video by using Jopyth’s Remote Control Module. This module wont be possible without the help of @Jopyth & @strawberry-3-141

      When you press “hide-all” under his Remote control module, the youtube video will appear and start playing.
      So the opposite will happen when you press “show-all”, youtube pause and disappears.

      P.S : Im relatively new to programming so please bear with me if I couldn’t understand your request.

      Screenshots:

      alt text
      alt text

      Download:

      [card:zichao92/youtube]

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

        This will please many users! @wizz will love it I think ;)

        I would suggest you merge the Pull request on github from fewieden to make it easier for people to change the video in the config file instead of altering the module code!

        And, format your first post so it conforms to the showcase guidelines : https://forum.magicmirror.builders/topic/1440/showcase-guidelines

        (remove the spaces between the brackets to get the card to show up in your post)

        yawnsY W 2 Replies Last reply Reply Quote 2
        • yawnsY Offline
          yawns Moderator @broberg
          last edited by

          @broberg
          I jumped in and changed the post. Thanks for pointing this out :)

          1 Reply Last reply Reply Quote 0
          • Z Offline
            zichao92
            last edited by

            Sorry im not too familiar with the guidelines. Thanks for amending them !

            Im a new user to GitHub as well. Do correct me if there are any errors.

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

              Nice job!

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

                Hi dude,
                Thank you for your module, nice job and nice module.
                However, i have some suggestions.
                Is there a way to NOT put code inside the MMM-remote module. My concern is if I do a git pull of the MMM-remote, I will lose the code I wrote inside? Is the developer of MMM-remote can implement a patch and “link” your module to his?
                What do you think about setting an input in the remote.html to load a youtube video (the user will only have to do a copy/paste)
                What do you also think of authorizing a user to load a website into an iframe? And if the url starts with “http://www.youtube.com”, load the video. If not just display the web page in an iframe?

                strawberry 3.141S Z 2 Replies Last reply Reply Quote 0
                • strawberry 3.141S Offline
                  strawberry 3.141 Project Sponsor Module Developer @djo
                  last edited by

                  @djo there is a pr in the pipe to switch the id without modifying something, this can be extended so there is no need to modify a module at all

                  Please create a github issue if you need help, so I can keep track

                  Z 1 Reply Last reply Reply Quote 0
                  • Z Offline
                    zichao92 @strawberry 3.141
                    last edited by

                    Hi @strawberry-3.141 ,

                    What’s this “pr in the pipe” that you mentioned? Im interested in learning it.

                    1 Reply Last reply Reply Quote 0
                    • Z Offline
                      zichao92 @djo
                      last edited by

                      @djo

                      Im finding a work around for your request. However, im a little busy with my school and assignments. I’ll look into it once Im free!

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

                        @broberg This i will try, As it was close to what i want :)
                        The only thing is that i don´t want to hide the rest of the modules but i will try and see.

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

                          Looks brilliant. Looking forward to trying this out.
                          Would you be able to change the opacity?

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

                            @zichao92 @strawberry-3-141 @Jopyth what file in the MMM-remote do i need to be edit ? i dont find this line ‘show-all-button’ and also no guide for that here https://github.com/zichao92/youtube under the Configurating Jopyth’s Remote Control module just that it say on line 178 but in what file?

                            J 1 Reply Last reply Reply Quote 0
                            • J Offline
                              Jopyth Moderator @wizz
                              last edited by Jopyth

                              @wizz It should be about these lines in remote.js.

                              Helpful sticky: How to troubleshoot

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

                                @Jopyth Thanks that was more clear now i can go on with testing :)

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

                                  @Jopyth Tested and something is wrong or i am doing something wrong as i start the mirror the video also loads and show directly?

                                  Z 1 Reply Last reply Reply Quote 0
                                  • Z Offline
                                    zichao92 @wizz
                                    last edited by

                                    Hi @wizz ,

                                    It was designed to start up with the video loading after “DISPLAY=:0 npm start”. To hide the embedded video away, just press “show-all” from the remote control module

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

                                      @zichao92 @Jopyth @strawberry-3-141 As it starts up it dont hide any modules it is just overlap the modules and dont hide them thats the problem and when i push hide all it dont hide any of the modules nor the youtube video so it dont work the way i was expected it to work.

                                      The way i want this to work for me if possible is like the following.

                                      1. I Start up my mirror and it shows all of my modules from start except the Youtube.
                                      2. I hide all modules except the clock module and the weather module (Located left and right top) and the youtube video starts streaming just under this modules in full screen.
                                      3. when i now want to show all my modulen i select show all and all my modules are back and the youtube is paused and hidden.
                                      4. Now if i want to show the youtube video again i just press hide all and its back and streaming.

                                      This wold be the best option for me if this is possible?

                                      1 Reply Last reply Reply Quote 0
                                      • Z Offline
                                        zichao92
                                        last edited by

                                        Hi @wizz ,

                                        I will look into your problem after my exams are over. =(
                                        I’ll reply you as soon as my exams have ended.

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

                                          @zichao92 Thanks i hope you can help me on that.

                                          1 Reply Last reply Reply Quote 0
                                          • P Offline
                                            pepebc
                                            last edited by

                                            Now I control PLAY and PAUSE through voice commands, instead doing it with MMM-Remote-Control.
                                            I would like to send data like http: // localhost: 8080 / youtube? Id = Tm4BrZjY_Sg also with voice, but I can not find the form. The idea is to have a list of videos to play. Any idea?

                                            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
                                            • 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