/    Sign up×
Community /Pin to ProfileBookmark

Not working controls after reloading data with AJAX

Ok, from the beginning. I have written a HTML5 player with controls and stuff. But I have one problem. After using switch-to-HD option the controls (like full screen) stops working. And in Firebug I see strange behaviour when switching back from HD (press HD, let it load and press HD again) – it seem like every event is triggered two times, and then more and more. What can I do with all of it? And it seems that there is a ‘ghost’ of the player that was before, cause it still plays when I switch to HD.

The player is here: [url]http://secondgate.pl/temporary/nttp/[/url]

I also tried differend method for switching the source, using .load(). But it seems that Firefox can’t load the movie after that and Chrome sets the volume to 100%, so it didn’t work either. The player from this method is here: [url]http://secondgate.pl/temporary/tpp_004/[/url]

I would be mostly grateful for help. I know it’s a lot of code, but it’s all commented. I have no idea what am I doing wrong and I’m sitting like a week in front of it.

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @z-x spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...