0

I've seen this question before on SO (here) but I've seen it happen, right-clicking on JWPlayer displays options like "About JWPlayer", etc.

Anyone know how JWPlayer did it, even if it isn't JS?

1
  • Done - thanks, never really remember to. Commented Aug 7, 2012 at 1:51

1 Answer 1

1

Plugins like Flash can create context menu items, but only when the user right-clicks within the plugin's container (so a single Flash video can't alter the menu for right-clicks that happen elsewhere on the page).

JWPlayer is essetially a Flash-based player with an HTML5 fallback. If you disable Flash in your browser and force HTML5/JavaScript, you'll see that the context menu is the default menu. JavaScript can't alter the context menu; Flash can.

Sign up to request clarification or add additional context in comments.

3 Comments

I thought JWPlayer was JS-based? HTML5 or something... Thanks for the info!
It can use HTML5 video, but only when Flash isn't available.
Ah. Thanks again! Although I feel like HTML5 video is preferable due to mobile support.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.