Hi Matas,
Thanks for your help again.
It works as it should, but no matter what dI o, I cant make the pause
button talk to my scripts.
Say the player is playing, I press pause, then watch a vimeo, when I
stop watching the vimeo, the player goes back to playing even though
it was paused.
I'm doing soemting like
if(sc_playing == "1"){
$('.sc-player a.sc-play').click();
}
I can get it to work until the point where someone presses pause.
I need to somehow make it that if the user presses pause physically on
the player, it change sc_playing to 0.
I've tried to do this in sc-player.js like so:
$('a.sc-pause').live('click', function(event) {
sc_playing = "0";
});
But it's just not working.
I obviously just dont understand how scope works with variables, I've
tried it in every level but it just doesn't see that i've turned the
variable to 0.
Best
Marc
On Mar 11, 9:15 am, Matas Petrikas <
matas.petri...@gmail.com> wrote:
> hi Marc,
>
> you could simulate a click on the pause button with:
>
> $('.sc-player.playing a.sc-pause').click()
>
> and to start playing again:
> $('.sc-player a.sc-play').click()
>
> greets,
> Matas
>