# Chroma key video markers
Example usage of a transparent videoLayer
marker using chromaKey
.
autoload: true
title: PSV Marker layers Demo
packages:
- name: markers-plugin
imports: MarkersPlugin
style: true
const baseUrl = 'https://photo-sphere-viewer-data.netlify.app/assets/';
const viewer = new Viewer({
container: 'viewer',
panorama: baseUrl + 'sphere.jpg',
caption: 'Parc national du Mercantour <b>© Damien Sorel</b>',
navbar: 'zoom move caption fullscreen',
plugins: [
[MarkersPlugin, {
markers: [
{
id: 'video-greenscreen',
videoLayer: baseUrl + 'pictos/t-rex.mp4',
position: { yaw: -0.3, pitch: 0 },
size: { width: 500, height: 500 },
chromaKey: {
enabled: true,
color: '#009200',
similarity: 0.1,
},
},
{
id: 'video',
videoLayer: baseUrl + 'pictos/t-rex.mp4',
position: { yaw: 0.3, pitch: 0 },
size: { width: 500, height: 500 },
},
],
}],
],
});