Forum Discussion
Lightbox automatically reopens when with seekbar
Hi,
I have setup a video on a slide using the player seekbar. I've added a trigger to open a lightbox when the timeline reaches a certain cue point. The lightbox opens as expected and the video resumes when the lightbox closes. All is fine up to there. The only problem is that when returning to the video, if I click on the player seekbar to jump forward or backward, the lightbox reopens automatically.
I have tried calling the lightbox going a layer instead (lightbox slide on timestart of layer) but the same problem reoccurs. The lightbox keeps popping up.
Would anyone have a clue what I'm doing wrong or any woraround ?
Thank you
Tina Marie
18 Replies
- fdgsdfgdsfgsdfgCommunity Member
Hi, I have the exact same problem here !
Hi Tina and Phillipe!
Is the seekbar going back to the 'time' that the lightbox should be appearing? Would you not expect this behavior? Would changing the seekbar to read-only assist in this case?
Or are you saying that it is unexpectedly popping up?
Do either of you have a .story file that we could take a look at to better understand?
- fdgsdfgdsfgsdfgCommunity Member
Hi Leslie, and thank you for your answer.
The seekbar isn't going back to the 'time' the lightbox should be appearing.
If I change the seekbar to readonly, the problem is avoided (of course) because it can't be triggered.
I made a story file explaining the problem.
- fdgsdfgdsfgsdfgCommunity Member
I also tried to set variables to prevent lightbox openning. But it was a failure :
Say I want to open the popup only when the media reaches 10s.
- I created a variable canopenpopup with default true.
- I set canopenpopup to true when timeline reaches 0s .
- trigger: show lightbox when timeline reaches 10s AND canopenpopup == true.
- trigger: when timeline reaches 10.5s, I set canopenpopup = false so that when I click later in the seekbar, the variable canopenpopup should prevent the lightbox from opening
But this doesn't work as expected, the triggers are always executed in the timeline order first.
So when I click at 15s, in the seekbar, the events are all executed from 0s to the clicked point :
- 0s: canopenpopup = true,
- 10s: lightbox can be shown so it pops in.
- 10,s: canopenpopup = false (anyway lightbox did already pop...)
- And the video keeps on playing in background... (other problem...)
Thank you.
Hi Phillipe!
Why not use a layer for what you are trying to accomplish here? You can set a simple true/false variable so that the layer does not re-appear and pause the base layer as well.
Sample attached.
- fdgsdfgdsfgsdfgCommunity Member
Hi Leslie,
Thank you for your answer.
In your example, when I click later on the seekbar, the layer still appears anyway...
Oh no! Let me take another look. I did not see that behavior.
- Tina-MarieLalonCommunity Member
Hi Leslie,
I'm sending you my file. Your troubleshooting will greatly be appreciated.
I've randomly posititonned my cue points at the beginning of the video for ease of troubleshooting, it's a demo. We've considered using layers but having to insert quizzes that option has been put aside. We want to use SL quiz functionnalities.
You will notice that travelling in the seekbar makes the first lightbox pop-up automatically. Having a read-only seekbar is not an option we wish to consider, we want the learner to go back and listen any video sequence they wish without having to start all over.
Thank you for your assistance
Hi Phillipe!
I still did not see the issue you were reporting with the file that I shared with you, but after looking at Tina's file, I went back to your original approach and added a simply true/false variable. Note: I did change the time to 2s to make testing easier :)
Hi Tina!
I took at look at your file as well and added a couple of variables on the lightboxed slides along with conditions on the triggers to the lightboxes. Your file is attached.