JeremyHeleine / Photo-Sphere-Viewer

A JavaScript library to display Photo Sphere panoramas.
855 stars 953 forks source link

autoplay Photo sphere viewer #22

Open rimish786 opened 8 years ago

rimish786 commented 8 years ago

How to autoplay photosphere viewer after page load. currently we have to manuly play it i tried autoload but it is nor for autoplay which parameter should we pass to photo sphere viewer object

JeremyHeleine commented 8 years ago

Hi,

If I understand well, you want to see the panorama automatically rotating? By default it's the case: 2 seconds after the panorama loaded, it will rotate automatically. You can manage this delay with the option time_anim which accepts a number (the number of milliseconds to wait before animating so, if you don't want to wait, set it to 0).

So, to summarize: when the page has been loaded you create a new PhotoSphereViewer object with the option time_anim set to 0: by default, it will be loaded automatically and the animation will start without any delay.

ghost commented 8 years ago

Hy Jeremy,

Are you thinking of using your renderer to create constellations of photospheres, in order to create a true virtual tour. Like that of Google Maps.

I think this would take your project to another level.

JeremyHeleine commented 8 years ago

Hi,

Don't know if this message is really relevant in this topic but, yeah, it's planned (can be expected in the coming months I think).

rimish786 commented 8 years ago

Hello Jeremy Heleine, in photosphere object i have not used time_anim option. What i want is, when my page loads then photosphere should play automatically, user do not have to click on start button to play it. please help

Thanks and Regards Rimish G. Bansod Contact No: +918087245254, +917028257052 Skype Id :RIMISH BANSOD

On Sat, Jan 16, 2016 at 2:57 PM, Jérémy Heleine notifications@github.com wrote:

Hi,

If I understand well, you want to see the panorama automatically rotating? By default it's the case: 2 seconds after the panorama loaded, it will rotate automatically. You can manage this delay with the option time_anim which accepts a number (the number of milliseconds to wait before animating so, if you don't want to wait, set it to 0).

So, to summarize: when the page has been loaded you create a new PhotoSphereViewer object with the option time_anim set to 0: by default, it will be loaded automatically and the animation will start without any delay.

— Reply to this email directly or view it on GitHub https://github.com/JeremyHeleine/Photo-Sphere-Viewer/issues/22#issuecomment-172176652 .

JeremyHeleine commented 8 years ago

When you create it, the PhotoSphereViewer object automatically loads and displays the panorama (by default). If you want to display it right after the page has been loaded, all you have to do is automatically creating this object at the right moment.

See example.html for instance, where the object is created at the end of the page: you don't have to wait or click to loads the panorama. Is that the kind of thing you were searching for?

rimish786 commented 8 years ago

Hello Jeremy Heleine, I think You did not understand my query. I know when panorama loads but i want when page loads successfully and panorama is also loaded then it should play panorama image automatically. means panorama should start rotating 360 degree view automatically when after it is loaded.

Thanks and Regards Rimish G. Bansod Contact No: +918087245254, +917028257052 Skype Id :RIMISH BANSOD

On Fri, Jan 29, 2016 at 10:55 PM, Jérémy Heleine notifications@github.com wrote:

When you create it, the PhotoSphereViewer object automatically loads and displays the panorama (by default). If you want to display it right after the page has been loaded, all you have to do is automatically creating this object at the right moment.

See example.html for instance, where the object is created at the end of the page: you don't have to wait or click to loads the panorama. Is that the kind of thing you were searching for?

— Reply to this email directly or view it on GitHub https://github.com/JeremyHeleine/Photo-Sphere-Viewer/issues/22#issuecomment-176872154 .

JeremyHeleine commented 8 years ago

Okay, I think I got it now. Try to use the option time_anim with value 0 when you create your PhotoSphereViewer object. For instance: var psv = new PhotoSphereViewer({panorama: 'pano.jpg', container: mydiv, time_anim: 0}). This option is here to indicate the number of milliseconds to wait before the automatic rotation begins. By indicating 0, it will begin right after the panorama has been loaded.

rimish786 commented 8 years ago

Hello Jeremy Heleine, I have added Photo Sphere in website but when I view my website on desktop it does not show Photosphere it keeps loading. and when I view it on smartphone it shows photosphere. url - http://www.robolab.in/home-test check on desktop and smartphone.

Thanks and Regards Rimish G. Bansod Contact No: +918087245254, +917028257052 Skype Id :RIMISH BANSOD

On Sat, Feb 6, 2016 at 8:50 PM, Jérémy Heleine notifications@github.com wrote:

Okay, I think I got it now. Try to use the option time_anim with value 0 when you create your PhotoSphereViewer object. For instance: var psv = new PhotoSphereViewer({panorama: 'pano.jpg', container: mydiv, time_anim: 0}). This option is here to indicate the number of milliseconds to wait before the automatic rotation begins. By indicating 0, it will begin right after the panorama has been loaded.

— Reply to this email directly or view it on GitHub https://github.com/JeremyHeleine/Photo-Sphere-Viewer/issues/22#issuecomment-180788090 .

JeremyHeleine commented 8 years ago

Hi,

Which browser do you use?

Also, it will surely not fix the issue you're encountering, but did you know that there exists a WordPress plugin for Photo Sphere Viewer? It's called WP Photo Sphere and allows the integration of a panorama with a simple shortcode.

rimish786 commented 8 years ago

Hi, I installed wp photo sphere plugin in wordpress but it keeps loading you can check on my website - http://www.robolab.in/home-test/ I have used shortcode as [sphere 11258 width="50%" height="300" navbar="yes" autoload] Please help I am getting this problem since 1 month

Thanks and Regards Rimish G. Bansod Contact No: +918087245254, +917028257052 Skype Id :RIMISH BANSOD

On Fri, Mar 18, 2016 at 2:41 AM, Jérémy Heleine notifications@github.com wrote:

Hi,

Which browser do you use?

Also, it will surely not fix the issue you're encountering, but did you know that there exists a WordPress plugin for Photo Sphere Viewer? It's called WP Photo Sphere and allows the integration of a panorama with a simple shortcode.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/JeremyHeleine/Photo-Sphere-Viewer/issues/22#issuecomment-198084193