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.

    Carousel and omxplayer moving

    Scheduled Pinned Locked Moved Troubleshooting
    5 Posts 2 Posters 2.1k Views 2 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
      alverman
      last edited by

      Good evening,
      I use MMM-Carousel.
      My question is:
      you can move somehow omxplayer to scroll pages.
      At this time the player when it is open is fixed at the position where it opens.
      Do you think there are possibilities and / or solutions?

      Thank you, Alberto

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

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

          Goodmorning,
          I’m trying to insert a command to the MMM-RTSPStream module, which stops the rtsp flow from all the pages that do not contain the frame that displays the stream but I can not figure out how to do it.
          I have inserted this part of code in the MMM-Carousel.js file from row 131:
          Stream view is on page 3:

                      // Update the current index
                      if (goToIndex === -1) {                             // Go to a specific slide?
                          if (goDirection === 0) {
                              this.currentIndex += 1;                     // Normal Transition, Increment by 1
          		    if (this.currentIndex != 2) this.Notification("STOP_ALL_OMXSTREAMS", "")
                          } else {
                               console.log("Currently on slide " + this.currentIndex + " and going to slide " + (this.currentIndex + goDirection));
                              this.currentIndex += goDirection;           // Told to go a specific direction
          		   if (this.currentIndex != 2) this.sendNotification ("STOP_ALL_OMXSTREAMS", "")
                          }
                             if (this.currentIndex >= resetCurrentIndex) {   // Wrap-around back to beginning
                             this.currentIndex = 0;
                             this.sendNotification("STOP_ALL_OMXSTREAMS", "")
                          } else if (this.currentIndex < 0) {
                             this.currentIndex = resetCurrentIndex - 1;  // Went too far backwards, wrap-around to end
          		   this.sendNotification("STOP_ALL_OMXSTREAMS", "")
                          }
                      } else if (goToIndex >= 0 && goToIndex < resetCurrentIndex) {
                            this.currentIndex = goToIndex;                  // Go to a specific slide if in range
          		  if (this.currentIndex != 2) this.Notification("STOP_ALL_OMXSTREAMS", "")
                      }
          

          I entered this line where I think the page is being checked:

          this.sendNotification("STOP_ALL_OMXSTREAMS", "")
          

          I certainly miss something in sendnotification or/and in code placement

          If possible, would you give me a hand?

          Thanks, Alberto

          yawnsY 1 Reply Last reply Reply Quote 0
          • yawnsY Offline
            yawns Moderator @alverman
            last edited by

            @alverman
            Maybe I missed something, as it’s a bit hard to read on a smartphone, but I think you would need a node_helper.js file, which receives your kill notification broadcast and performes the kill process.

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

              Hi yams,
              From what I understand is that I do not just do a kill of omxplayer because the RTSPStream module reopens.
              I need to make a stop stream of the RTSPStream module.
              In fact I tried to make OMXPlayer kill from the MMM-OnScreenMenu module by modifying the shutdown entry to make a kill to omxplayer but after a while the stream reappears!
              So my purpose would be to stop the stream when they are on pages that do not display it (pages 1, 2, 4) and open it only on page 3

              Thanks, Alberto

              1 Reply Last reply Reply Quote 0
              • 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