yanwsh / videojs-panorama

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

Can We Change Pan Speed #72

Open kassemEzz opened 7 years ago

kassemEzz commented 7 years ago

Hi Wensheng Yan. Thank you for the great plugin. I wanted to ask if its possible to increase\decrease the speed at which the video pans to the left, right, up Thanks

yanwsh commented 7 years ago

Do you mean desktop or mobile?

kassemEzz commented 7 years ago

for desktop when moving the mouse around.

yanwsh commented 7 years ago

No, on desktop, the moving speed depends on user's mouse moving speed. So if user moves faster, then the moving speed will be faster, and vice verse.

yanwsh commented 7 years ago

But it's possible to close it.

        player.panorama({
             clickAndDrag: true
        });
kassemEzz commented 7 years ago

Thanks for your explanation. I thought there was an option in three.js called "panSpeed"? cant we use that? If you allow me, I can send you link to a website that have a 360 video and moves slowly when you move the mouse.

yanwsh commented 7 years ago

Yes, sure, could you send me the link, then I can take a look at it.

kassemEzz commented 7 years ago

The wesbite is https://with.in/ and the 360 image is the big slider right at the top of the page.

yanwsh commented 7 years ago

The website looks very cool, so do you want it look like that? When mouse move, the video view will move slowly?

That's a very good suggestion.

kassemEzz commented 7 years ago

It is a very nice website. I think they using A-frame, Three.js and a custom script (trailer.js) which does the magic

yanwsh commented 7 years ago

This is supported on v1.0.0, please check here