-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Any way to disable it on startup? #10
Comments
Hi @inside83! I can't reproduce this behavior, this still occurs? I created one demo page using the latest version of the plugin, can you reproduce the reported behavior on this page? About the custom style, you can use the One example: var playerElement = document.getElementById("player-wrapper");
var player = new Clappr.Player({
source: 'http://clappr.io/highline.mp4',
poster: 'http://clappr.io/poster.png',
height: 360,
width: 640,
// playback: { controls: true }, // use this config when test with the @clappr/core
plugins: [ContextMenuPlugin],
contextMenu: {
menuItems: ['copyURL', 'copyURLCurrentTime', 'loop', 'playerVersion'],
extraOptions: [
{
name: 'test',
label: 'Test Label',
callback: function() {
console.log('A Absolutely awesome extra context menu item action');
}
}
],
customStyle: {
list: {
'background-color': "rgba(" + 0 + "," + 0 + "," + 0 + "," + 0.3 + ")",
},
items: {
'color': 'yellow'
}
}
}
});
player.attachTo(playerElement); |
Hey @joaopaulovieira But even If I switch to Your demo seams to be ok though 🤷♂️ |
PLugin reference should go under 'core', right? |
Yes. I'll try to test on the older versions of Clappr and let you know if I discover anything |
Please do, it's super annoying. |
Can you tell in which environment (Clappr version/O.S/Browser and version/Running with any specific framework) you reproduce this behavior? Because I tested it on old versions of Clappr and I still couldn't reproduce the problem x.x |
You can't? 😳 |
I've implemented the plugin but the context menu is opened by default when a video starts.
How to make it closed by default and opened on right click only?
Also, how to style it to look like on the demo image, with semi-transparent background?
Thanks
The text was updated successfully, but these errors were encountered: