Lightbox - Pause/Play Oddness

Posted Monday, May 21, 2012 at 1:30 PM  

Hello all,

Hope you can shed some light (pun!) on this for me. 

The Goal:

Student must view some information before proceeding to view the slide for the first time. 

Preferred Solution: 

 

  1. Trigger launches Lightbox when Slide Timeline begins; if variable "viewed" == false
  2. Lightbox pauses slide (including audio) when launched (built-in behavior) 
  3. Trigger on Lightbox slide sets "viewed" to true to prevent launch when slide replayed
  4. User closes Lightbox.
  5. Slide plays

 

For various reasons this cannot be done! I have tried several methods without success, one locks up the player!

Attempts:

Trigger on slide start. - Will not pause audio and does not resume. 

Move audio to start .5 seconds into slide. - Does not resume.

Trigger when an object's timeline starts. Pauses AND resumes! Crashes player :-/

 

I am attaching my story file and will post a screenr with examples and more details. 

 

Thanks for the help,

James

 


lightbox issues.story

This post has 1 verified answers

Verified Answers

Posted Wednesday, May 23, 2012 at 6:27 AM  

Verified Answer

What we ended up doing is a bit tricky and not perfect.

  1. We built a fake lightbox on a slide layer and set it to pause the main timeline.
  2. Added a button to show the fake lightbox layer.
  3. Create another layer we called "pause". This layer covers the slide, pauses the main timeline, and has a duplicate of the button.
  4. Set a trigger to show the pause layer when the buttons timeline starts. 

The end result the student is:

  1. Slide starts.
  2. Slide pauses when it gets to the button.
  3. Student clicks button and reads text in "lightbox"
  4. Student closes lightbox and the timeline resumes.

The drawbacks of this approach are that the user has to click a button and that our fake lightbox doesn't cover the player controls like a real lightbox would. :-(


All Replies

Jeanette Brooks

3,625 posts

Posted Monday, May 21, 2012 at 7:29 PM  

That's a pretty good one James! I fiddled with it for a while too and wasn't able to get the behavior you're looking for either. Have you already submitted a support case? That would be the best next step.


Jill McNair

451 posts

Posted Monday, May 21, 2012 at 10:30 PM  

James,

 

I'm not sure how to fix this, but I wondered if you've tried to build your own lightbox slide instead of using the built-in one.


Posted Wednesday, May 23, 2012 at 6:27 AM  

Verified Answer

What we ended up doing is a bit tricky and not perfect.

  1. We built a fake lightbox on a slide layer and set it to pause the main timeline.
  2. Added a button to show the fake lightbox layer.
  3. Create another layer we called "pause". This layer covers the slide, pauses the main timeline, and has a duplicate of the button.
  4. Set a trigger to show the pause layer when the buttons timeline starts. 

The end result the student is:

  1. Slide starts.
  2. Slide pauses when it gets to the button.
  3. Student clicks button and reads text in "lightbox"
  4. Student closes lightbox and the timeline resumes.

The drawbacks of this approach are that the user has to click a button and that our fake lightbox doesn't cover the player controls like a real lightbox would. :-(


Jeanette Brooks

3,625 posts

Posted Wednesday, May 23, 2012 at 8:46 AM  

Hey James - glad you found something that would work for you. Did you also submit a case? If not, we'd really appreciate that because that would help our support/QA folks understand what might going wrong. Thanks!


Karen M.

40 posts

Posted Friday, July 27, 2012 at 2:10 PM  

Hi James,

 

Has there been any word on a fix for this?  I'm running up against it myself.

 

Thanks,

Karen


Graham North

32 posts

Posted Monday, July 30, 2012 at 8:41 AM  

Hi

 

Inspired by your issue I tried to recreate it and like you found the problems you identified.  I did however find a possible solution.

 

I added a shape to the base slide (off screen) and set it with the shortest possible duration on the timeline (0.25s).  Then added the trigger to launch the lightbox to the begining of the shapes timeline and the show pause layer to the timeline end.

 

And arranged the timeline as below

The result seemed to be what you were trying to achieve, although in testing the HTML5 only played the audio the first time through in Safari. (Other browsers falling back to Flash performed without problems).

 

 


Karen M.

40 posts

Posted Monday, July 30, 2012 at 10:28 AM  

Thank you, Graham, for the "pause assist shape" work-around until this is fixed!


Graham North

32 posts

Posted Tuesday, July 31, 2012 at 1:06 AM  

Hi

 

I fixed the problem with the HTML5 output.  All it needed was to add the same condition to the display "Pause" layer as the display lightbox trigger, so it only fired if the lightbox had not been visited.


Posted Tuesday, July 31, 2012 at 4:12 AM  

Hi,

 

Finally having a chance to play with all of this. I'm able to perfectly recreate all the problems from the post by James in May. But after playing with the solution for quite some time, I'm not "getting it."

onEnterFrame (James Kingsley) said:

What we ended up doing is a bit tricky and not perfect.

 

  1. We built a fake lightbox on a slide layer and set it to pause the main timeline.
  2. Added a button to show the fake lightbox layer.
  3. Create another layer we called "pause". This layer covers the slide, pauses the main timeline, and has a duplicate of the button.
  4. Set a trigger to show the pause layer when the buttons timeline starts. 

 


  • I have a Start Slide with a base layer with some audio and animations.
  • Does the fake lightbox layer go on this slide (that's where I have it now)?
    ----I've set the properties to pause the base layer.
    ----Does this layer have a shape covering the base layer? Does it contain the content the Learner is supposed to read?
  • In step 2, I assume the button to show the fake layer is sitting on the base layer.
    ---When/how does it show the base layer? With a Learner click? With a timeline start of the button or the layer?
  • In step 3, I've added a shape to cover the slide layer and I've paused the layer.
    ---For the duplicate button, should I be coping the button from step 2 onto this pause layer?
    --And so the button triggers to show the layer it is sitting on...the pause layer?

Sorry to be so dense. I would really like to understand this since I ran into a situation where I could've used it.

 

 


Posted Tuesday, July 31, 2012 at 6:17 AM  

HI Rebecca, sorry my description of the solution was so vague. I made a screenr to explain it better. Hopefully I didn't leave any steps out!

 

James Kingsley

eLearningEnhanced.com


Posted Tuesday, July 31, 2012 at 7:29 AM  

James, thanks so much for the Screenr. It's much clearer to me now, and I've been successful, after modeling your example. Very much appreciate the time you took to do this.


Jeanette Brooks

3,625 posts

Posted Thursday, August 09, 2012 at 11:47 AM  

Hi all! Regarding the problem that James originally posted about above, I believe Storyline Update 1 (which was just released today) should correct the issue. It includes a fix which makes a lightbox behave properly when it's launched at the beginning of a slide timeline.