Is it possible to use a script to pass a done command to the player for an embedded presentation?

  • 1
  • Question
  • Updated 3 years ago
  • Answered
This might not be possible, but I am working with an interactive presentation (your documentation calls it a multipage presentation). I've rigged up a variation of an idle timer that cycles through the pages included in that presentation after a period of inactivity, but I was wondering if it were possible to have this time launch a function once it is done cycling through the pages that passes a done command to the player. I have the interactive presentation included inside a larger presentation (right now it is just cycling through the pages for a set period of time regardless of interaction with the display).

Basically I am wondering if it is possible to spoof the done response that is normally generated from whatever placeholder is set at the play until done placeholder of a presentation.
Photo of Joseph Mayberry

Joseph Mayberry

  • 1,206 Points 1k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Neal

Neal

  • 61,252 Points 50k badge 2x thumb
Hi Joseph,

Thanks for the question.  I'm looking to get confirmation to see if this is possible.

Thanks.
Photo of Donna Peplinskie

Donna Peplinskie

  • 7,142 Points 5k badge 2x thumb
Joseph,

I'm not sure I entirely understand what it is you're trying to accomplish. What do you want to have happen once all of the pages have been cycled through? I don't think the Done command is what you're looking for. That is normally used in the context of Widgets / Gadgets to tell the Player to move to the next playlist item in a Placeholder.

I would think you could just write a function to accomplish whatever it is that you want to do inside of the Presentation's HTML, and then just call it once you've cycled through all of the pages.

Thx.
Photo of Joseph Mayberry

Joseph Mayberry

  • 1,206 Points 1k badge 2x thumb
Sorry, not certain how best to explain it - or rather, what terms to use to correctly explain it.

Basically I have a large presentation that includes a number of different content panels that cycle through things like local news, company news, financial information, weather, things like that. One of these panels is an interactive one, letting someone viewing the display click through a number of different financial summaries for various things. Because there are other content elements being shown in that part of the larger display I need to be able to cycle past this interactive display so that the other content is shown. Currently I just have a set time in place for that embedded presentation, so it cycles out after 5 minutes regardless of current activity. Which, while not a deal breaker, is less than ideal. I tried having my idle timer launch a placeholder within the presentation that could be used to let it 'play until done' once a period of inactivity had been reached. But I don't seem to be able to make that work as one might expect it to, I am able to pause and play gadgets individually, but they do not seem to convey a done command back to the player.

The ultimate goal is to have the interactive presentation cycle through to the next summary after a minute or so of inactivity, and once it has cycled through all of the summaries, to let the larger presentation continue on to the next content element in its playlist.

I don't know if something like this is possible, I could see it not being possible, but I figured I'd ask. Hopefully that clears up what I am asking a bit.
Photo of Donna Peplinskie

Donna Peplinskie

  • 7,142 Points 5k badge 2x thumb
Are the "content panels" you are referring to just Placeholders? And is the interactive one a Rise Vision Widget or perhaps a custom Widget that you built?
Photo of Joseph Mayberry

Joseph Mayberry

  • 1,206 Points 1k badge 2x thumb
yeah, they are placeholders, and the interactive one is a presentation included in a playlist, using a mix of the multipage presentation guide that you have available in your documentation and some scripting to include a timer that resets on a mouse movement or a key press.
Photo of Donna Peplinskie

Donna Peplinskie

  • 7,142 Points 5k badge 2x thumb
I see. In that case, back to your original point about whether or not you can send the Done command from an embedded Presentation. The answer is that I don't know because I've never actually tried it. So, my next question would be, have you tried it? And if so, what was the outcome?

In theory, if you set the Play Until Done Placeholder appropriately, and then pass the ID of the last Widget / Gadget in that Placeholder to the Done command when you're ready to move to the next panel, perhaps that will work? Again, I've never tried it so this is just a guess.

More info about using the Done command can be found here.

Thx.
Photo of Joseph Mayberry

Joseph Mayberry

  • 1,206 Points 1k badge 2x thumb
That was my theory as well, I have tried it once, without success, but I suspect that this was more cause I had incorrectly set everything up, rather than the theory not working. I will continue to try this setup with various tweaks, if I find anything that works I will reply here.

Thanks for the link to the documentation about the done command, that will definitely be helpful.
Photo of Joseph Mayberry

Joseph Mayberry

  • 1,206 Points 1k badge 2x thumb
Alright, I am still trying to tweak the call, but it seems whenever I include in it my script the interactive presentation does not appear at all inside the playlist, it defaults to the other elements in the playlist. I do get my ready alert when the interactive presentation loads the first time, but I never get to see any of that content.

The interactive presentation runs fine on its own still (but I can't tell of the done call is working without being able to embed it into another presentation)

edit: so I added some more alerts for when each of the pages are supposed to show, and I seem to be getting all of them, but I don't see any of the content anymore.
(Edited)
Photo of Dave

Dave

  • 886 Points 500 badge 2x thumb
Donna/ Joseph

I am interested in sending a done command from an HTML widget's placeholder. The widget contains a marquee of scrolling text entered as custom HTML. Though the scrolling works the placeholder does not trigger the "done" and allow the presentation to move on.

I was interested in the example and documentation that Donna refers to, but the link is broken.
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,116 Points 20k badge 2x thumb
Dave,

That documentation can be found here.