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

MMM-EmbedYoutube Live Channel!

Scheduled Pinned Locked Moved Entertainment
youtubelive channelnewsyoutube idmmm-embedyoutube
2 Posts 2 Posters 638 Views 3 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
    ziruc
    last edited by Oct 26, 2020, 6:20 AM

    Hi everybody!
    First topic here!

    I nedded to watch a live channel on my MM so I tried hard some solutions…
    As you may or not know live channels not always mantain the same Video ID, sometimes YouTube ends the broadcasting to policies problems, sometimes the same channel unplug the transmission to rights issues, or whatever… so the only ID that never changes is the real channel ID, which YouTube uses to broadcast the live version of the channel.

    So, what did I do?

    Easy, just comment this lines up on MMM-EmbedYoutube.js:

    //var videoId = this.config.video_id +"?version=3";
    		//if (typeof this.config.playlist !== "undefined" && this.config.playlist != "")
    			//videoId = "playlist?list=" + this.config.playlist + "&";
    

    And add this one:

    var videoId = this.config.video_id;
    

    And also comment this lines (wrapper.innerHTML) and add the last one:

    youtubechannel.png

    So, this way you just edit your config.js file on the video_id for the YouTube channel ID:

    video_id: "UCoMdktPbSTixAyNGwb-UYkQ",
    

    You could change this live channel at anytime.

    Where do you get the live channel ID? Glad you asked…

    Just roll your mouse over the channel name or icon this way:

    youtubechannel_id.png

    You will see the channel ID on the status bar, just copy this ID and paste it on your config.js file at the “video_id” line MMM-EmbedYoutube module.

    This was my result:

    youtubechannel_mm.png

    Hope you like it…
    Best Regards!

    1 Reply Last reply Reply Quote 4
    • R Offline
      robertybob
      last edited by Oct 27, 2020, 1:56 PM

      Thank you, this is very good to know!

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      1 / 1
      • First post
        2/2
        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