yanwsh / videojs-panorama

a plugin for videojs run a full 360 degree panorama video.
http://yanwsh.github.io/videojs-panorama/
Other
492 stars 160 forks source link

Add marker by onclick event #171

Open nhannguyen051195 opened 5 years ago

nhannguyen051195 commented 5 years ago

Hi, is there anyway to add marker by clicking on the video?

ipald commented 4 years ago

Hi, I've just found a workaround looking at source code var player = window.player = videojs('videojs-panorama-player', {}, function () {}); ... player.panorama({}); ... var coords = { lat: player.getChild('Canvas').lat, lon: player.getChild('Canvas').lon }