Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Var firstRun = true


Marko had mentioned:
>"I have logic in this callback that I ONLY want to execute once so I'm getting into trouble with this. I don't want to use some stupid 'var firstrun = true' mechanism for obvious reasons."

on this post:
http://support.jwplayer.com/customer/portal/questions/12991178-start-a-playlist-at-a-specific-index-and-calling-onplaylistitem-only-once

I'd like to have a WORKING example of this stupid mechanism :P, thanks in advance.

1 Community Answers

Randy

JW Player Support Agent  
0 rated :

Hello,

Have you by chance tried calling your playlist before the player instance creation?

Randy

This question has received the maximum number of answers.