Open Bramichou opened 7 years ago
Hey, i got this error :
player.panorama is not a function
What am doing wrong ?!
i imported that :
import videojs from 'video.js' import panorama from 'videojs-panorama';
and here is my code
` let canvasElement = this.getRenderer().view; let videoElement = videoLoader.getVideo('video360') videoElement.setAttribute("id", "video360"); videoElement.setAttribute("class", "video-animated-360"); videoElement.style.display = "block"
canvasElement.style.display = "none" canvasElement.style.opacity = 0. console.log('video elem', videoElement) console.log('video src', videoElement.node) videojs.options.autoplay = true let the_video = document.querySelector('.video-animated-360') this.player = videojs(the_video,{ preload: 'metadata', autoplay : true, }) this.player.on('ready', () => { console.log(this.player.muted()) this.player.muted(true) console.log(this.player.muted()) if(!this.player.isFullscreen()){ this.player.requestFullscreen() } }) this.player.on('ended', () => { console.log('finished') }) panorama(this.player, { autoMobileOrientation: true, initFov: 100, clickAndDrag: true });
`
Please help me ...
https://s3.ap-south-1.amazonaws.com/viyatrademo/Viyatra.html go to these link and check the source code
Did you solve this?
Hey, i got this error :
What am doing wrong ?!
i imported that :
import videojs from 'video.js' import panorama from 'videojs-panorama';
and here is my code
` let canvasElement = this.getRenderer().view; let videoElement = videoLoader.getVideo('video360') videoElement.setAttribute("id", "video360"); videoElement.setAttribute("class", "video-animated-360"); videoElement.style.display = "block"
`
Please help me ...