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

Right-click menu appears when using playlist


I am trying to disable right-click menu. It is successful when I setup a file but when I use a playlist it is still showing. Here is my code:
<script type="text/javascript">

var playlistmain=new Array();

var newItem = {
file: "/files/stan.mp4",
type: 'mp4'
};

playlistmain.push(newItem);


jwplayer("StrobeMediaPlayback").setup({
width: 960,
height: 540,
autostart: true,
controls: false,
playlist: playlistmain,
abouttext: "test",
aboutlink: "http://www.test.ru",
repeat: false
});
</script>

3 Community Answers

George

JW Player Support Agent  
0 rated :

Hi,

For me to reproduce this issue reliably I will need the following information:

Browser name and version:
Operating System name and version:
Device make and model:
Provide step by step instructions on how to reproduce the issue on your page:
A test page replicating the issue as described in the document below:
https://support.jwplayer.com/customer/portal/articles/2186238-troubleshooting-%E2%80%94-creating-a-test-page

The test page must not contain any additional code or CSS, it must only contain the player and concrete steps to reproduce with expected and actual behavior.

Stan

User  
0 rated :

Hi,
I was wrong, playlist was not a reason why right-click menu is shown, it appeared because of 'controls: false'.

So my next question is - how can I hide right-click menu and still use 'controls' option at the same time?

Thx,
Stan

Todd

JW Player Support Agent  
0 rated :

You would need to disable the menu that appears via CSS.

This question has received the maximum number of answers.